forked from caliskanfurkan/WinLogsZero2Hero
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnxlog.conf
70 lines (66 loc) · 3.7 KB
/
nxlog.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
define ROOT C:\Program Files (x86)\nxlog
Moduledir %ROOT%\modules
CacheDir %ROOT%\data
Pidfile %ROOT%\data\nxlog.pid
SpoolDir %ROOT%\data
LogFile %ROOT%\data\nxlog.log
<Extension _json>
Module xm_json
</Extension>
<Extension fileop>
Module xm_fileop
</Extension>
<Input in>
Module im_msvistalog
Query <QueryList> \
<Query Id="0"> \
<Select Path="Security">*</Select> \
<Select Path="System">*</Select> \
<Select Path="Application">*</Select> \
<Select Path="OAlerts">*</Select> \
<Select Path="Windows PowerShell">*</Select> \
<Select Path="Microsoft-Windows-OfflineFiles/Operational">*</Select> \
<Select Path="Microsoft-Windows-ReadyBoost/Operational">*</Select> \
<Select Path="Microsoft-Windows-Application-Experience/Problem-Steps-Recorder">*</Select> \
<Select Path="Microsoft-Windows-Application-Experience/Program-Compatibility-Assistant">*</Select> \
<Select Path="Microsoft-Windows-Application-Experience/Program-Compatibility-Troubleshooter">*</Select> \
<Select Path="Microsoft-Windows-Application-Experience/Program-Inventory">*</Select> \
<Select Path="Microsoft-Windows-Application-Experience/Program-Telemetry">*</Select> \
<Select Path="Microsoft-Windows-Applocker/EXE and DLL">*</Select> \
<Select Path="Microsoft-Windows-Applocker/MSI and Script">*</Select> \
<Select Path="Microsoft-Windows-Bits-Client/Operational">*</Select> \
<Select Path="Microsoft-Windows-CAPI2/Operational">*</Select> \
<Select Path="Microsoft-Windows-CodeIntegrity/Operational">*</Select> \
<Select Path="Microsoft-Windows-CorruptedFileRecovery-Client/Operational">*</Select> \
<Select Path="Microsoft-Windows-CorruptedFileRecovery-Server/Operational">*</Select> \
<Select Path="Microsoft-Windows-Diagnostics-Performance/Operational">*</Select> \
<Select Path="Microsoft-Windows-International-RegionalOptionsControlPanel/Operational">*</Select> \
<Select Path="Microsoft-Windows-Kernel-EventTracing/Admin">*</Select> \
<Select Path="Microsoft-Windows-Kernel-Power/Thermal-Operational">*</Select> \
<Select Path="Microsoft-Windows-Kernel-StoreMgr/Operational">*</Select> \
<Select Path="Microsoft-Windows-Kernel-WDI/Operational">*</Select> \
<Select Path="Microsoft-Windows-Kernel-WHEA/Errors">*</Select> \
<Select Path="Microsoft-Windows-Kernel-WHEA/Operational">*</Select> \
<Select Path="Microsoft-Windows-Known Folders API Service/Operational">*</Select> \
<Select Path="Microsoft-Windows-PowerShell/Operational">*</Select> \
<Select Path="Microsoft-Windows-TaskScheduler/Operational">*</Select> \
<Select Path="Microsoft-Windows-UAC/Operational">*</Select> \
<Select Path="Microsoft-Windows-UAC-FileVirtualization/Operational">*</Select> \
<Select Path="Microsoft-Windows-UAC/Operational">*</Select> \
<Select Path="Microsoft-Windows-User Profile Service/Operational">*</Select> \
<Select Path="Microsoft-Windows-WER-Diag/Operational">*</Select> \
<Select Path="Microsoft-Windows-Windows Firewall With Advanced Security/Firewall">*</Select> \
<Select Path="Microsoft-Windows-Windows-WinRM/Operational">*</Select> \
</Query> \
</QueryList>
</Input>
<Output out>
Module om_udp
Host $IP
Port 8531
Exec $submission_id = file_read("C:\id.txt");
Exec to_json(); $message = $raw_event;
</Output>
<Route 1>
Path in => out
</Route>