I noticed that in the logstash.yml file there is a field called pipeline.workers and you can specify the amount of workers that will work in parallel. The number defaults to the host's CPU cores.
My question is whether this can control CPU usage? Currently I am running the stack on my machine and when Logstash is parsing it hogs all of the CPU it can get its hands on. If I set the # of pipeline workers to half of the machine's cores will it then use only 50% of the CPU?
Is there a better way to control the CPU used by Logstash?