summaryrefslogtreecommitdiff
path: root/src/journal/journald.c
AgeCommit message (Collapse)Author
2014-05-06journald: remove some dead codeLennart Poettering
2014-03-17journald: remove stray reset of error return valueZbigniew Jędrzejewski-Szmek
2013-12-22journal: when we shall go down do so cleanlyLennart Poettering
2013-12-11journald: port to sd-event and enable watchdog supportLennart Poettering
2013-03-23journald: remove unconditional log_*() use in the main loopKay 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-14build-sys: store journald code in a noinst libraryZbigniew 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-16journal: implement time-based rotation/vacuumingLennart 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-13log: introduce a macro to format message idZbigniew 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-28journald: rework auto-rotation logicLennart Poettering
2012-09-28journald: close sd_journal context after flushing to /varLennart Poettering
2012-09-21journald: log how big the journal files may growLennart Poettering
2012-09-19util: define union dirent_storage and make use of it everywhereLennart Poettering
Make sure to allocate enough space for readdir_r(). https://bugzilla.redhat.com/show_bug.cgi?id=858754
2012-09-17journald: log when we fail to forward messages to syslogLennart Poettering
https://bugzilla.redhat.com/show_bug.cgi?id=847207
2012-09-17journald: properly update perms on freshly rotate user journalsLennart Poettering
2012-09-10journald: don't do debug logging by defaultLennart Poettering
2012-09-07journald: make splitting up of journal files per-user configurableLennart Poettering
2012-09-06journald: avoid logging to kmsg in the normal pathsLennart Poettering
2012-08-22journalctl: complain if unprivileged users attempt to access the journal and ↵Lennart Poettering
persistant logging is off
2012-08-22journal: the ratelimiter is part of journaldLennart Poettering
2012-08-22journald: split off native protocol support into its own .c fileLennart Poettering
2012-08-22journald: split console transport stuff into its own fileLennart Poettering
2012-08-22journald: move stream protocol into its own .c fileLennart Poettering
2012-08-22journald: splitt of syslog protocol support into its own fileLennart Poettering
2012-08-22journald: split /dev/kmsg related stuff into its own .c fileLennart Poettering
2012-08-22journald: write tags also to user journal filesLennart Poettering
2012-08-22journald: augment journal entries from the kernel with data from udevLennart Poettering
2012-08-21journal: properly handle EPIPE from /dev/kmsgLennart Poettering
2012-08-21journal: automatically evolve FSS key even when nothing is loggedLennart Poettering
2012-08-20journald: add new Seal= configuration optionLennart Poettering
2012-08-18mmap: resize arrays dynamicallyLennart Poettering
2012-08-16journal: split up journal-file.cLennart Poettering
2012-08-16journal: add superficial structure verifierLennart Poettering
2012-08-16journal: implement generic sharable mmap caching logicLennart 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-13journald: initial version of FSPRG hookupLennart 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-09journald: never read the same kernel msg twice, and generate message when we ↵Lennart Poettering
lose one
2012-08-09journald: properly unescape messages from /dev/kmsgLennart Poettering
2012-08-09journald: also parse kernel key/value fields and store them prefixed with ↵Lennart Poettering
_KERNEL_ as journal fields
2012-08-09journald: basic support for /dev/kmsg parsingLennart Poettering
2012-07-31journald: fixed memory leakArtur Zaprzala
2012-07-26journald: log driver messages at LOG_INFOLennart Poettering
2012-07-26log.h: new log_oom() -> int -ENOMEM, use itShawn 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-25use "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-19journald: upgrade signal reception message to INFOLennart Poettering
2012-07-18journal: remove all of /run/log/journal when serializing, since the machine ↵Lennart Poettering
ID might deviate
2012-07-18journal: don't complain if the syslog forwarder socket doesn't existLennart Poettering
2012-07-18journald: fix another bad memory accessLennart Poettering
If we rotate due to header out of date we need the new journal file object, too.
2012-07-18journald: fix bad memory accessLennart Poettering
After vacuuming we need to retrieve the journal file object again, since it might have changed.
2012-07-17journal: size journal data hash table based on maximum file size metricsLennart 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-17journal: immediately rotate when the journal was previously not closed properlyLennart Poettering
2012-07-17journal: 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.