Created
December 8, 2015 09:32
-
-
Save mingder78/006671f954ca8469d311 to your computer and use it in GitHub Desktop.
fluentd config
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
<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