How to improve logstash performance on this config

My current config is as below, right now below config processes 119,445,555 records from beats to logstash and sent to elastic takes 3 mins 40 sec. what other config can improve this performance. The AccountFilter1 is simple rename of fields, so i dont see much options there.

  • beatsPipeline1
    path.config: "/ElasticSearch/newChnages/pipeline_config/Test/beatsRouter.conf"
    pipeline.workers: 3
    pipeline.batch.size: 1000
    #queue.type: persisted
    #path.queue: "/ElasticSearch/newChnages/LogstashQueue/persistant/beatsPipeline"
  • accountsPipeline1
    path.config: "/ElasticSearch/newChnages/pipeline_config/Test/AccountFilter1.conf"
    pipeline.workers: 2
    pipeline.batch.size: 1000
    #queue.type: persisted
    #path.queue: "/ElasticSearch/newChnages/LogstashQueue/persistant/accountsPipeline"

Unfortunately that is one of those questions that really does not work well in a forum like this because it requires a level of visibility into your system that it is not practical for you to provide.

Step one is to figure out whether beats, logstash or elasticsearch is the bottleneck. Then, for whichever one is the bottleneck, what is the resource constraint (CPU, memory, disk throughput) limiting it.

I would test with a smaller record set. Maybe 30 million records, to get faster turnaround time on the iterations.

I would test the scalability of each pipeline. That is, running only a single pipeline, change the number of worker threads and see how the throughput responds. You would hope for it to be nearly linear, but it will only take a few minutes to check.

Within logstash there are almost no tuning options related to performance. There are a few in elasticsearch if the problem turns out to be there.

Oh, and make sure any grok patterns and regexps are appropriately anchored.

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