Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fluentd to Logstash output plugin

I am trying to read from the scribe server using flunetd and output those logs to be stored in logstash for now. I know it's very stupid to log the scribe_central logs to another central logger, but we need this to be done in our current architecture.

Does anyone know if there is any plugin to do that? I searched Google but could not find any.

like image 490
user3195649 Avatar asked Apr 17 '14 22:04

user3195649


2 Answers

For Scribe <-> Fluentd, there is fluent-plugin-scribe:

For Fluentd <-> Logstash, a couple of options:

  1. Use Redis in the middle, and use fluent-plugin-redis and input_redis on Logstash's side. So it would be Fluentd -> Redis -> Logstash. This is what Logstash recommends anyway with log shippers + Logstash.
  2. Alternatively, you can use Fluentd's out_forward plugin with Logstash's TCP input. Logstash has Fluentd codec to handle the input coming from Fluentd.
like image 125
Kiyoto Tamura Avatar answered Nov 17 '22 04:11

Kiyoto Tamura


You can forward it directly to your logstash tcp input :)

I wrote a flunetd output plugin for forwarding fluentd events to a generic receiver through a secured tcp connection (can be configured for non-secured as well).

To add the plugin to your fluentd agent, use the following command:

gem install fluent-plugin-loomsystems

Also see full original answer, good luck.

like image 3
dorony Avatar answered Nov 17 '22 04:11

dorony