LINUX.ORG.RU
ФорумAdmin

journald не ведет лог?

 ,


0

1

centos7

systemctl status systemd-journald.service -l 
● systemd-journald.service - Journal Service
   Loaded: loaded (/usr/lib/systemd/system/systemd-journald.service; static; vendor preset: disabled)
   Active: active (running) since Вс 2016-06-26 16:29:52 MSK; 2min 24s ago
     Docs: man:systemd-journald.service(8)
           man:journald.conf(5)
 Main PID: 5935 (systemd-journal)
   Status: "Processing requests..."
   CGroup: /system.slice/systemd-journald.service
           └─5935 /usr/lib/systemd/systemd-journald

июн 26 16:29:52 server1 systemd-journal[5935]: Permanent journal is using 984.0M (max allowed 4.0G, trying to leave 4.0G free of 45.0G available → current limit 4.0G).
июн 26 16:29:52 server1 systemd-journal[5935]: Journal started
июн 13 00:01:41 server1 systemd-journal[502]: Permanent journal is using 4.0G (max allowed 4.0G, trying to leave 4.0G free of 21.6G available → current limit 4.0G).
июн 13 00:02:27 server1 systemd-journal[502]: Journal started
июн 13 00:02:44 server1 systemd[1]: systemd-journald.service watchdog timeout (limit 1min)!
июн 14 11:27:50 server1 systemd-journal[10756]: Permanent journal is using 3.9G (max allowed 4.0G, trying to leave 4.0G free of 40.3G available → current limit 4.0G).
июн 14 11:30:36 server1 systemd-journal[10875]: Permanent journal is using 3.9G (max allowed 4.0G, trying to leave 4.0G free of 40.2G available → current limit 4.0G).
июн 14 11:32:26 server1 systemd-journal[10909]: Permanent journal is using 3.9G (max allowed 4.0G, trying to leave 4.0G free of 40.2G available → current limit 4.0G).
июн 14 11:34:55 server1 systemd-journal[10935]: Permanent journal is using 3.9G (max allowed 4.0G, trying to leave 4.0G free of 40.2G available → current limit 4.0G).
июн 14 11:43:52 server1 systemd-journal[10964]: Permanent journal is using 3.9G (max allowed 4.0G, trying to leave 4.0G free of 40.1G available → current limit 4.0G).
июн 14 11:44:45 server1 systemd-journal[10964]: Journal started
июн 14 11:44:46 server1 systemd[1]: systemd-journald.service watchdog timeout (limit 1min)!
июн 14 11:44:46 server1 systemd-journal[10964]: Journal stopped
июн 14 11:45:17 server1 systemd-journal[11300]: Permanent journal is using 3.9G (max allowed 4.0G, trying to leave 4.0G free of 42.7G available → current limit 4.0G).
июн 14 11:45:17 server1 systemd-journal[11300]: Journal started
июн 14 11:45:19 server1 systemd-journal[11300]: Journal stopped

Было переполнение Permanent journal is using 3.9G. Сделал

journalctl --vacuum-time=50d
и restart journald

Делаю

echo test | logger
и
 journalctl -e 

Показывает старые данные

...
июн 14 11:27:50 server1 systemd-journal[10756]: Permanent journal is using 3.9G (max allowed 4.0G, trying to leave 4.0G free of 40.3G available → current limit 4.0G).
июн 14 11:30:36 server1 systemd-journal[10875]: Permanent journal is using 3.9G (max allowed 4.0G, trying to leave 4.0G free of 40.2G available → current limit 4.0G).
июн 14 11:32:26 server1 systemd-journal[10909]: Permanent journal is using 3.9G (max allowed 4.0G, trying to leave 4.0G free of 40.2G available → current limit 4.0G).
июн 14 11:34:55 server1 systemd-journal[10935]: Permanent journal is using 3.9G (max allowed 4.0G, trying to leave 4.0G free of 40.2G available → current limit 4.0G).
Где я туплю?

vacuum работает только на архивных (ротированных) файлах. В зависимости от твоих настроек эффекта может не быть вовсе.

anonymous
()
Ответ на: комментарий от anonymous

systemctl status systemd-journald.service -l показыват

...
июн 26 16:29:52 server1 systemd-journal[5935]: Permanent journal is using 984.0M (max allowed 4.0G, trying to leave 4.0G free of 45.0G available → current limit 4.0G).
июн 26 16:29:52 server1 systemd-journal[5935]: Journal started
...
macumazan ★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.