Skip to content

Instantly share code, notes, and snippets.

@nqbao
Created January 5, 2017 21:16
Show Gist options
  • Save nqbao/6988473b2a91c8a7715a8f81ccafab5e to your computer and use it in GitHub Desktop.
Save nqbao/6988473b2a91c8a7715a8f81ccafab5e to your computer and use it in GitHub Desktop.
test fluent config
#<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