summaryrefslogtreecommitdiffstats
path: root/collectors/systemd-journal.plugin
diff options
context:
space:
mode:
authorCosta Tsaousis <costa@netdata.cloud>2023-08-08 21:43:10 +0300
committerGitHub <noreply@github.com>2023-08-08 21:43:10 +0300
commitcfe9dc42862f08670657688d2b6cddd6e2492c68 (patch)
treecb7cecf13534e0ed64758fdacf27814b4a419c54 /collectors/systemd-journal.plugin
parent56289bdc901c84f62139ec012309cf0ce9a3f9ca (diff)
extend the trimming window to avoid empty points at the end of queries (#15773)
Diffstat (limited to 'collectors/systemd-journal.plugin')
-rw-r--r--collectors/systemd-journal.plugin/systemd-journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/systemd-journal.plugin/systemd-journal.c b/collectors/systemd-journal.plugin/systemd-journal.c
index 73f2ad51d8..08a1891e5a 100644
--- a/collectors/systemd-journal.plugin/systemd-journal.c
+++ b/collectors/systemd-journal.plugin/systemd-journal.c
@@ -323,7 +323,7 @@ static void function_systemd_journal(const char *transaction, char *function, ch
BUFFER *wb = buffer_create(0, NULL);
buffer_flush(wb);
- buffer_json_initialize(wb, "\"", "\"", 0, true, BUFFER_JSON_OPTIONS_NEWLINE_ON_ARRAYS);
+ buffer_json_initialize(wb, "\"", "\"", 0, true, BUFFER_JSON_OPTIONS_NEWLINE_ON_ARRAY_ITEMS);
FACETS *facets = facets_create(50, 0, FACETS_OPTION_ALL_KEYS_FTS,
SYSTEMD_ALWAYS_VISIBLE_KEYS,