Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Logs are not being rotated #2644

Open
alpana17 opened this issue Dec 2, 2019 · 0 comments
Open

Logs are not being rotated #2644

alpana17 opened this issue Dec 2, 2019 · 0 comments

Comments

@alpana17
Copy link

alpana17 commented Dec 2, 2019

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???

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant