Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Panic Soft
- #NoFreeOnExit TRUE
- define ROOT C:\Program Files (x86)\nxlog
- define CERTDIR %ROOT%\cert
- define CONFDIR %ROOT%\conf
- define LOGDIR %ROOT%\data
- define LOGFILE %LOGDIR%\nxlog.log
- LogFile %LOGFILE%
- Moduledir %ROOT%\modules
- CacheDir %ROOT%\data
- Pidfile %ROOT%\data\nxlog.pid
- SpoolDir %ROOT%\data
- <Extension _syslog>
- Module xm_syslog
- </Extension>
- <Extension _charconv>
- Module xm_charconv
- AutodetectCharsets iso8859-2, utf-8, utf-16, utf-32
- </Extension>
- <Extension _exec>
- Module xm_exec
- </Extension>
- <Input in>
- Module im_msvistalog
- # ReadFromLast True
- <QueryXML>
- <QueryList>
- <Query Id="0">
- <Select Path="Security">*</Select>
- <Select Path="Application">*</Select>
- <Select Path="System">*</Select>
- <Select Path="Setup">*</Select>
- </Query>
- </QueryList>
- </QueryXML>
- </Input>
- <Output out>
- Module om_file
- File "C:\\downloads\\nxlogevents.txt"
- # Snyc True
- # Host 192.168.1.1
- # Port 514
- Exec to_syslog_snare();
- </Output>
- <Route 1>
- Path in => out
- </Route>
- <Extension _fileop>
- Module xm_fileop
- # Check the size of our log file hourly, rotate if larger than 5MB
- <Schedule>
- Every 1 hour
- Exec if (file_exists('%LOGFILE%') and \
- (file_size('%LOGFILE%') >= 5M)) \
- file_cycle('%LOGFILE%', 8);
- </Schedule>
- # Rotate our log file every week on Sunday at midnight
- <Schedule>
- When @weekly
- Exec if file_exists('%LOGFILE%') file_cycle('%LOGFILE%', 8);
- </Schedule>
- </Extension>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement