summaryrefslogtreecommitdiff
path: root/src/journal
AgeCommit message (Collapse)Author
2012-07-03journal: default ImportKernel=no until we make use of structured loggingLennart Poettering
2012-07-03journal: move Storage=auto stanza to right fileLennart Poettering
2012-07-03journald: handle /proc/kmsg reads returning 0 more nicelyLennart Poettering
2012-07-03journal: fix iteration through journal if one file is corruptLennart Poettering
2012-07-02journald: add Storage= setting to control where the journal is storedLennart Poettering
2012-07-02journalctl: add new switch -b to show data from current boot onlyLennart Poettering
2012-06-22cryptsetup: allow configuration of LUKS disks via the kernel cmdlineLennart Poettering
This generalizes a bit of the functionality already available in dracut.
2012-06-22man: document all kernel command line options we understandLennart Poettering
2012-06-22journal: fix sd_journal_stream_fd()Lennart Poettering
2012-06-22journal: set the _SYSTEMD_UNIT field for messages from terminated processesEelco Dolstra
As described in https://bugs.freedesktop.org/show_bug.cgi?id=50184 the journal currently doesn't set fields such as _SYSTEMD_UNIT properly for messages coming from processes that have already terminated. This means among other things that "systemctl status" may not show some of the output of services that wrote messages just before they exited. This patch fixes this by having processes that log to the journal write their unit identifier to journald when the connection to /run/systemd/journal/stdout is opened. Journald stores the unit ID and uses it to fill in _SYSTEMD_UNIT when it cannot be obtained normally (i.e. from the cgroup). To prevent impersonating another unit, this information is only used when the caller is root. This doesn't fix the general problem of getting metadata about messages from terminated processes (which requires some kernel support), but it allows "systemctl status" and similar queries to do the Right Thing for units that log via stdout/stderr.
2012-06-17journal: fix monotonic seekingLennart Poettering
2012-06-17journal: rotate on SIGUSR2Lennart Poettering
2012-06-17journal: fix SD_JOURNAL_SYSTEM_ONLY flagLennart Poettering
2012-06-17journal: expose and make use of cutoff times of journalLennart Poettering
This helps explaining when the log output of "systemctl status" is incomplete because the logs got rotated since the service was started.
2012-06-17journal: correct list link up on hash collisionsLennart Poettering
2012-06-17journal: add basic object definition for signaturesLennart Poettering
2012-06-17journal: replace arena offset by header sizeLennart Poettering
2012-06-12journal-file: fix mmap leakMichal Schmidt
https://bugzilla.redhat.com/show_bug.cgi?id=831132
2012-06-01journal: allow setting of a cutoff log level for disk storage, syslog, kmsg, ↵Lennart Poettering
console forwarding
2012-06-01journal: support changing the console tty to forward toLennart Poettering
2012-05-31mkdir: append _label to all mkdir() calls that explicitly set the selinux ↵Kay Sievers
context
2012-05-31journald: properly handle if we have no PID in a kmsg lineLennart Poettering
2012-05-30journal: don't allow adding invalid matches to the contextLennart Poettering
2012-05-30journalctl: check first if match is a path nameLennart Poettering
2012-05-30journalctl: support /usr/bin/nginx, etcShawn Landden
2012-05-30journalctl: for now complain if more than one match is provided since this ↵Lennart Poettering
is still broken
2012-05-30build-sys: fix built with --disable-logindLennart Poettering
2012-05-30journald: ignore messages read from /proc/kmsg that we generated via /dev/kmsgLennart Poettering
Avoid a busy loop.
2012-05-27journald: refer to the correct man pageMatthias Clasen
Fix the reference to the journald.conf man page in the config file of the same name.
2012-05-24build-sys: prepare release 183Lennart Poettering
2012-05-23journal: don't complain if SELinux userspace is available but the kernel ↵Lennart Poettering
lacks it
2012-05-22log: make sure generators never log into the journal to avoid activation ↵Lennart Poettering
deadlocks This makes all generators log to kmsg by default.
2012-05-22journal: log journal internal messages to kmsgLennart Poettering
2012-05-22journal: crash when filesystem is low on spaceSjoerd Simons
When space is getting too low on a file system rotating the journal file will fail after the rotation, as opening the new logfile will fail. Recognize this when logging the error and don't try to dereference a NULL JournalFile pointer.
2012-05-22Fixed handling of posix_fallocate() returned valueGuillermo Vidal
According to the man pages of posix_fallocate, it returns zero on success or an error number on failure; however, errno is not set on failure. If the kernel or a library other than glibc does not support the function for example, EOPNOTSUPP will be returned and the error will not be handled properly with original code.
2012-05-21journald: one more SYSLOG_IDENTIFIER length fixMichal Schmidt
2012-05-21journald: fix length of "SYSLOG_IDENTIFIER="Michal Schmidt
Fixes weird messages like: May 20 22:23:30 jik2 TIFIER=systemd-logind[795]: New session 46 of user gdm. https://bugzilla.redhat.com/show_bug.cgi?id=823498
2012-05-21journalctl: fix built-in usage outputDaniel Mack
This brings journalctl's built-in usage output in sync with the man page. There are no commands to pass, and the help screen should not confuse users.
2012-05-08util: split-out path-util.[ch]Kay Sievers
2012-04-13nspawn: fake /dev/kmsg and /proc/kmsg as fifoLennart Poettering
2012-04-13fix a couple of things found with the llvm static analyzerLennart Poettering
2012-04-12journal: fix missing variable initializationLennart Poettering
2012-04-12journald: add missing flag to open()Lennart Poettering
2012-04-12relicense to LGPLv2.1 (with exceptions)Lennart Poettering
We finally got the OK from all contributors with non-trivial commits to relicense systemd from GPL2+ to LGPL2.1+. Some udev bits continue to be GPL2+ for now, but we are looking into relicensing them too, to allow free copy/paste of all code within systemd. The bits that used to be MIT continue to be MIT. The big benefit of the relicensing is that closed source code may now link against libsystemd-login.so and friends.
2012-04-11put acl.la in 'if HAVE_ACL' and rename acl.[ch] to acl-util.[ch]Kay Sievers
2012-04-10rename basic.la to shared.la and put selinux deps in shared-selinx.laKay Sievers
Only 34 of 74 tools need libselinux linked, and libselinux is a pain with its unconditional library constructor.
2012-04-10util: move ACL code into internal libraryKay Sievers
2012-04-10util: move all to shared/ and split external dependencies in separate ↵Kay Sievers
internal libraries Before: $ ldd /lib/systemd/systemd-timestamp linux-vdso.so.1 => (0x00007fffb05ff000) libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f90aac57000) libcap.so.2 => /lib64/libcap.so.2 (0x00007f90aaa53000) librt.so.1 => /lib64/librt.so.1 (0x00007f90aa84a000) libc.so.6 => /lib64/libc.so.6 (0x00007f90aa494000) /lib64/ld-linux-x86-64.so.2 (0x00007f90aae90000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f90aa290000) libattr.so.1 => /lib64/libattr.so.1 (0x00007f90aa08a000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f90a9e6e000) After: $ ldd systemd-timestamp linux-vdso.so.1 => (0x00007fff3cbff000) libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f5eaa1c3000) librt.so.1 => /lib64/librt.so.1 (0x00007f5ea9fbb000) libc.so.6 => /lib64/libc.so.6 (0x00007f5ea9c04000) /lib64/ld-linux-x86-64.so.2 (0x00007f5eaa3fc000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f5ea9a00000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f5ea97e4000)
2012-04-03logind: log with AUTH facilityLennart Poettering
2012-04-02journal: implicitly add code location to all messages logged with the native ↵Lennart Poettering
interface This logic can be turned off by defining SD_JOURNAL_SUPPRESS_LOCATION before including sd-journal.h. This also saves/restores errno in all logging functions, in order to be useful as logging calls without side-effects. This also adds a couple of __unlikely__ around the early checks in the logging calls, in order to minimize the runtime impact.