b730895
From d2b5f09e2757f2585eb1003fdf6db43e58013c19 Mon Sep 17 00:00:00 2001
b730895
From: Matej Marusak <mmarusak@redhat.com>
b730895
Date: Tue, 21 Mar 2017 09:04:38 +0100
b730895
Subject: [PATCH] reporter-s-journal: add count to default logs
b730895
b730895
Field count is available only in FULL dump. There are however two good
b730895
reasons why to include this in NONE dump.
b730895
b730895
1. It is quite useful to know if this problem occurred first time or is it
b730895
problem that happens a lot.
b730895
b730895
2. We need it for cockpit integration. If the problem happened more times it
b730895
will have multiple logs. By comparing count in the log and real count, we can
b730895
know, if this is the last log of the problem. (timestamps do not work ideally
b730895
for this, since the time of problem does not equal to the time of the
b730895
log - there is some delay)
b730895
b730895
Signed-off-by: Matej Marusak <mmarusak@redhat.com>
b730895
---
b730895
 src/plugins/reporter-systemd-journal.c | 1 +
b730895
 1 file changed, 1 insertion(+)
b730895
b730895
diff --git a/src/plugins/reporter-systemd-journal.c b/src/plugins/reporter-systemd-journal.c
b730895
index 957002b..d12296e 100644
b730895
--- a/src/plugins/reporter-systemd-journal.c
b730895
+++ b/src/plugins/reporter-systemd-journal.c
b730895
@@ -126,6 +126,7 @@ static const char *const fields_default[] = {
b730895
     DUMPDIR_PATH                ,
b730895
     FILENAME_UUID               ,
b730895
     FILENAME_DUPHASH            ,
b730895
+    FILENAME_COUNT              ,
b730895
     NULL
b730895
 };
b730895
 
b730895
-- 
b730895
2.9.3
b730895