summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.c
Commit message (Collapse)AuthorAge
* journal: suggest rotation when fields are not indexedLennart Poettering2012-10-18
|
* journal: add ability to list values a specified field can take in all ↵Lennart Poettering2012-10-18
| | | | | | | | | | | | | | | | | 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.
* journal: implement time-based rotation/vacuumingLennart Poettering2012-10-16
| | | | | 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.
* journal: sort data items of entries by offsetLennart Poettering2012-10-16
| | | | | This should slightly optimize disk access patterns on rotating disks for simple readers.
* journal: set seal even for readonly journalfilesMirco Tischler2012-09-24
| | | | | journalctl needs to know wether the file has been sealed to be able to do verification.
* journal: don't allow journal_file_open() to be called with ret being NULLLennart Poettering2012-09-21
|
* man: fix a bunch of typos in docsThomas Hindoe Paaboel Andersen2012-09-13
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=54501
* journal: never assert directly on data read from the journalLennart Poettering2012-09-13
|
* journald: don't reposition window if we don't have toLennart Poettering2012-09-13
|
* journal: don't set seal flag if we don't have gcrypt built-inLennart Poettering2012-09-11
|
* journal: don't try to compress without XZMichael Olbrich2012-09-11
| | | | | | otherwise the header contains the HEADER_INCOMPATIBLE_COMPRESSED flag even though the data is not compressed and reading the journal fails.
* journald: detect invalid header pointers correctlyLennart Poettering2012-09-10
|
* journal: add call to determine current journal file disk usageLennart Poettering2012-09-07
|
* journald: avoid logging to kmsg in the normal pathsLennart Poettering2012-09-06
|
* journal: be more careful when keeping around mmaps we still needLennart Poettering2012-08-21
|
* journal: make libgcrypt dependency optionalLennart Poettering2012-08-20
|
* journal: use a macro to check for file header flagsLennart Poettering2012-08-20
|
* journal: fix tag ordering checkLennart Poettering2012-08-20
|
* mmap: resize arrays dynamicallyLennart Poettering2012-08-18
|
* journal: even more simple static object testsLennart Poettering2012-08-18
|
* journal: fix verification without keyLennart Poettering2012-08-18
|
* journald: add additional simple static tests to verifierLennart Poettering2012-08-18
|
* journal: be fine with opening rotated/corrupted journal filesLennart Poettering2012-08-17
|
* journal: show new header fields in header dumpLennart Poettering2012-08-17
|
* journal: rework terminologyLennart Poettering2012-08-17
| | | | | | | | | | | | | | | | | | | | | | Let's clean up our terminology a bit. New terminology: FSS = Forward Secure Sealing FSPRG = Forward Secure Pseudo-Random Generator FSS is the combination of FSPRG and a HMAC. Sealing = process of adding authentication tags to the journal. Verification = process of checking authentication tags to the journal. Sealing Key = The key used for adding authentication tags to the journal. Verification Key = The key used for checking authentication tags of the journal. Key pair = The pair of Sealing Key and Verification Key Internally, the Sealing Key is the combination of the FSPRG State plus change interval/start time. Internally, the Verification Key is the combination of the FSPRG Seed plus change interval/start time.
* journal: add FSPRG journal authenticationLennart Poettering2012-08-16
|
* journal: parse fsprg seedLennart Poettering2012-08-16
|
* journal: count number of entry arrays in headerLennart Poettering2012-08-16
|
* journal: rename 'mmap' to 'mmap_cache' to appease gccZbigniew Jędrzejewski-Szmek2012-08-16
| | | | warning: declaration of 'mmap' shadows a global declaration [-Wshadow]
* journal: verify hashes only during actual verification, not all the timeLennart Poettering2012-08-16
|
* journal: split up journal-file.cLennart Poettering2012-08-16
|
* journal: add superficial structure verifierLennart Poettering2012-08-16
|
* journal: implement basic journal file verification logicLennart Poettering2012-08-16
|
* journal: implement generic sharable mmap caching logicLennart Poettering2012-08-16
| | | | | | 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.
* journal: include tag object header in hmacLennart Poettering2012-08-13
|
* journal: add all objects we add to HMACLennart Poettering2012-08-13
|
* journald: initial version of FSPRG hookupLennart Poettering2012-08-13
| | | | | | 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.
* fix a couple of issues found with llvm-analyzeLennart Poettering2012-08-08
|
* journal: rotate busy files away when we try to write to themLennart Poettering2012-07-19
|
* journal: when we suggest a rotation, explain whyLennart Poettering2012-07-18
|
* journal: estimate data hash table size a bit larger by defaultLennart Poettering2012-07-18
|
* journal: actually set archived files to archived stateLennart Poettering2012-07-17
|
* journalctl: decode more header files in --headerLennart Poettering2012-07-17
|
* journal: size journal data hash table based on maximum file size metricsLennart Poettering2012-07-17
| | | | | | 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.
* journal: immediately rotate when the journal was previously not closed properlyLennart Poettering2012-07-17
|
* journal: automatically rotate journal files if the data hash table is full > 75%Lennart Poettering2012-07-17
| | | | | | | 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.
* journal: use tail/head timestamps from header for cutoff logicLennart Poettering2012-07-16
| | | | We have them, they are faster to use them, so use them...
* journald: don't enforce monotonicity of realtime clocks when copying entriesLennart Poettering2012-07-16
| | | | | | After all the point of the realtime clock (in contrast to the monotonic clock) is that it does not have to be strictly monotonic, hence don't enforce this when flushing the journal from /run to /var.
* journal: beef up journal matches considerablyLennart Poettering2012-07-13
| | | | | | we now can take multiple matches, and they will apply as AND if they apply to different fields and OR if they apply to the same fields. Also, terms of this kind can be combined with an overreaching OR.
* journal: fix seeking by realtime/seqnumLennart Poettering2012-07-13
|