|
Contact Us |
|||
Shipping logs - Fastly to Logz.IO
Objectives of the Task
Fastly ConfigSetting Up the Listener - as follows: Used the address provided by Logz.IO: listener.logz.io Used TLS port indicated for Syslog: 5001
Token and Domain information. # ------------------------------------------------------- # File Logging Directives for Logz.io # ------------------------------------------------------- $ModLoad imfile $InputFilePollInterval 10 $PrivDropToGroup adm $WorkDirectory /var/spool/rsyslog ... $ActionSendStreamDriverPermittedPeer *.logz.io $template logzFormatFileTagName,"[GeGJm....Ie] <%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [type=TYPE] %msg%\n" if $programname == 'TYPE' then @@listener.logz.io:5001;logzFormatFileTagName if $programname == 'TYPE' then ~
Your Token is found on the line beginning [ $template logzFormatFileTagName, ]
The first field after the open double quote, brackets included, should go into the Fastly Token field.
Choose TLS => Yes;
TLS Certificate => Yes; [ -----BEGIN CERTIFICATE----- ] and end [ -----END CERTIFICATE----- ] Save and wait for your logs to start appearing. Unfortunately, the format received at Logz.IO comes through unknown, so the next exercise will be to train the Logz.IO parsers, and create visualizations (outside the scope of this document). |
|
1998-2024 Celebrazio.net
Serving AI Free since 1998.