Forward logs to fluentd from Spring Boot Application

2,533 views
Skip to first unread message

Raju Rathore

unread,
Dec 8, 2015, 4:45:11 AM12/8/15
to Fluentd Google Group
Hi,

In my Spring boot application  Currently i am using org.slf4j for logging .
Now I want to integrate Fluentd ,ElasticSearch and Kibana with spring boot application.

So anybody can help me how i can forward logs to fluentd in json format  after all configurations fluentd forwarder and aggregator.

Thanks

Mr. Fiber

unread,
Dec 8, 2015, 5:21:45 AM12/8/15
to Fluentd Google Group
If if your Spring boot application writes logs to file,
you can use in_tail.
If you can add fluentd loggers, fluent-logger-java or fluency,
you can send logs to fluend directly via in_forward plugin.


Masahiro

--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raju Rathore

unread,
Dec 8, 2015, 5:35:28 AM12/8/15
to Fluentd Google Group
Thanks A lot  Masahiro  For Answer

Could you please clarify in_tail itself convert logs data in json foramt before sending to fluentd or we need to write utility to convert log data in json, if yes then where I can write json converter code .

Thanks

Mr. Fiber

unread,
Dec 8, 2015, 5:54:48 AM12/8/15
to Fluentd Google Group
You can use format parameter in in_tail.
See in_tail document for more detail: http://docs.fluentd.org/articles/in_tail

Reply all
Reply to author
Forward
0 new messages