Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 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.  
  11. Moduledir %ROOT%\modules
  12. CacheDir %ROOT%\data
  13. Pidfile %ROOT%\data\nxlog.pid
  14. SpoolDir %ROOT%\data
  15.  
  16. <Extension _syslog>
  17. Module xm_syslog
  18. </Extension>
  19.  
  20. <Extension _charconv>
  21. Module xm_charconv
  22. AutodetectCharsets iso8859-2, utf-8, utf-16, utf-32
  23. </Extension>
  24.  
  25. <Extension _exec>
  26. Module xm_exec
  27. </Extension>
  28.  
  29. <Input in>
  30. Module im_msvistalog
  31. # ReadFromLast True
  32. <QueryXML>
  33. <QueryList>
  34. <Query Id="0">
  35. <Select Path="Security">*</Select>
  36. <Select Path="Application">*</Select>
  37. <Select Path="System">*</Select>
  38. <Select Path="Setup">*</Select>
  39. </Query>
  40. </QueryList>
  41. </QueryXML>
  42. </Input>
  43.  
  44. <Output out>
  45. Module om_file
  46. File "C:\\downloads\\nxlogevents.txt"
  47. # Snyc True
  48. # Host 192.168.1.1
  49. # Port 514
  50. Exec to_syslog_snare();
  51. </Output>
  52.  
  53. <Route 1>
  54. Path in => out
  55. </Route>
  56.  
  57. <Extension _fileop>
  58. Module xm_fileop
  59.  
  60. # Check the size of our log file hourly, rotate if larger than 5MB
  61. <Schedule>
  62. Every 1 hour
  63. Exec if (file_exists('%LOGFILE%') and \
  64. (file_size('%LOGFILE%') >= 5M)) \
  65. file_cycle('%LOGFILE%', 8);
  66. </Schedule>
  67.  
  68. # Rotate our log file every week on Sunday at midnight
  69. <Schedule>
  70. When @weekly
  71. Exec if file_exists('%LOGFILE%') file_cycle('%LOGFILE%', 8);
  72. </Schedule>
  73. </Extension>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement