Skip to content

Instantly share code, notes, and snippets.

@DavidSanwald
Created October 6, 2020 16:49
Show Gist options
  • Save DavidSanwald/432b6aabd6b8b83f9285ff78eb6c2801 to your computer and use it in GitHub Desktop.
Save DavidSanwald/432b6aabd6b8b83f9285ff78eb6c2801 to your computer and use it in GitHub Desktop.
<source>
@type forward
@id http_input
port 24224
</source>
## match tag=myapp.** and forward and write to file in local
<match jina.**>
@type elasticsearch
host 127.0.0.1
port 9200
logstash_format true
index_name fluentd.${tag}.%Y%m%d
</match>
<match jina.**>
@type file
path /tmp/jina-log
append true
<buffer>
@type file
flush_mode interval
flush_interval 1s
</buffer>
</match>
<match jina-profile.**>
@type file
path /tmp/jina-profile
append true
<buffer>
@type file
flush_mode interval
flush_interval 1s
</buffer>
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment