Skip to content

Instantly share code, notes, and snippets.

@jinhoyim
Forked from VerosK/99-logstash.conf
Created June 28, 2019 06:38
Show Gist options
  • Save jinhoyim/e69d7b6d8cf2639a5e2b53bc5a977285 to your computer and use it in GitHub Desktop.
Save jinhoyim/e69d7b6d8cf2639a5e2b53bc5a977285 to your computer and use it in GitHub Desktop.
Forward rsyslog to ELK stack
# 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