Advertisement
coombesy

rsyslog - 22-loggly.conf

Oct 20th, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. # -------------------------------------------------------
  2. # Syslog Logging Directives for Loggly (q[-_-]p.loggly.com)
  3. # -------------------------------------------------------
  4.  
  5. # Define the template used for sending logs to Loggly. Do not change this format.
  6. $template LogglyFormat,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [17b369ab-2d7d-44d5-ad8a-384870a5e3ed@41058] %msg%\n"
  7.  
  8. $WorkDirectory /var/spool/rsyslog # where to place spool files
  9. $ActionQueueFileName fwdRule1 # unique name prefix for spool files
  10. $ActionQueueMaxDiskSpace 1g # 1gb space limit (use as much as possible)
  11. $ActionQueueSaveOnShutdown on # save messages to disk on shutdown
  12. $ActionQueueType LinkedList # run asynchronously
  13. $ActionResumeRetryCount -1 # infinite retries if host is down
  14.  
  15. # Send messages to Loggly over TCP using the template.
  16. *.* @@logs-01.loggly.com:514;LogglyFormat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement