Skip to content

Instantly share code, notes, and snippets.

@kailashyogeshwar85
Created November 18, 2019 07:04
Show Gist options
  • Save kailashyogeshwar85/b71216e22cdc52a04bab182dc4eca1b2 to your computer and use it in GitHub Desktop.
Save kailashyogeshwar85/b71216e22cdc52a04bab182dc4eca1b2 to your computer and use it in GitHub Desktop.
td-agent custom config
<system>
workers 1
log_level trace
</system>
# logs for api
<source>
@type tail
format json
tag cli.stdout
path /home/kyo@eur.ad.sag/builtio/projects/irepo/integration-cli/logs/cli.LOG
pos_file /var/log/td-agent/tmp/cli.log.pos
</source>
# send logs of application to kibana via elastic search
<match cli.stdout>
@type elasticsearch
host localhost
port 9200
index_name fluentd.${tag}
flush_interval 5s
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment