Skip to content

Instantly share code, notes, and snippets.

@miticojo
Last active January 27, 2017 11:01
Show Gist options
  • Save miticojo/d3bb9e2f4847649843e66163d771b5c1 to your computer and use it in GitHub Desktop.
Save miticojo/d3bb9e2f4847649843e66163d771b5c1 to your computer and use it in GitHub Desktop.
runabove syslog delivery throgh Rsyslog on Centos 6/7
# replace token xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx with the one provided by runabove management console
$template OVHFormat,"<%syslogpriority%>1 %TIMESTAMP:::date-rfc3339% %HOSTNAME% %app-name% %procid% - [TOKEN@XXX X-OVH-TOKEN=\"xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx\" priority=\"%syslogpriority-text%\" tag=\"%syslogtag%\" facility=\"%syslogfacility-text%\"] %msg%\n"
*.* @@laas.runabove.com:514;OVHFormat
# Uncomment line below for debug purpose
# *.* /var/log/ovh.log;OVHFormat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment