Feature #8320
Do not ship rsyslog on Jessie
Start date:
2014-11-27
Due date:
% Done:
100%
Description
We now have the Journal, which is way more powerful => do we need to keep rsyslog?
Dropping it has a few advantages:
- less memory wasted (both for the process and for the data we’re currently storing twice)
- more reliable logs: I’ve just tried to debug
Bug #8710and… realized that the very messages I was looking for were neither in syslog nor in the journal, due to rsyslog dropping stuff whenever it’s arriving too fast…
So, what would be broken if we did drop rsyslog?
tails-restricted-network-detector
basically doestail -f | grep
, with some refinements; usingjournalctl -u NetworkManager.service
would avoid having to look at all log lines; the rest would likely be very similar- the cheapest solution may be to keep rsyslog, but configure it to save to disk only the info needed by
tails-restricted-network-detector
: we still would get a mostly useless daemon running, and journald forwarding all messages to it, but at least it won’t eat precious memory to store too much duplicated info on “disk” - journalctl’s json output, combined with jq, might be useful: then the “parser” only gets the fields it needs, and since all the complexity was removed already, it could even be written in POSIX shell to same some RAM. E.g.
journalctl --unit=NetworkManager.service --output=json-pretty --follow | jq --monochrome-output --unbuffered --raw-output '.MESSAGE'
outputs a stream with only the field we’re interested in.
- the cheapest solution may be to keep rsyslog, but configure it to save to disk only the info needed by
- DONE
tails-debugging-info
greps/var/log/messages
=> would be nicer, and more accurate, usingjournalctl
- DONE
tails-debugging-info
cat’s some log files that are now fed into the Journal => can use journalctl instead
Subtasks
Related issues
Related to Tails - |
Resolved | 2014-10-02 |
History
#1 Updated by intrigeri 2014-11-27 21:55:51
- Description updated
- Status changed from Confirmed to In Progress
- % Done changed from 0 to 10
#2 Updated by intrigeri 2014-11-27 21:56:08
- Subject changed from Consider not shipping rsyslog to Consider not shipping rsyslog on Jessie
#3 Updated by intrigeri 2014-11-27 22:18:12
- Description updated
#4 Updated by intrigeri 2014-11-27 23:12:31
- Description updated
#5 Updated by intrigeri 2014-11-27 23:15:10
- Description updated
#6 Updated by intrigeri 2014-12-18 12:13:05
- related to
Feature #7986: Re-evaluate hardware requirements on Jessie added
#7 Updated by intrigeri 2014-12-18 12:13:29
- Priority changed from Normal to Low
#8 Updated by intrigeri 2015-03-07 18:58:28
- Description updated
#9 Updated by intrigeri 2015-03-07 19:36:38
- Description updated
(Add working example of journalctl|jq
.)
#10 Updated by intrigeri 2015-03-07 21:25:17
- Status changed from In Progress to Resolved
- % Done changed from 10 to 100
Applied in changeset commit:9e2a9c3cce3f4d65c4a9aa7a5231fd145948597d.
#11 Updated by intrigeri 2015-03-07 21:47:01
- Subject changed from Consider not shipping rsyslog on Jessie to Do not ship rsyslog on Jessie
- Type of work changed from Research to Code