How to edit logrotate for logstash?

Hello,

I'm trying to increase the log retention for logstashs logs. I'm unsure where I'm supposed to edit these settings. Is it it the log4j2 file? Or is it somewhere in /etc/logrotate?