Fluentd/Fluentbit
How to integrate Fluentd locally
- Append this to your
td-agent.conf
. - For the path you will have to create a
log.json
file in the directory and write some sample logs in it. - You can run the command
tail -f /var/log/td-agent/td-agent.log
- Make sure the ES Version in
server.yaml
matches the version of ES Fluentd plugin version.
<source>
@type tail
format json
read_from_head true
path /home/username/sigscalr/log.json # this is the path of all log files generated by genevents
pos_file /var/log/td-agent/httpd-access.log.pos
tag hyperion
</source>
<match hyperion>
@type elasticsearch
host localhost
port 8081
path /elastic
<buffer>
flush_mode interval
flush_interval 1s # for test purpose
</buffer>
</match>