Lines Matching full:journal
56 // Add journal traces to PEL FFDC in createPEL()
137 // Add journal traces to PEL FFDC in createOCCResetPEL()
239 // Create file with the latest journal entries for specified executable
247 "addJournalEntries: Added up to {NUM} journal entries for {APP}", in addJournalEntries()
253 lg2::error("addJournalEntries: Failed to add journal entries for {APP}", in addJournalEntries()
291 // Collect the latest journal entries for a specified executable
294 // Sleep 100ms; otherwise recent journal entries sometimes not available in getJournalEntries()
300 // Open the journal in getJournalEntries()
301 sd_journal* journal; in getJournalEntries() local
302 int rc = sd_journal_open(&journal, SD_JOURNAL_LOCAL_ONLY); in getJournalEntries()
311 // Create object to automatically close journal in getJournalEntries()
312 JournalCloser closer{journal}; in getJournalEntries()
317 rc = sd_journal_add_match(journal, match.c_str(), 0); in getJournalEntries()
330 // Loop through journal entries from newest to oldest in getJournalEntries()
331 SD_JOURNAL_FOREACH_BACKWARDS(journal) in getJournalEntries()
333 // Get relevant journal entry fields in getJournalEntries()
334 timeStamp = getTimeStamp(journal); in getJournalEntries()
335 syslogID = getFieldValue(journal, "SYSLOG_IDENTIFIER"); in getJournalEntries()
336 pid = getFieldValue(journal, "_PID"); in getJournalEntries()
337 message = getFieldValue(journal, "MESSAGE"); in getJournalEntries()
351 // put the journal entries in chronological order in getJournalEntries()
357 std::string FFDC::getTimeStamp(sd_journal* journal) in getTimeStamp() argument
359 // Get realtime (wallclock) timestamp of current journal entry. The in getTimeStamp()
362 int rc = sd_journal_get_realtime_usec(journal, &usec); in getTimeStamp()
386 std::string FFDC::getFieldValue(sd_journal* journal, const std::string& field) in getFieldValue() argument
390 // Get field data from current journal entry in getFieldValue()
393 int rc = sd_journal_get_data(journal, field.c_str(), &data, &length); in getFieldValue()