Will logging in DEBUG level cause performance issues in Logstash?


(Nandha Krishna) #1

Just wanted to know whether there will be any performance issues when the logging level is changed to DEBUG in logstash.


(Magnus Bäck) #2

Excessive logging will of course incur a CPU and I/O cost, but whether that cost degrades performance in a measurable way depends on e.g. your current load.


(Nandha Krishna) #3

Thank you Magnus for the reply. Is that because DEBUG level logging provides more information than normal logging level?


(Magnus Bäck) #4

Producing more data costs more, yes.


(Nandha Krishna) #5

Is that cost something that shouldnt be cared about or does that make big difference and affect the performance a lot? Its okay if it affects 2% of performance, but is a problem if it affects 20%.


(Magnus Bäck) #6

As I said, whether that cost degrades performance in a measurable way depends on e.g. your current load. That's the best answer you're going to get. Measure what difference it makes for you and judge for yourself if that difference is material to you.


(Nandha Krishna) #7

Thank you Magnus for the answer! :):slightly_smiling_face:


(system) #8

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