summaryrefslogtreecommitdiff
path: root/src/journal
AgeCommit message (Collapse)Author
2012-11-15Isolation of udev code from remaining systemdAnthony G. Basile
This commit is a first attempt to isolate the udev code from the remaining code base. It intentionally does not modify any files but purely delete files which, on a first examination, appear to not be needed. This is a sweeping commit which may easily have missed needed code. Files can be retrieved by doing a checkout from the previous commit: git checkout 2944f347d0 -- <filename>
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-11-12remove duplicate semicolonsThomas Hindoe Paaboel Andersen
2012-11-12enable localization for common *ctl commandsDave Reisner
2012-11-09coredumpctl: add missing -F, --field option to helpDave Reisner
2012-11-09systemd-coredumpctl: add 'gdb' to usage outputDave Reisner
2012-11-02util: add is_locale_utf8()Michal Schmidt
journalctl and vconsole-setup both implement utf8 locale detection. Let's have a common function for it. The next patch will add another use.
2012-10-30coredumpctl: add --field/-F optionZbigniew Jędrzejewski-Szmek
Useful for completion generation.
2012-10-30coredumpctl: add --no-legend optionZbigniew Jędrzejewski-Szmek
Useful for completion generation.
2012-10-30coredumpctl: fix program return codeZbigniew Jędrzejewski-Szmek
2012-10-30coredumpctl: add guard to options tableZbigniew Jędrzejewski-Szmek
It is not nice to segfault on unknown options :(
2012-10-28journal: fix memleak, call set_free before returnMichal Sekletar
2012-10-27coredumpctl: add 'gdb' verb to start gdb right-away on a collected coredumpLennart Poettering
2012-10-26coredumpctl: show timestamps in listLennart Poettering
2012-10-26journal: special case the trivial cache chain cache entryLennart Poettering
2012-10-26coredumpctl: optimize journal entry parsing a bit by enumerating only onceLennart Poettering
2012-10-26coredumpctl: initialize global varsLennart Poettering
2012-10-26journal: provide an API that allows client to figure out whether they need ↵Lennart Poettering
to recheck the journal manually for changes in regular intervals Network file systems generally do not offer inotify() that would work across the network. We hence cannot rely on inotify() exclusiely in those case. Provide an API to determine these cases, and suggest doing manual regular rechecks. Note that this is not complete yet, as we need to rescan journal dirs on network file systems explicitly to find new/removed files
2012-10-26journal: fix parsing of monotonic kernel timestampsLennart Poettering
2012-10-26journal: introduce entry array chain cacheLennart Poettering
When traversing entry array chains for a bisection or for retrieving an item by index we previously always started at the beginning of the chain. Since we tend to look at the same chains repeatedly, let's cache where we have been the last time, and maybe we can skip ahead with this the next time. This turns most bisections and index lookups from O(log(n)*log(n)) into O(log(n)). More importantly however, we seek around on disk much less, which is good to reduce buffer cache and seek times on rotational disks.
2012-10-26test: extend test-send to send some weirder dataLennart Poettering
2012-10-26journal: properly determine cutoff max dateLennart Poettering
2012-10-25journal: properly serialize fields with multiple values into JSONLennart Poettering
This now matches the JSON serialization spec from: http://www.freedesktop.org/wiki/Software/systemd/json
2012-10-24journalctl: remove left-over log messageLennart Poettering
2012-10-22shared: move sparse-endian.h from journalKay Sievers
2012-10-21journal: use le64_t instead of uint64_t where this is appropriateLennart Poettering
2012-10-20journal: link up documentation with the file structure headerLennart Poettering
2012-10-19journal: add tool to extract coredumpsZbigniew Jędrzejewski-Szmek
'systemd-coredumpctl' will list available coredumps: PID UID GID sig exe 32452 500 500 11 /home/zbyszek/systemd/build/journalctl 32666 500 500 11 /usr/lib64/valgrind/memcheck-amd64-linux ... 'systemd-coredumpctl dump PID' will write the coredump to specified file or stdout.
2012-10-19journald.conf: remove MinSize= settingsLennart Poettering
There's no point in making this configurable, so let's drop it in order to simplify configuration a bit.
2012-10-19util: unify line caching and column cachingLennart Poettering
2012-10-19util: unify usage of on_tty() in util.cLennart Poettering
2012-10-18journalctl: unify ellipsation handling between journalctl and systemctlLennart Poettering
2012-10-18journalctl: don't ellipsize unless on a ttyLennart Poettering
2012-10-18journalctl: honour -n if -F is usedLennart Poettering
2012-10-18journal: fix symbol versioning fileLennart Poettering
2012-10-18journal: typo fixLennart Poettering
2012-10-18journal: implement filtering in browse.htmlLennart Poettering
2012-10-18journal: add high-level match option to filter by current boot idLennart Poettering
2012-10-18journal: add ability to list unique fields to gatewaydLennart Poettering
2012-10-18journal: validate field name in sd_journal_query_unique()Lennart Poettering
2012-10-18libsystemd-journal: export sd_journal_restart_uniqueZbigniew Jędrzejewski-Szmek
2012-10-18journal: suggest rotation when fields are not indexedLennart Poettering
2012-10-18journalctl: move access check before the first access to the journal filesLennart Poettering
2012-10-18journalctl: implement quering field values with new -F switchLennart Poettering
Example: journalctl -F _SYSTEMD_UNIT will list all units that ever logged to the journal.
2012-10-18journal: add ability to list values a specified field can take in all ↵Lennart Poettering
entries of the journal The new 'unique' API allows listing all unique field values that a field specified by a field name can take in all entries of the journal. This allows answering queries such as "What units logged to the journal?", "What hosts have logged into the journal?", "Which boot IDs have logged into the journal?". Ultimately this allows implementation of tools similar to lastlog based on journal data. Note that listing these field values will not work for journal files created with older journald, as the field values are not indexed in older files.
2012-10-17journal: fix potential integer overflowLennart Poettering
2012-10-16journalctl: properly track rotated journals in follow modeLennart Poettering
2012-10-16sd-journal: fix bad memory accessLennart Poettering
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-16journal: sort data items of entries by offsetLennart Poettering
This should slightly optimize disk access patterns on rotating disks for simple readers.