coreos / bugs

Issue tracker for CoreOS Container Linux
https://coreos.com/os/eol/
146 stars 30 forks source link

Logs are not being rotated #2644

Open alpana17 opened 4 years ago

alpana17 commented 4 years ago

I have a log file at /var/splunk/journald journal logs are converted into text and directed to this file.

I defined log rotation policy for this file at /etc/logrotate.d/journalLogs.conf /var/splunk/journald { daily rotate 3 size 10M compress delaycompress }

Current size of this log file is image

On executing logrotate -d /etc/logrotate.d/journalLogs.conf; output is image

but, ls -al /var/splunk returns image

Where are the rotated log files???