Как получить текущую рабочую конфигурацию systemd-journald?

Información general

A menos que en ambos extremos haya HDMI versión 2.0, tendría que usar DisplayPort.

Específicamente a su caso

Su monitor tiene una versión HDMI 1.4, que tiene limitaciones, es posible que desee ver la especificación en Wikipedia . Tendrás que usar DisplayPort.

5
11.07.2019, 16:42
2 ответа

Чтобы пройти половину пути, бегите

journalctl -u systemd-journald -o json-pretty

json -красивое средство форматирования вывода покажет все поля, связанные с сообщением журнала. Существуют поля MAX _USE _PRETTY и MAX _USE, которые представляют SystemMaxUse. Вы также можете исправить сервер _пространство _использование _сообщение .

3
26.05.2020, 06:44

Надеюсь, я правильно понял ваш вопрос, это то, что я нашел на справочных страницах для конфигурации journald:man journald.conf

CONFIGURATION DIRECTORIES AND PRECEDENCE
   The default configuration is defined during compilation, so a configuration file is only needed when
   it is necessary to deviate from those defaults. By default, the configuration file in /etc/systemd/
   contains commented out entries showing the defaults as a guide to the administrator. This file can
   be edited to create local overrides.

Это будет означать, что у вас уже есть все значения по умолчанию в упомянутом файле конфигурации. Однако некоторые параметры, особенно те, которые вы ищете для максимального размера, не заполнены.

Существует разница между «постоянным» и «автоматическим/временным» режимом хранения.

вот что я нашел ниже:

       SystemMaxUse=, SystemKeepFree=, SystemMaxFileSize=, SystemMaxFiles=, RuntimeMaxUse=,
   RuntimeKeepFree=, RuntimeMaxFileSize=, RuntimeMaxFiles=
       Enforce size limits on the journal files stored. The options prefixed with "System" apply to the
       journal files when stored on a persistent file system, more specifically /var/log/journal. The
       options prefixed with "Runtime" apply to the journal files when stored on a volatile in-memory
       file system, more specifically /run/log/journal. The former is used only when /var is mounted,
       writable, and the directory /var/log/journal exists. Otherwise, only the latter applies. Note
       that this means that during early boot and if the administrator disabled persistent logging,
       only the latter options apply, while the former apply if persistent logging is enabled and the
       system is fully booted up.

и затем:

           The first pair defaults to 10% and the second to 15% of the size of the respective file system,
       but each value is capped to 4G. If the file system is nearly full and either SystemKeepFree= or
       RuntimeKeepFree= are violated when systemd-journald is started, the limit will be raised to the
       percentage that is actually free.

На справочной странице -для journald.conf рассказывается об этих настройках, так что я думаю, что было бы лучше и лучше от -до -даты для версии, которую вы запускаете, если вы проверите справочную страницу, которая на самом деле на вашей собственной системе.

Что касается ротации журналов, я полагаю, вы спрашиваете о журналах журналов, а не о сервисе logrotate -?Первый также находится на справочных страницах -и называется «пылесосом», а второй представляет собой другую услугу.

Systemd предлагает возможность заменить старую логротацию через задания cron сервисами «таймер», чтобы сделать то же самое. Таймеры можно найти следующим образом :sudo systemctl list-timers --all --no-pager, а таймеры можно включить с помощью обычных команд «sytemctl enable» и т. д.

2
14.10.2020, 08:29

Теги

Похожие вопросы