Health check logs are not deleted
Description:
I’m trying to use the health checker that is shipped with Percona Operator for MongoDB. I’m testing to confirm if the logs that created by the health checker will be delete correctly but seems those are not deleted even this document is saying that those created before 1 day will be deleted.
Steps to Reproduce:
I have copied the healthchecker from the Percona Operator for MongoDB container to Percona MongoDB container, and then set the probes like below in a MongoDB POD.
bash -c "cd /data/db && LOG_LEVEL=ERROR mongodb-healthcheck k8s liveness --startupDelaySeconds 7200 --component mongod"
After that, make the mongodb pod keeps crashed to generate the logs by health checker.
Version:
1.17.0
Logs:
$ ls -al /data/db/mongod-data/logs/ total 11276
drwxr-xr-x 2 mongodb root 245760 Oct 21 00:54 .
drwxr-xr-x 3 mongodb root 4096 Oct 18 11:12 ..
-rw------- 1 mongodb root 3280 Oct 18 11:12 mongodb-healthcheck-2024-10-18T11-12-33.420.log
-rw------- 1 mongodb root 3280 Oct 18 11:13 mongodb-healthcheck-2024-10-18T11-13-03.414.log
-rw------- 1 mongodb root 3280 Oct 18 11:13 mongodb-healthcheck-2024-10-18T11-13-33.720.log
-rw------- 1 mongodb root 0 Oct 18 11:14 mongodb-healthcheck-2024-10-18T11-13-33.720.log.gz
-rw------- 1 mongodb root 3280 Oct 18 11:14 mongodb-healthcheck-2024-10-18T11-14-03.428.log
-rw------- 1 mongodb root 3280 Oct 18 11:15 mongodb-healthcheck-2024-10-18T11-15-33.415.log
-rw------- 1 mongodb root 250 Oct 18 11:16 mongodb-healthcheck-2024-10-18T11-15-33.415.log.gz
-rw------- 1 mongodb root 3280 Oct 18 11:16 mongodb-healthcheck-2024-10-18T11-16-03.514.log
-rw------- 1 mongodb root 0 Oct 18 11:16 mongodb-healthcheck-2024-10-18T11-16-03.514.log.gz
-rw------- 1 mongodb root 3280 Oct 18 11:16 mongodb-healthcheck-2024-10-18T11-16-33.423.log
-rw------- 1 mongodb root 3280 Oct 18 11:17 mongodb-healthcheck-2024-10-18T11-17-03.315.log
-rw------- 1 mongodb root 3280 Oct 18 11:18 mongodb-healthcheck-2024-10-18T11-18-33.630.log
-rw------- 1 mongodb root 3280 Oct 18 11:19 mongodb-healthcheck-2024-10-18T11-19-03.220.log
-rw------- 1 mongodb root 3280 Oct 18 11:19 mongodb-healthcheck-2024-10-18T11-19-33.343.log
-rw------- 1 mongodb root 3280 Oct 18 11:20 mongodb-healthcheck-2024-10-18T11-20-03.516.log
-rw------- 1 mongodb root 3280 Oct 18 11:21 mongodb-healthcheck-2024-10-18T11-21-33.520.log
-rw------- 1 mongodb root 3280 Oct 18 11:22 mongodb-healthcheck-2024-10-18T11-22-03.430.log
-rw------- 1 mongodb root 3280 Oct 18 11:22 mongodb-healthcheck-2024-10-18T11-22-33.527.log
-rw------- 1 mongodb root 3280 Oct 18 11:23 mongodb-healthcheck-2024-10-18T11-23-03.232.log
-rw------- 1 mongodb root 3280 Oct 18 11:24 mongodb-healthcheck-2024-10-18T11-24-33.414.log
-rw------- 1 mongodb root 3280 Oct 18 11:25 mongodb-healthcheck-2024-10-18T11-25-03.218.log
-rw------- 1 mongodb root 3280 Oct 18 11:25 mongodb-healthcheck-2024-10-18T11-25-33.523.log
-rw------- 1 mongodb root 10 Oct 18 11:27 mongodb-healthcheck-2024-10-18T11-25-33.523.log.gz
-rw------- 1 mongodb root 529 Oct 18 11:27 mongodb-healthcheck-2024-10-18T11-26-03.622.log.gz
-rw------- 1 mongodb root 3280 Oct 18 11:27 mongodb-healthcheck-2024-10-18T11-27-33.360.log
-rw------- 1 mongodb root 3280 Oct 18 11:28 mongodb-healthcheck-2024-10-18T11-28-03.435.log
-rw------- 1 mongodb root 3280 Oct 18 11:28 mongodb-healthcheck-2024-10-18T11-28-33.418.log
-rw------- 1 mongodb root 3280 Oct 18 11:29 mongodb-healthcheck-2024-10-18T11-29-03.424.log
-rw------- 1 mongodb root 3280 Oct 18 11:30 mongodb-healthcheck-2024-10-18T11-30-33.220.log
-rw------- 1 mongodb root 3280 Oct 18 11:31 mongodb-healthcheck-2024-10-18T11-31-03.425.log
-rw------- 1 mongodb root 3280 Oct 18 11:31 mongodb-healthcheck-2024-10-18T11-31-33.615.log
-rw------- 1 mongodb root 3280 Oct 18 11:32 mongodb-healthcheck-2024-10-18T11-32-03.420.log
-rw------- 1 mongodb root 3280 Oct 18 11:33 mongodb-healthcheck-2024-10-18T11-33-33.428.log
-rw------- 1 mongodb root 10 Oct 18 11:34 mongodb-healthcheck-2024-10-18T11-33-33.428.log.gz
-rw------- 1 mongodb root 529 Oct 18 11:34 mongodb-healthcheck-2024-10-18T11-34-03.523.log.gz
-rw------- 1 mongodb root 3280 Oct 18 11:34 mongodb-healthcheck-2024-10-18T11-34-33.414.log
-rw------- 1 mongodb root 3280 Oct 18 11:35 mongodb-healthcheck-2024-10-18T11-35-03.422.log
-rw------- 1 mongodb root 3280 Oct 18 11:41 mongodb-healthcheck-2024-10-18T11-41-33.523.log
-rw------- 1 mongodb root 3280 Oct 18 11:42 mongodb-healthcheck-2024-10-18T11-42-03.616.log
-rw------- 1 mongodb root 3280 Oct 18 11:42 mongodb-healthcheck-2024-10-18T11-42-33.214.log
-rw------- 1 mongodb root 3280 Oct 18 11:43 mongodb-healthcheck-2024-10-18T11-43-03.519.log
-rw------- 1 mongodb root 3280 Oct 18 11:44 mongodb-healthcheck-2024-10-18T11-44-33.419.log
-rw------- 1 mongodb root 3280 Oct 18 11:45 mongodb-healthcheck-2024-10-18T11-45-03.515.log
-rw------- 1 mongodb root 3280 Oct 18 11:45 mongodb-healthcheck-2024-10-18T11-45-33.434.log
-rw------- 1 mongodb root 10 Oct 18 11:45 mongodb-healthcheck-2024-10-18T11-45-33.434.log.gz
-rw------- 1 mongodb root 3280 Oct 18 11:46 mongodb-healthcheck-2024-10-18T11-46-03.721.log
-rw------- 1 mongodb root 3280 Oct 18 11:52 mongodb-healthcheck-2024-10-18T11-52-33.516.log
-rw------- 1 mongodb root 3280 Oct 18 11:53 mongodb-healthcheck-2024-10-18T11-53-03.337.log
-rw------- 1 mongodb root 3280 Oct 18 11:53 mongodb-healthcheck-2024-10-18T11-53-33.523.log
-rw------- 1 mongodb root 3280 Oct 18 11:54 mongodb-healthcheck-2024-10-18T11-54-03.614.log
-rw------- 1 mongodb root 3280 Oct 18 11:55 mongodb-healthcheck-2024-10-18T11-55-33.524.log
-rw------- 1 mongodb root 3280 Oct 18 11:56 mongodb-healthcheck-2024-10-18T11-56-03.333.log
-rw------- 1 mongodb root 3280 Oct 18 11:56 mongodb-healthcheck-2024-10-18T11-56-33.423.log
-rw------- 1 mongodb root 3280 Oct 18 11:57 mongodb-healthcheck-2024-10-18T11-57-03.626.log
-rw------- 1 mongodb root 3280 Oct 18 12:03 mongodb-healthcheck-2024-10-18T12-03-33.216.log
-rw------- 1 mongodb root 3280 Oct 18 12:04 mongodb-healthcheck-2024-10-18T12-04-03.320.log
-rw------- 1 mongodb root 3280 Oct 18 12:04 mongodb-healthcheck-2024-10-18T12-04-33.226.log
-rw------- 1 mongodb root 3280 Oct 18 12:05 mongodb-healthcheck-2024-10-18T12-05-03.228.log
-rw------- 1 mongodb root 3280 Oct 18 12:06 mongodb-healthcheck-2024-10-18T12-06-33.415.log
-rw------- 1 mongodb root 3280 Oct 18 12:07 mongodb-healthcheck-2024-10-18T12-07-03.724.log
-rw------- 1 mongodb root 3280 Oct 18 12:07 mongodb-healthcheck-2024-10-18T12-07-33.150.log
-rw------- 1 mongodb root 3280 Oct 18 12:08 mongodb-healthcheck-2024-10-18T12-08-03.624.log
-rw------- 1 mongodb root 3280 Oct 18 12:14 mongodb-healthcheck-2024-10-18T12-14-33.523.log
-rw------- 1 mongodb root 3280 Oct 18 12:15 mongodb-healthcheck-2024-10-18T12-15-03.627.log
-rw------- 1 mongodb root 3280 Oct 18 12:15 mongodb-healthcheck-2024-10-18T12-15-33.418.log
-rw------- 1 mongodb root 3280 Oct 18 12:16 mongodb-healthcheck-2024-10-18T12-16-03.729.log
-rw------- 1 mongodb root 3280 Oct 18 12:17 mongodb-healthcheck-2024-10-18T12-17-33.517.log
-rw------- 1 mongodb root 3280 Oct 18 12:18 mongodb-healthcheck-2024-10-18T12-18-03.529.log
-rw------- 1 mongodb root 3280 Oct 18 12:18 mongodb-healthcheck-2024-10-18T12-18-33.343.log
-rw------- 1 mongodb root 3280 Oct 18 12:19 mongodb-healthcheck-2024-10-18T12-19-03.421.log
-rw------- 1 mongodb root 3280 Oct 18 12:25 mongodb-healthcheck-2024-10-18T12-25-33.616.log
-rw------- 1 mongodb root 3280 Oct 18 12:26 mongodb-healthcheck-2024-10-18T12-26-03.321.log
-rw------- 1 mongodb root 3280 Oct 18 12:26 mongodb-healthcheck-2024-10-18T12-26-33.519.log
-rw------- 1 mongodb root 3280 Oct 18 12:27 mongodb-healthcheck-2024-10-18T12-27-03.520.log
-rw------- 1 mongodb root 3280 Oct 18 12:28 mongodb-healthcheck-2024-10-18T12-28-33.615.log
-rw------- 1 mongodb root 3280 Oct 18 12:29 mongodb-healthcheck-2024-10-18T12-29-03.328.log
-rw------- 1 mongodb root 3280 Oct 18 12:29 mongodb-healthcheck-2024-10-18T12-29-33.344.log
-rw------- 1 mongodb root 3280 Oct 18 12:30 mongodb-healthcheck-2024-10-18T12-30-03.332.log
-rw------- 1 mongodb root 3280 Oct 18 12:36 mongodb-healthcheck-2024-10-18T12-36-33.424.log
...
-rw------- 1 mongodb root 3280 Oct 20 21:25 mongodb-healthcheck-2024-10-20T21-25-33.225.log
-rw------- 1 mongodb root 3280 Oct 20 21:26 mongodb-healthcheck-2024-10-20T21-26-03.621.log
-rw------- 1 mongodb root 3280 Oct 20 21:32 mongodb-healthcheck-2024-10-20T21-32-33.424.log
-rw------- 1 mongodb root 3280 Oct 20 21:33 mongodb-healthcheck-2024-10-20T21-33-03.523.log
-rw------- 1 mongodb root 3280 Oct 20 21:33 mongodb-healthcheck-2024-10-20T21-33-33.236.log
-rw------- 1 mongodb root 3280 Oct 20 21:34 mongodb-healthcheck-2024-10-20T21-34-03.630.log
-rw------- 1 mongodb root 3280 Oct 20 21:35 mongodb-healthcheck-2024-10-20T21-35-33.328.log
-rw------- 1 mongodb root 3280 Oct 20 21:36 mongodb-healthcheck-2024-10-20T21-36-03.220.log
-rw------- 1 mongodb root 3280 Oct 20 21:36 mongodb-healthcheck-2024-10-20T21-36-33.423.log
-rw------- 1 mongodb root 3280 Oct 20 21:37 mongodb-healthcheck-2024-10-20T21-37-03.433.log
-rw------- 1 mongodb root 3280 Oct 20 21:43 mongodb-healthcheck-2024-10-20T21-43-33.527.log
-rw------- 1 mongodb root 3280 Oct 20 21:44 mongodb-healthcheck-2024-10-20T21-44-03.416.log
-rw------- 1 mongodb root 3280 Oct 20 21:44 mongodb-healthcheck-2024-10-20T21-44-33.135.log
-rw------- 1 mongodb root 3280 Oct 20 21:45 mongodb-healthcheck-2024-10-20T21-45-03.227.log
-rw------- 1 mongodb root 3280 Oct 20 21:46 mongodb-healthcheck-2024-10-20T21-46-33.325.log
-rw------- 1 mongodb root 3280 Oct 20 21:47 mongodb-healthcheck-2024-10-20T21-47-03.335.log
-rw------- 1 mongodb root 3280 Oct 20 21:47 mongodb-healthcheck-2024-10-20T21-47-33.422.log
-rw------- 1 mongodb root 3280 Oct 20 21:48 mongodb-healthcheck-2024-10-20T21-48-03.421.log
-rw------- 1 mongodb root 3280 Oct 20 21:54 mongodb-healthcheck-2024-10-20T21-54-33.146.log
-rw------- 1 mongodb root 3280 Oct 20 21:55 mongodb-healthcheck-2024-10-20T21-55-03.417.log
-rw------- 1 mongodb root 3280 Oct 20 21:55 mongodb-healthcheck-2024-10-20T21-55-33.427.log
-rw------- 1 mongodb root 3280 Oct 20 21:56 mongodb-healthcheck-2024-10-20T21-56-03.429.log
-rw------- 1 mongodb root 3280 Oct 20 21:57 mongodb-healthcheck-2024-10-20T21-57-33.522.log
-rw------- 1 mongodb root 3280 Oct 20 21:58 mongodb-healthcheck-2024-10-20T21-58-03.422.log
-rw------- 1 mongodb root 3280 Oct 20 21:58 mongodb-healthcheck-2024-10-20T21-58-33.424.log
-rw------- 1 mongodb root 3280 Oct 20 21:59 mongodb-healthcheck-2024-10-20T21-59-03.420.log
-rw------- 1 mongodb root 3280 Oct 20 22:05 mongodb-healthcheck-2024-10-20T22-05-33.530.log
-rw------- 1 mongodb root 3280 Oct 20 22:06 mongodb-healthcheck-2024-10-20T22-06-03.416.log
-rw------- 1 mongodb root 3280 Oct 20 22:06 mongodb-healthcheck-2024-10-20T22-06-33.217.log
-rw------- 1 mongodb root 3280 Oct 20 22:07 mongodb-healthcheck-2024-10-20T22-07-03.516.log
-rw------- 1 mongodb root 3280 Oct 20 22:08 mongodb-healthcheck-2024-10-20T22-08-33.525.log
-rw------- 1 mongodb root 3280 Oct 20 22:09 mongodb-healthcheck-2024-10-20T22-09-03.515.log
-rw------- 1 mongodb root 3280 Oct 20 22:09 mongodb-healthcheck-2024-10-20T22-09-33.225.log
-rw------- 1 mongodb root 3280 Oct 20 22:10 mongodb-healthcheck-2024-10-20T22-10-03.320.log
-rw------- 1 mongodb root 3280 Oct 20 22:16 mongodb-healthcheck-2024-10-20T22-16-33.519.log
-rw------- 1 mongodb root 3280 Oct 20 22:17 mongodb-healthcheck-2024-10-20T22-17-03.429.log
-rw------- 1 mongodb root 3280 Oct 20 22:17 mongodb-healthcheck-2024-10-20T22-17-33.323.log
-rw------- 1 mongodb root 3280 Oct 20 22:18 mongodb-healthcheck-2024-10-20T22-18-03.419.log
-rw------- 1 mongodb root 3280 Oct 20 22:19 mongodb-healthcheck-2024-10-20T22-19-33.139.log
-rw------- 1 mongodb root 3280 Oct 20 22:20 mongodb-healthcheck-2024-10-20T22-20-03.618.log
-rw------- 1 mongodb root 3280 Oct 20 22:20 mongodb-healthcheck-2024-10-20T22-20-33.317.log
-rw------- 1 mongodb root 3280 Oct 20 22:21 mongodb-healthcheck-2024-10-20T22-21-03.131.log
-rw------- 1 mongodb root 3280 Oct 20 22:27 mongodb-healthcheck-2024-10-20T22-27-33.221.log
-rw------- 1 mongodb root 3280 Oct 20 22:28 mongodb-healthcheck-2024-10-20T22-28-03.521.log
-rw------- 1 mongodb root 3280 Oct 20 22:28 mongodb-healthcheck-2024-10-20T22-28-33.520.log
-rw------- 1 mongodb root 3280 Oct 20 22:29 mongodb-healthcheck-2024-10-20T22-29-03.419.log
-rw------- 1 mongodb root 3280 Oct 20 22:30 mongodb-healthcheck-2024-10-20T22-30-33.128.log
-rw------- 1 mongodb root 3280 Oct 20 22:31 mongodb-healthcheck-2024-10-20T22-31-03.425.log
-rw------- 1 mongodb root 3280 Oct 20 22:31 mongodb-healthcheck-2024-10-20T22-31-33.337.log
-rw------- 1 mongodb root 3280 Oct 20 22:32 mongodb-healthcheck-2024-10-20T22-32-03.218.log
-rw------- 1 mongodb root 3280 Oct 20 22:38 mongodb-healthcheck-2024-10-20T22-38-33.421.log
-rw------- 1 mongodb root 3280 Oct 20 22:39 mongodb-healthcheck-2024-10-20T22-39-03.524.log
-rw------- 1 mongodb root 3280 Oct 20 22:39 mongodb-healthcheck-2024-10-20T22-39-33.225.log
-rw------- 1 mongodb root 3280 Oct 20 22:40 mongodb-healthcheck-2024-10-20T22-40-03.531.log
-rw------- 1 mongodb root 3280 Oct 20 22:41 mongodb-healthcheck-2024-10-20T22-41-33.417.log
-rw------- 1 mongodb root 3280 Oct 20 22:42 mongodb-healthcheck-2024-10-20T22-42-03.718.log
-rw------- 1 mongodb root 3280 Oct 20 22:42 mongodb-healthcheck-2024-10-20T22-42-33.420.log
-rw------- 1 mongodb root 3280 Oct 20 22:43 mongodb-healthcheck-2024-10-20T22-43-03.714.log
-rw------- 1 mongodb root 3280 Oct 20 22:49 mongodb-healthcheck-2024-10-20T22-49-33.140.log
-rw------- 1 mongodb root 3280 Oct 20 22:50 mongodb-healthcheck-2024-10-20T22-50-03.414.log
-rw------- 1 mongodb root 3280 Oct 20 22:50 mongodb-healthcheck-2024-10-20T22-50-33.417.log
-rw------- 1 mongodb root 3280 Oct 20 22:51 mongodb-healthcheck-2024-10-20T22-51-03.416.log
-rw------- 1 mongodb root 3280 Oct 20 22:52 mongodb-healthcheck-2024-10-20T22-52-33.424.log
-rw------- 1 mongodb root 3280 Oct 20 22:53 mongodb-healthcheck-2024-10-20T22-53-03.416.log
-rw------- 1 mongodb root 3280 Oct 20 22:53 mongodb-healthcheck-2024-10-20T22-53-33.515.log
-rw------- 1 mongodb root 3280 Oct 20 22:54 mongodb-healthcheck-2024-10-20T22-54-03.419.log
-rw------- 1 mongodb root 3280 Oct 20 23:00 mongodb-healthcheck-2024-10-20T23-00-33.427.log
-rw------- 1 mongodb root 3280 Oct 20 23:01 mongodb-healthcheck-2024-10-20T23-01-03.418.log
-rw------- 1 mongodb root 3280 Oct 20 23:01 mongodb-healthcheck-2024-10-20T23-01-33.143.log
-rw------- 1 mongodb root 3280 Oct 20 23:02 mongodb-healthcheck-2024-10-20T23-02-03.417.log
-rw------- 1 mongodb root 3280 Oct 20 23:03 mongodb-healthcheck-2024-10-20T23-03-33.422.log
-rw------- 1 mongodb root 3280 Oct 20 23:04 mongodb-healthcheck-2024-10-20T23-04-03.530.log
-rw------- 1 mongodb root 3280 Oct 20 23:04 mongodb-healthcheck-2024-10-20T23-04-33.424.log
-rw------- 1 mongodb root 3280 Oct 20 23:05 mongodb-healthcheck-2024-10-20T23-05-03.228.log
-rw------- 1 mongodb root 3280 Oct 20 23:11 mongodb-healthcheck-2024-10-20T23-11-33.519.log
-rw------- 1 mongodb root 3280 Oct 20 23:12 mongodb-healthcheck-2024-10-20T23-12-03.316.log
-rw------- 1 mongodb root 3280 Oct 20 23:12 mongodb-healthcheck-2024-10-20T23-12-33.528.log
-rw------- 1 mongodb root 3280 Oct 20 23:13 mongodb-healthcheck-2024-10-20T23-13-03.425.log
-rw------- 1 mongodb root 3280 Oct 20 23:14 mongodb-healthcheck-2024-10-20T23-14-33.148.log
-rw------- 1 mongodb root 3280 Oct 20 23:15 mongodb-healthcheck-2024-10-20T23-15-03.622.log
-rw------- 1 mongodb root 3280 Oct 20 23:15 mongodb-healthcheck-2024-10-20T23-15-33.422.log
-rw------- 1 mongodb root 3280 Oct 20 23:16 mongodb-healthcheck-2024-10-20T23-16-03.316.log
-rw------- 1 mongodb root 3280 Oct 20 23:22 mongodb-healthcheck-2024-10-20T23-22-33.132.log
-rw------- 1 mongodb root 3280 Oct 20 23:23 mongodb-healthcheck-2024-10-20T23-23-03.415.log
-rw------- 1 mongodb root 3280 Oct 20 23:23 mongodb-healthcheck-2024-10-20T23-23-33.219.log
-rw------- 1 mongodb root 3280 Oct 20 23:24 mongodb-healthcheck-2024-10-20T23-24-03.627.log
-rw------- 1 mongodb root 3280 Oct 20 23:25 mongodb-healthcheck-2024-10-20T23-25-33.523.log
-rw------- 1 mongodb root 3280 Oct 20 23:26 mongodb-healthcheck-2024-10-20T23-26-03.426.log
-rw------- 1 mongodb root 3280 Oct 20 23:26 mongodb-healthcheck-2024-10-20T23-26-33.148.log
-rw------- 1 mongodb root 3280 Oct 20 23:27 mongodb-healthcheck-2024-10-20T23-27-03.714.log
-rw------- 1 mongodb root 3280 Oct 20 23:33 mongodb-healthcheck-2024-10-20T23-33-33.521.log
-rw------- 1 mongodb root 3280 Oct 20 23:34 mongodb-healthcheck-2024-10-20T23-34-03.441.log
-rw------- 1 mongodb root 3280 Oct 20 23:34 mongodb-healthcheck-2024-10-20T23-34-33.629.log
-rw------- 1 mongodb root 3280 Oct 20 23:35 mongodb-healthcheck-2024-10-20T23-35-03.326.log
-rw------- 1 mongodb root 3280 Oct 20 23:36 mongodb-healthcheck-2024-10-20T23-36-33.421.log
-rw------- 1 mongodb root 3280 Oct 20 23:37 mongodb-healthcheck-2024-10-20T23-37-03.319.log
-rw------- 1 mongodb root 3280 Oct 20 23:37 mongodb-healthcheck-2024-10-20T23-37-33.218.log
-rw------- 1 mongodb root 3280 Oct 20 23:38 mongodb-healthcheck-2024-10-20T23-38-03.314.log
-rw------- 1 mongodb root 3280 Oct 20 23:44 mongodb-healthcheck-2024-10-20T23-44-33.322.log
-rw------- 1 mongodb root 3280 Oct 20 23:45 mongodb-healthcheck-2024-10-20T23-45-03.320.log
-rw------- 1 mongodb root 3280 Oct 20 23:45 mongodb-healthcheck-2024-10-20T23-45-33.141.log
-rw------- 1 mongodb root 3280 Oct 20 23:46 mongodb-healthcheck-2024-10-20T23-46-03.219.log
-rw------- 1 mongodb root 3280 Oct 20 23:47 mongodb-healthcheck-2024-10-20T23-47-33.326.log
-rw------- 1 mongodb root 3280 Oct 20 23:48 mongodb-healthcheck-2024-10-20T23-48-03.318.log
-rw------- 1 mongodb root 3280 Oct 20 23:48 mongodb-healthcheck-2024-10-20T23-48-33.357.log
-rw------- 1 mongodb root 3280 Oct 20 23:49 mongodb-healthcheck-2024-10-20T23-49-03.321.log
-rw------- 1 mongodb root 3280 Oct 20 23:55 mongodb-healthcheck-2024-10-20T23-55-33.421.log
-rw------- 1 mongodb root 3280 Oct 20 23:56 mongodb-healthcheck-2024-10-20T23-56-03.149.log
-rw------- 1 mongodb root 3280 Oct 20 23:56 mongodb-healthcheck-2024-10-20T23-56-33.345.log
-rw------- 1 mongodb root 3280 Oct 20 23:57 mongodb-healthcheck-2024-10-20T23-57-03.139.log
-rw------- 1 mongodb root 3280 Oct 20 23:58 mongodb-healthcheck-2024-10-20T23-58-33.146.log
-rw------- 1 mongodb root 3280 Oct 20 23:59 mongodb-healthcheck-2024-10-20T23-59-03.619.log
-rw------- 1 mongodb root 3280 Oct 20 23:59 mongodb-healthcheck-2024-10-20T23-59-33.515.log
-rw------- 1 mongodb root 3280 Oct 21 00:00 mongodb-healthcheck-2024-10-21T00-00-03.619.log
-rw------- 1 mongodb root 3280 Oct 21 00:06 mongodb-healthcheck-2024-10-21T00-06-33.434.log
-rw------- 1 mongodb root 3280 Oct 21 00:07 mongodb-healthcheck-2024-10-21T00-07-03.425.log
-rw------- 1 mongodb root 3280 Oct 21 00:07 mongodb-healthcheck-2024-10-21T00-07-33.619.log
-rw------- 1 mongodb root 3280 Oct 21 00:08 mongodb-healthcheck-2024-10-21T00-08-03.417.log
-rw------- 1 mongodb root 3280 Oct 21 00:09 mongodb-healthcheck-2024-10-21T00-09-33.151.log
-rw------- 1 mongodb root 3280 Oct 21 00:10 mongodb-healthcheck-2024-10-21T00-10-03.219.log
-rw------- 1 mongodb root 3280 Oct 21 00:10 mongodb-healthcheck-2024-10-21T00-10-33.254.log
-rw------- 1 mongodb root 3280 Oct 21 00:11 mongodb-healthcheck-2024-10-21T00-11-03.219.log
-rw------- 1 mongodb root 3280 Oct 21 00:17 mongodb-healthcheck-2024-10-21T00-17-33.719.log
-rw------- 1 mongodb root 3280 Oct 21 00:18 mongodb-healthcheck-2024-10-21T00-18-03.422.log
-rw------- 1 mongodb root 3280 Oct 21 00:18 mongodb-healthcheck-2024-10-21T00-18-33.618.log
-rw------- 1 mongodb root 3280 Oct 21 00:19 mongodb-healthcheck-2024-10-21T00-19-03.421.log
-rw------- 1 mongodb root 3280 Oct 21 00:20 mongodb-healthcheck-2024-10-21T00-20-33.418.log
-rw------- 1 mongodb root 3280 Oct 21 00:21 mongodb-healthcheck-2024-10-21T00-21-03.325.log
-rw------- 1 mongodb root 3280 Oct 21 00:21 mongodb-healthcheck-2024-10-21T00-21-33.413.log
-rw------- 1 mongodb root 3280 Oct 21 00:22 mongodb-healthcheck-2024-10-21T00-22-03.523.log
-rw------- 1 mongodb root 3280 Oct 21 00:28 mongodb-healthcheck-2024-10-21T00-28-33.520.log
-rw------- 1 mongodb root 3280 Oct 21 00:29 mongodb-healthcheck-2024-10-21T00-29-03.223.log
-rw------- 1 mongodb root 3280 Oct 21 00:29 mongodb-healthcheck-2024-10-21T00-29-33.721.log
-rw------- 1 mongodb root 3280 Oct 21 00:30 mongodb-healthcheck-2024-10-21T00-30-03.519.log
-rw------- 1 mongodb root 3280 Oct 21 00:31 mongodb-healthcheck-2024-10-21T00-31-33.418.log
-rw------- 1 mongodb root 3280 Oct 21 00:32 mongodb-healthcheck-2024-10-21T00-32-03.426.log
-rw------- 1 mongodb root 3280 Oct 21 00:32 mongodb-healthcheck-2024-10-21T00-32-33.138.log
-rw------- 1 mongodb root 3280 Oct 21 00:33 mongodb-healthcheck-2024-10-21T00-33-03.431.log
-rw------- 1 mongodb root 3280 Oct 21 00:39 mongodb-healthcheck-2024-10-21T00-39-33.528.log
-rw------- 1 mongodb root 3280 Oct 21 00:40 mongodb-healthcheck-2024-10-21T00-40-03.522.log
-rw------- 1 mongodb root 3280 Oct 21 00:40 mongodb-healthcheck-2024-10-21T00-40-33.328.log
-rw------- 1 mongodb root 3280 Oct 21 00:41 mongodb-healthcheck-2024-10-21T00-41-03.724.log
-rw------- 1 mongodb root 3280 Oct 21 00:42 mongodb-healthcheck-2024-10-21T00-42-33.519.log
-rw------- 1 mongodb root 3280 Oct 21 00:43 mongodb-healthcheck-2024-10-21T00-43-03.337.log
-rw------- 1 mongodb root 3280 Oct 21 00:43 mongodb-healthcheck-2024-10-21T00-43-33.323.log
-rw------- 1 mongodb root 3280 Oct 21 00:44 mongodb-healthcheck-2024-10-21T00-44-03.235.log
-rw------- 1 mongodb root 3280 Oct 21 00:50 mongodb-healthcheck-2024-10-21T00-50-33.514.log
-rw------- 1 mongodb root 3280 Oct 21 00:51 mongodb-healthcheck-2024-10-21T00-51-03.627.log
-rw------- 1 mongodb root 3280 Oct 21 00:51 mongodb-healthcheck-2024-10-21T00-51-33.525.log
-rw------- 1 mongodb root 3280 Oct 21 00:52 mongodb-healthcheck-2024-10-21T00-52-03.423.log
-rw------- 1 mongodb root 3280 Oct 21 00:53 mongodb-healthcheck-2024-10-21T00-53-33.520.log
-rw------- 1 mongodb root 3280 Oct 21 00:54 mongodb-healthcheck-2024-10-21T00-54-03.419.log
-rw------- 1 mongodb root 3280 Oct 21 00:54 mongodb-healthcheck-2024-10-21T00-54-27.027.log
-rw------- 1 mongodb root 0 Oct 21 00:54 mongodb-healthcheck.log
$ date
Mon Oct 21 01:04:26 UTC 2024
Expected Result:
The log files that created before 1 day should be deleted.
Actual Result:
There are many log files but never deleted.
Additional Information:
N/A