Advertisement
Guest User

nxlog.conf

a guest
Sep 16th, 2016
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. define ROOT /usr/bin
  2.  
  3. <Extension gelf>
  4. Module xm_gelf
  5. </Extension>
  6.  
  7.  
  8.  
  9. User nxlog
  10. Group nxlog
  11.  
  12.  
  13. Moduledir /usr/libexec/nxlog/modules
  14. CacheDir /var/spool/collector-sidecar/nxlog
  15. PidFile /var/run/graylog/collector-sidecar/nxlog.pid
  16.  
  17. define LOGFILE /var/log/graylog/collector-sidecar/nxlog.log
  18. LogFile %LOGFILE%
  19. LogLevel INFO
  20.  
  21. <Extension logrotate>
  22. Module xm_fileop
  23. <Schedule>
  24. When @daily
  25. Exec file_cycle('%LOGFILE%', 7);
  26. </Schedule>
  27. </Extension>
  28.  
  29.  
  30.  
  31.  
  32. <Input 57cfc3b6db0cc85cc8c4d96e>
  33. Module im_file
  34. File '/root/log_sample/*.csv'
  35. PollInterval 1
  36. SavePos True
  37. ReadFromLast True
  38. Recursive True
  39. RenameCheck False
  40. Exec $FileName = file_name(); # Send file name with each message
  41. </Input>
  42.  
  43.  
  44.  
  45.  
  46. <Output 57cfc36edb0cc85cc8c4d921>
  47. Module om_udp
  48. Host 192.168.9.202
  49. Port 5556
  50. OutputType GELF
  51. Exec $short_message = $raw_event; # Avoids truncation of the short_message field.
  52. Exec $gl2_source_collector = 'cbe69c73-b052-496c-a50f-c7b4f795328c';
  53. Exec $Hostname = hostname_fqdn();
  54. </Output>
  55.  
  56.  
  57.  
  58. <Route route-0>
  59. Path 57cfc3b6db0cc85cc8c4d96e => 57cfc36edb0cc85cc8c4d921
  60. </Route>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement