Logstash Configuration Doubt


(Shabinhashim) #1

HI,

I need a setup to monitor logs from 100 different machines. I checked beats framework and it seems i cannot install a package in the machine. Also does beats support Multi-line? Also as per this page https://www.elastic.co/guide/en/logstash/current/deploying-and-scaling.html , its better to send the data from logs to a message layer, then process it and then send to elastic search. I couldn't find a kafka output for beats.

So If i run very minimal logstash instance on tte 100 machines, with no processing and indexing, (Just throw the data to kafka with a multi-line filter added), will it have significant performance impact compared to using beats?


(Robin Clarke) #2

Hello Shabinhashim,

Filebeat does not (currently) do multiline - each line is sent as an individual event.

If you want to send beats to Kafka, you will have to use Logstash as an interim.

Your best solution if possible would be to ensure that your application writing the logs creates single-line (json encoded) log lines so that you can use filebeat to transport to logstash, and from there on to Elasticsearch , kafka etc.

Cheers,
-Robin-


(Shabinhashim) #3

First of all thanks for the prompt reply.
The application cannot be changed to log into a singe line.:unamused:

If i run logstash instances itself in the 100 machines (which does basic forwading) will it impact the performance of the machine compared to using beats?

Thanks
Shabin


(Robin Clarke) #4

Yes - filebeat is very light, logstash requires a JVM with the usual memory consumption.


(system) #5