| Summary: | logs only kernel messages | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | ildar <ildar> |
| Component: | rsyslog | Assignee: | Alexey Shabalin <shaba> |
| Status: | CLOSED NOTABUG | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P3 | CC: | serjigva, shaba |
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
|
Description
ildar
2014-11-10 20:40:41 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 вообще.
(В ответ на комментарий №1)
> в смысле отказаться от rsyslog вообще.
Спасибо, в итоге пришёл именно к этому.
Хотя временами (кажется, на p7 или t7) journalctl показывает не последние события. Тогда помогает `journalctl --file=/var/log/journal/.../system.journal`
|