Age | Commit message (Collapse) | Author | |
---|---|---|---|
2013-03-23 | journald: remove unconditional log_*() use in the main loop | Kay Sievers | |
Setting MaxRetentionSec= caused the kernel log to overflow and the journal daemon to enter an endless loop. Logging from the journald main loop gets directed to /dev/kmsg, which wakes up journald again. We skip the import of this message by checking for our own PID, but this still causes the main loop to never go to sleep again because we never stopped logging from there. | |||
2012-11-14 | build-sys: store journald code in a noinst library | Zbigniew Jędrzejewski-Szmek | |
The point is to allow the use of journald functions by other binaries. Before, journald code was split into multiple files (journald-*.[ch]), but all those files all required functions from journald.c. And journald.c has its own main(). Now, it is possible to link against those functions, e.g. from test binaries. This constitutes a fix for https://bugzilla.redhat.com/show_bug.cgi?id=872638. The patch does the following: 1. rename journald.h to journald-server.h and move corresponding code to journald-server.c. 2. add journald-server.c and other journald-*.c parts to libsystemd-journal-internal. 3. remove journald-syslog.c from test_journal_syslog_SOURCES, since it is now contained in libsystemd-journal-internal. There are no code changes, apart from the removal of a few static's, to allow function calls between files. | |||
2012-10-16 | journal: implement time-based rotation/vacuuming | Lennart Poettering | |
This also enables time-based rotation (but not vacuuming) after 1month, so that not more one month of journal is lost at a time per vacuuming. | |||
2012-10-13 | log: introduce a macro to format message id | Zbigniew Jędrzejewski-Szmek | |
The MESSAGE_ID=... stanza will appear in countless number of places. It is just too long to write it out in full each time. Incidentally, this also fixes a typo of MESSSAGE is three places. | |||
2012-09-28 | journald: rework auto-rotation logic | Lennart Poettering | |
2012-09-28 | journald: close sd_journal context after flushing to /var | Lennart Poettering | |
2012-09-21 | journald: log how big the journal files may grow | Lennart Poettering | |
2012-09-19 | util: define union dirent_storage and make use of it everywhere | Lennart Poettering | |
Make sure to allocate enough space for readdir_r(). https://bugzilla.redhat.com/show_bug.cgi?id=858754 | |||
2012-09-17 | journald: log when we fail to forward messages to syslog | Lennart Poettering | |
https://bugzilla.redhat.com/show_bug.cgi?id=847207 | |||
2012-09-17 | journald: properly update perms on freshly rotate user journals | Lennart Poettering | |
2012-09-10 | journald: don't do debug logging by default | Lennart Poettering | |
2012-09-07 | journald: make splitting up of journal files per-user configurable | Lennart Poettering | |
2012-09-06 | journald: avoid logging to kmsg in the normal paths | Lennart Poettering | |
2012-08-22 | journalctl: complain if unprivileged users attempt to access the journal and ↵ | Lennart Poettering | |
persistant logging is off | |||
2012-08-22 | journal: the ratelimiter is part of journald | Lennart Poettering | |
2012-08-22 | journald: split off native protocol support into its own .c file | Lennart Poettering | |
2012-08-22 | journald: split console transport stuff into its own file | Lennart Poettering | |
2012-08-22 | journald: move stream protocol into its own .c file | Lennart Poettering | |
2012-08-22 | journald: splitt of syslog protocol support into its own file | Lennart Poettering | |
2012-08-22 | journald: split /dev/kmsg related stuff into its own .c file | Lennart Poettering | |
2012-08-22 | journald: write tags also to user journal files | Lennart Poettering | |
2012-08-22 | journald: augment journal entries from the kernel with data from udev | Lennart Poettering | |
2012-08-21 | journal: properly handle EPIPE from /dev/kmsg | Lennart Poettering | |
2012-08-21 | journal: automatically evolve FSS key even when nothing is logged | Lennart Poettering | |
2012-08-20 | journald: add new Seal= configuration option | Lennart Poettering | |
2012-08-18 | mmap: resize arrays dynamically | Lennart Poettering | |
2012-08-16 | journal: split up journal-file.c | Lennart Poettering | |
2012-08-16 | journal: add superficial structure verifier | Lennart Poettering | |
2012-08-16 | journal: implement generic sharable mmap caching logic | Lennart Poettering | |
instead of having one simple per-file cache implement an more comprehensive one that works for multiple files and can actually maintain multiple maps per file and per object type. | |||
2012-08-13 | journald: initial version of FSPRG hookup | Lennart Poettering | |
This adds forward-secure authentication of journal files. This patch includes key generation as well as tagging of journal files, Verification of journal files will be added in a later patch. | |||
2012-08-09 | journald: never read the same kernel msg twice, and generate message when we ↵ | Lennart Poettering | |
lose one | |||
2012-08-09 | journald: properly unescape messages from /dev/kmsg | Lennart Poettering | |
2012-08-09 | journald: also parse kernel key/value fields and store them prefixed with ↵ | Lennart Poettering | |
_KERNEL_ as journal fields | |||
2012-08-09 | journald: basic support for /dev/kmsg parsing | Lennart Poettering | |
2012-07-31 | journald: fixed memory leak | Artur Zaprzala | |
2012-07-26 | journald: log driver messages at LOG_INFO | Lennart Poettering | |
2012-07-26 | log.h: new log_oom() -> int -ENOMEM, use it | Shawn Landden | |
also a number of minor fixups and bug fixes: spelling, oom errors that didn't print errors, not properly forwarding error codes, few more consistency issues, et cetera | |||
2012-07-25 | use "Out of memory." consistantly (or with "\n") | Shawn Landden | |
glibc/glib both use "out of memory" consistantly so maybe we should consider that instead of this. Eliminates one string out of a number of binaries. Also fixes extra newline in udev/scsi_id | |||
2012-07-19 | journald: upgrade signal reception message to INFO | Lennart Poettering | |
2012-07-18 | journal: remove all of /run/log/journal when serializing, since the machine ↵ | Lennart Poettering | |
ID might deviate | |||
2012-07-18 | journal: don't complain if the syslog forwarder socket doesn't exist | Lennart Poettering | |
2012-07-18 | journald: fix another bad memory access | Lennart Poettering | |
If we rotate due to header out of date we need the new journal file object, too. | |||
2012-07-18 | journald: fix bad memory access | Lennart Poettering | |
After vacuuming we need to retrieve the journal file object again, since it might have changed. | |||
2012-07-17 | journal: size journal data hash table based on maximum file size metrics | Lennart Poettering | |
The default of 2047 hash table entries turned out to result in way too many collisions for bigger files, hence scale the hash table size by the estimated maximum file size. | |||
2012-07-17 | journal: immediately rotate when the journal was previously not closed properly | Lennart Poettering | |
2012-07-17 | journal: automatically rotate journal files if the data hash table is full > 75% | Lennart Poettering | |
Previously, when the main data hash table grows too full the performance simply started to decrease drastically. Instead, now simply rotate to a new journal file as the hash table gets to full, so that we can start with a new fresh empty hash table. | |||
2012-07-13 | util: rename join() to strjoin() | Lennart Poettering | |
This is to match strappend() and the other string related functions. | |||
2012-07-11 | journal: replace implicit flushing of journal by explicit one | Lennart Poettering | |
The old automatism that the flushing of the journal from /run to /var was triggered by the appearance of /var/log/journal is broken if that directory is mounted from another host and hence always available to be useful as mount point. To avoid probelsm with this, introduce a new unit that is explicitly orderer after all mounte files systems and triggers the flushing. | |||
2012-07-10 | journald: use "persistent", not "permanent" as storage option | Lennart Poettering | |
"permanent" is simply the wrong term and we use "persistant" in most other contexts to correct this. | |||
2012-07-09 | paranoia: refuse rm_rf("/") | Lennart Poettering | |