-
-
Save jinhoyim/e69d7b6d8cf2639a5e2b53bc5a977285 to your computer and use it in GitHub Desktop.
Forward rsyslog to ELK stack
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
# Put this file to /etc/rsyslog.d as 99-logstash.con | |
# | |
# Make spool directory -p /var/spool/rsyslog when needed | |
# | |
# Change last address | |
# $WorkDirectory /var/spool/rsyslog # use this if you don't like default /var/lib/rsyslog | |
$ActionQueueFileName logstash # unique name prefix for spool files | |
$ActionQueueMaxDiskSpace 1g # 1gb limit on log queue | |
$ActionQueueSaveOnShutdown on # save messages to disk on shutdown | |
$ActionQueueType LinkedList # run asynchronously | |
$ActionResumeRetryCount -1 # infinite retries if host is down | |
*.* @@192.168.1.207:514 | |
# Forward to ELK stack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment