Logstash logs

I have installed logstash 7.16.3 with default settings in logstash.yml and log4j2.properties.
My understanding is that with this configuration each log type, for example, logstash-plain.log should not be able to exceed 30 files. However in my folder /var/log/logstash there are more than double this amount. I would like to be able to configure it to rotate daily and only keep the last 7 days, could someone help me? Thanks in advance.

This thread may help you.

Thanks!, it's working.

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