Created
November 18, 2019 07:04
-
-
Save kailashyogeshwar85/b71216e22cdc52a04bab182dc4eca1b2 to your computer and use it in GitHub Desktop.
td-agent custom 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
<system> | |
workers 1 | |
log_level trace | |
</system> | |
# logs for api | |
<source> | |
@type tail | |
format json | |
tag cli.stdout | |
path /home/[email protected]/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