Sending Syslog to Loki
Getting Syslog messages into Loki #
So, now that we’ve figured out Where our logs were going1… lets push the rest of the logs into the stack
Ship them to promtail with some buffering #
The rsyslog site’s guide for shipping logs2 recommends the following configuration for nodes:
*.* action(type="omfwd" target="192.0.2.2" port="10514"
protocol="tcp" action.resumeRetryCount="100"
queue.type="linkedList" queue.size="10000")
Cookie-Cutter file templates #
So, why not just make a few simple template files to push out to nodetypes
-
It REALLY helps to point promtail at the right loki instance if you wish loki to ingest aforementioned logs. sigh ↩︎
-
https://www.rsyslog.com/sending-messages-to-a-remote-syslog-server/ ↩︎