简体   繁体   中英

filebeat to logstash or elasticsearch

I'm trying to visualize logs from my app. My logs formatted as json and stored in some file. I have filebeat installed which uses the same file as input. An filebeat could send the logs to Logstash and to Elasticsearch directly. Logstash could process logs, do something, parse them... But my logs are json formatted already.

Elasticsearch are going to be installed on another server, another side of the planet...

so, my question is, Is there any good reason to use logstash in such scenario?( no need do any processing ), or is it ok to send logs to elasticsearch server directly?

I'm guessing the Logstash could do some buffering, but I want to keep my app's server light, don't want to install anything on top of it.

Thanks.

May this help you : https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html . You can post the json into es by filebeat without Logstash, Logtstash is too heavy sometimes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM