Skip to content

Instantly share code, notes, and snippets.

@mingder78
Created December 8, 2015 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mingder78/006671f954ca8469d311 to your computer and use it in GitHub Desktop.
Save mingder78/006671f954ca8469d311 to your computer and use it in GitHub Desktop.
fluentd config
<ROOT>
<source>
type syslog
port 5140
tag system
</source>
<match system.*.*>
type record_reformer
tag elasticsearch
facility ${tag_parts[1]}
severity ${tag_parts[2]}
</match>
<match elasticsearch>
type copy
<store>
type stdout
</store>
<store>
type elasticsearch
host localhost
port 9200
include_tag_key true
tag_key @log_name
logstash_format true
flush_interval 10s
</store>
</match>
</ROOT>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment