Created
August 8, 2013 18:33
-
-
Save philk/6187361 to your computer and use it in GitHub Desktop.
json_event rsyslog forwarder template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ModLoad imfile | |
$MaxMessageSize 64k | |
$template JSON_EVENT,"%msg:::drop-last-lf%\n" | |
$InputFileName /var/log/cassandra/logstash.log | |
$InputFileTag cassandra: | |
$InputFileStateFile cassandra-state | |
$InputRunFileMonitor | |
$ActionQueueType LinkedList # use asynchronous processing | |
$ActionQueueFileName cassandrafwd # set file name, also enables disk mode | |
$ActionResumeRetryCount -1 # infinite retries on insert failure | |
$ActionQueueSaveOnShutdown on # save in-memory data if rsyslog shuts down | |
:syslogtag, startswith, "cassandra:" @@192.168.1.1:55515;JSON_EVENT | |
& ~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment