Need 4 different Indexes in ElasticSearch for 4 different logs file format using single Logstash instance


(hasaN khaN) #1

I have 4 log files from 4 completely different applications
For e.g. Log A, B, C, D

The log format of A AND B is same and
The log format of A, C, and D is different

Source of reading log A, B and C is filebeat => Logstash
And Source of reading D is UDP => Logstash

I want to create 4 different Indexes in ElasticSearch and would prefer to have 4 different pipelines to keep all the configuration separate


(Magnus Bäck) #2

I'm not sure what you're asking.

I want to create 4 different Indexes in ElasticSearch

Why? Keep in mind that all shards have a fixed memory overhead so splitting your indexes in too many pieces isn't free.

and would prefer to have 4 different pipelines to keep all the configuration separate

Then just run four Logstash instances.


(hasaN khaN) #3

I/We need 4 different indexes as all 4 logs belongs to completely different applications
and we dont prefer to run/maintain multiple instance of Logstash as of now.
Thanks


(Magnus Bäck) #4

In that case http://stackoverflow.com/questions/27146032/make-logstash-add-different-inputs-to-different-indices should answer your question.


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.