Bug 30461 - logs only kernel messages
Summary: logs only kernel messages
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: rsyslog (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-10 20:40 MSK by ildar
Modified: 2015-04-09 20:22 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ildar 2014-11-10 20:40:41 MSK
конфигурация с systemd:
В логе rsyslog вижу только сообщения ядра. Раньше было всё... Может, требуется донастройка?
Comment 1 Alexey Shabalin 2014-11-10 21:51:07 MSK
А если добавить /etc/systemd/journald.conf
ForwardToSyslog=yes
?

CHANGES WITH 216:
 * journald will no longer forward all local data to another
          running syslog daemon. This change has been made because
          rsyslog (which appears to be the most commonly used syslog
          implementation these days) no longer makes use of this, and
          instead pulls the data out of the journal on its own. Since
          forwarding the messages to a non-existent syslog server is
          more expensive than we assumed we have now turned this
          off. If you run a syslog server that is not a recent rsyslog
          version, you have to turn this option on again
          (ForwardToSyslog= in journald.conf).

PS: можно попробовать не включать ForwardToSyslog=yes, в rsyslog-journal есть спец модуль, который может брать данные напрямую из journal
 o imjournal.so - This is the implementation of the systemd journal input module.
 o omjournal.so - This is the implementation of the systemd journal output module.

PPS: попробуйте использовать systemd-journal-gateway, а именно systemd-journal-remote - очень удобно просматривать/фильтровать логи в web-браузере :)
в смысле отказаться от rsyslog вообще.
Comment 2 ildar 2015-04-09 20:22:37 MSK
(В ответ на комментарий №1)
> в смысле отказаться от rsyslog вообще.

Спасибо, в итоге пришёл именно к этому.
Хотя временами (кажется, на p7 или t7) journalctl показывает не последние события. Тогда помогает `journalctl --file=/var/log/journal/.../system.journal`