Created
January 5, 2017 21:16
-
-
Save nqbao/6988473b2a91c8a7715a8f81ccafab5e to your computer and use it in GitHub Desktop.
test fluent 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
#<source> | |
# @type http | |
# port 8888 | |
#</source> | |
<source> | |
@type tail | |
path /tmp/*.log | |
tag file.* | |
read_from_head true | |
refresh_interval 10 | |
format none | |
</source> | |
<filter *.**> | |
@type record_modifier | |
<record> | |
# time ${Time.now.strftime("%Y-%m-%dT%H:%m:%S.000")} | |
time ${Time.now.iso8601} | |
</record> | |
</filter> | |
#<match *.**> | |
#@type stdout | |
#</match> | |
<match *.**> | |
@type elasticsearch | |
host 172.31.3.215 | |
port 2345 | |
include_tag_key true | |
tag_key @log_name | |
# logstash_format true | |
#time_key time | |
flush_interval 10s | |
</match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment