There is a log folder on my disk, whose rotation policy is as follows
"/mnt/foo/shared/log/*.log" {
# rotate the files daily
daily
# Save the last 7 days worth of logs before deleting
rotate 7
# missing file is not an error case - just ignore.
missingok
# this is important for the logs
copytruncate
}
There is a set of logfiles in the /mnt/foo/shared/log
folder named indexer_cron_1.log
to indexer_cron_4.log
I want only these 4 files to be rotated for 14 days. How do I override this configuration? I thought of creating another configuration but the thought of duplicate rotations occured and I stopped this. I do not have a machine where I can test this before, hence asking here.