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