Advertisement
issjunior

nxlog.conf

Mar 4th, 2021
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.70 KB | None | 0 0
  1. Panic Soft
  2. #NoFreeOnExit TRUE
  3.  
  4. define ROOT     C:\Program Files (x86)\nxlog
  5. define CERTDIR  %ROOT%\cert
  6. define CONFDIR  %ROOT%\conf
  7. define LOGDIR   %ROOT%\data
  8. define LOGFILE  %LOGDIR%\nxlog.log
  9. LogFile %LOGFILE%
  10. Moduledir %ROOT%\modules
  11. CacheDir  %ROOT%\data
  12. Pidfile   %ROOT%\data\nxlog.pid
  13. SpoolDir  %ROOT%\data
  14. <Extension _syslog>
  15.     Module      xm_syslog
  16. </Extension>
  17. <Extension _charconv>
  18.     Module      xm_charconv
  19.     AutodetectCharsets iso8859-2, utf-8, utf-16, utf-32
  20. </Extension>
  21. <Extension _exec>
  22.     Module      xm_exec
  23. </Extension>
  24. <Extension _fileop>
  25.     Module      xm_fileop
  26.     # Check the size of our log file hourly, rotate if larger than 5MB
  27.     <Schedule>
  28.         Every   1 hour
  29.         Exec    if (file_exists('%LOGFILE%') and \
  30.                    (file_size('%LOGFILE%') >= 5M)) \
  31.                     file_cycle('%LOGFILE%', 8);
  32.     </Schedule>
  33.     # Rotate our log file every week on Sunday at midnight
  34.     <Schedule>
  35.         When    @weekly
  36.         Exec    if file_exists('%LOGFILE%') file_cycle('%LOGFILE%', 8);
  37.     </Schedule>
  38. </Extension>
  39. <Extension _gelf>
  40.     Module     xm_gelf
  41. </Extension>
  42.  
  43. <Input in>
  44.       Module      im_msvistalog
  45.       Query  <QueryList>\
  46.                  <Query Id="0">\
  47.     #               <Select Path="Application">*</Select>\
  48.     #               <Select Path="System">*</Select>\
  49.     #               <Select Path="Security">*</Select>\
  50.                     <Select Path="Security">*[System[(EventID='4625')]</Select>\
  51.                 </Query>\
  52.             </QueryList>
  53.  
  54. </Input>
  55.  
  56. <Output out>
  57.     Module      om_udp
  58.     Host        10.0.2.30
  59.     Port        3414
  60.     OutputType  GELF
  61. </Output>
  62.  
  63. <Route 1>
  64.     Path    in => out
  65. </Route>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement