'How do i send fluentd logs to elasticsearch?

I am using EFK. The logs of the apps are sent to elasticsearch via fluentD, How do I send fluentD's logs to elasticsearch? Just read the log file from fluentD and send it?

Is there a use case?



Solution 1:[1]

There is fluentd elasticsearch plugin: https://docs.fluentd.org/output/elasticsearch

Solution 2:[2]

You can match and handle fluentd's internal logs just as any other log message with <match fluent.*> See the docs for more.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 vmax33
Solution 2 threewordphrase