Write only errors log level on logstash-plain.log

Hi guys,

I have lot of informations in my logstash-plain and the size can be increased to xx Gb.

I thought about two solutions :

  • First, I noticed that my logstash-plain.log contains x days informations, the solution is to make and archive the log every 1 day.

  • 2nd solution, is to save only ERROR log level on my logstash plain.

I tried to edit the logstash.yml by adding log.level: error but nothing happened.

What's the best solution ?


If you want to adjust the level of logging by log4j then you should be changing the log4j2.properties file.

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