Logstash pipeline.worker default count


(Manikandan) #1

Currently we have not set any value for pipeline.worker count in logstash.yml. Elastic doc says the default value is the number of core available in the machine. My Cpu configuration is - virtual cpu count is 8 and sockets is 2. My question is default number for pipeline.workers is default cpu count or socket count. Following is the log entry when logstash starts

[2019-02-13T09:29:50,478][INFO ][logstash.pipeline ] Pipeline started succesfully {:pipeline_id=>"main", :thread=>"#<Thread:0x66584577 sleep>"}
[2019-02-13T09:29:50,510][INFO ][org.logstash.beats.Server] Starting server on port: 5044
[2019-02-13T09:29:50,572][INFO ][logstash.agent ] Pipelines running {:count=>2, :pipelines=>[".monitoring-logstash", "main"]}


#2

That's telling you that you have 2 pipelines. If you want to see how many workers they have use

curl -XGET 'localhost:9600/_node/pipelines?pretty'

That's one of the monitoring APIs.