Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
3 Show appreciation through votes on answers. Thanks not necessary on SO/SX http://meta.stackoverflow.com/a/3021/186664
source | link

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.logto 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.

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.logto 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.

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.logto 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.

2 thanks removed
source | link

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.logto 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.

Thanks.

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.logto 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.

Thanks.

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.logto 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.

1
source | link

How to override configuration of a logrotate by another configuration

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.logto 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.

Thanks.