Я хотел бы знать, как поворачивается файл журнала сообщений / var / log / messages
.
Я проверил в файле /etc/logrotate.conf
и в каталоге /etc/logrotate.d/
, но ничего, что могло бы объяснить поворот.
Например: Это небольшая часть файла сообщений:
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-1:tcp]-1> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-1:tcp]-1> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-1:tcp]-1> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-1:tcp]-1> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-2:tcp]-2> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-2:tcp]-2> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-2:tcp]-2> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-2:tcp]-2> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-2:tcp]-2> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-2:tcp]-2> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-2:tcp]-2> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-2:tcp]-2> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added datanode[tcp-2:tcp]-2> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added JobHistoryServer[tcp-0:tcp]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added JobHistoryServer[tcp-1:tcp]-1> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added JobHistoryServer[http-2:http]-2> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added journalnode[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added journalnode[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added journalnode[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added journalnode[tcp-1:tcp]-1> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added journalnode[tcp-1:tcp]-1> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added journalnode[tcp-1:tcp]-1> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added mesos-slave[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added mesos-slave[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added mesos-slave[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added mesos-slave[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added mesos-slave[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added mesos-slave[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added mesos-slave[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added mesos-slave[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added mesos-slave[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added mesos-slave[http-0:http]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added DFSZKFailoverController[tcp-0:tcp]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added DFSZKFailoverController[tcp-0:tcp]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added NodeManager[tcp-0:tcp]-0> to health table
Oct 23 04:03:29 node2 grootd: DEBUG [groot.core.healthcheck.reactor] - added NodeManager[tcp-0:tcp]-0> to health table
Just type
sudo grep messages /etc/logrotate. d/*
В моей системе это возвращает
/etc/logrotate.d/rsyslog:/var/log/messages