-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnxlog.conf
More file actions
52 lines (45 loc) · 1.56 KB
/
nxlog.conf
File metadata and controls
52 lines (45 loc) · 1.56 KB
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
## This is a sample configuration file. See the nxlog reference manual about the
## configuration options. It should be installed locally and is also available
## online at http://nxlog.org/docs/
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
# define ROOT C:\Program Files\nxlog
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 Module
<Extension json>
Module xm_json
</Extension>
<Input winlog>
Module im_msvistalog
# Uncomment if you want only specific logs
Query <QueryList>\
<Query Id="0">\
<Select Path="Application">*[System/Level <=3]</Select>\
<Select Path="System">*[System/Level <=3]</Select>\
<Select Path="Security">*</Select>\
<Suppress Path="Security">*[System[(EventID=5152 or EventID=5157 or EventID=4957)]]</Suppress>\
</Query>\
</QueryList>
</Input>
<Input nginx>
Module im_file
file "E:\\Software\\nginx-1.10.1\\logs\\error.log"
</Input>
<Input tomcat>
Module im_file
file "E:\\Software\\apache-tomcat-8.0.36\\logs\\error.log"
</Input>
<Output logstash>
Module om_tcp
Host localhost
Port 5549
Exec to_json();
</Output>
<Route 66>
Path winlog, nginx, tomcat => logstash
</Route>