This configuration was tested in Debian Jessie
apt-get install rsyslog rsyslog-gnutls
Copy the file 50-ruabove-paas-log.conf
to /etc/rsyslog.d
Set your X-OVH-TOKEN and the SD-ID of the STRUCTURED-DATA
😎
$DefaultNetstreamDriverCAFile /etc/ssl/certs/ca-certificates.crt | |
template( | |
name="PaaSLog" | |
type="list" | |
) { | |
constant(value="<") | |
property(name="pri") | |
constant(value=">1") | |
constant(value=" ") | |
property(name="timestamp" dateFormat="rfc3339") | |
constant(value=" ") | |
property(name="hostname") | |
constant(value=" ") | |
property(name="app-name") | |
constant(value=" ") | |
property(name="procid") | |
constant(value=" - ") | |
constant(value="[") | |
constant(value="xxxxx@xxxxx") | |
constant(value=" ") | |
constant(value="X-OVH-TOKEN=\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\"") | |
constant(value=" ") | |
constant(value="facility=") | |
constant(value="\"") | |
property(name="syslogfacility-text") | |
constant(value="\"") | |
constant(value=" ") | |
constant(value="priority=") | |
constant(value="\"") | |
property(name="syslogpriority-text") | |
constant(value="\"") | |
constant(value="]") | |
constant(value=" ") | |
property(name="msg") | |
constant(value="\n") | |
} | |
*.* action(type="omfwd" Template="PaaSLog" Target="laas.runabove.com" | |
Port="6514" Protocol="tcp" StreamDriver="gtls" StreamDriverMode="1" | |
StreamDriverAuthMode="x509/name" StreamDriverPermittedPeers="laas.runabove.com") |
This configuration was tested in Debian Jessie
apt-get install rsyslog rsyslog-gnutls
Copy the file 50-ruabove-paas-log.conf
to /etc/rsyslog.d
Set your X-OVH-TOKEN and the SD-ID of the STRUCTURED-DATA
😎