Audit policy & Winlogbeat
Last updated
Was this helpful?
Last updated
Was this helpful?
Windows Server 2022 (WinSrv22 - 192.168.35.132)
Windows 10 installed Winlogbeat and configure (Windows10 - 192.168.35.131)
Windows 10 join Active Directory.
Check Windows10 machine is joined to the domain vanluongelk.local
Click left mouse vanluongelk.local > New > Organizational Unit and set name: 8386
Create new user in OU 8386.
In WinSrv22, open Group Policy Management.
Click left mouse 8386 and click Create a GPO in this domain, and Link it here...
Let's call it Audit Logging.
Click Audit Logging > Edit.
Next, We need edit Process Creation Logging. Group Policy Management Editor window appear, click
We need configure and make sure the boxes are checked.
Audit Process Creation (Event ID 4688): Logs when a new process is created.
Audit Process Termination (Event ID 4689): Logs when a process terminates.
Next, We need edit Logon and Authentication Auditing.
Now, we need configure:
Audit Account Lockout (Event ID 4740): Logs when an account gets locked due to failed login attempts.
Audit Logoff (Event ID 4634): Logs when a user logs off.
Audit Logon (Event ID 4624, 4625, 4634, 4647): Logs user authentication attempts (successful & failed).
Audit Special Logon (Event ID 4672): Logs privileged logins (e.g., Administrator, SYSTEM).
Next, we need to run the following command on the Windows10 machine(User: Administrator@vanluongelk.local) to apply the policy:
Next, logout and login Windows10 machine with User: PhatTai@vanluongelk.local OU: 8386
I will try login wrong
We now need to confirm whether ELK successfully receives logs from Winlogbeat > Logstash > Elasticsearch. From Stack Management → Index Management
You can check the Windows 10 machine assigned to Account Domain: VANLUONGELK.
Here, we use a filter to search for Event ID 4625, retrieving data as shown in the image below.
We can investigate the time of occurrence (Timestamp) along with Domain name, TargetUserName, ...
The event immediately following the login fail sequence is a successful login with EventID 4624