diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-08-08 21:43:10 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-08 21:43:10 +0300 |
commit | cfe9dc42862f08670657688d2b6cddd6e2492c68 (patch) | |
tree | cb7cecf13534e0ed64758fdacf27814b4a419c54 /collectors/systemd-journal.plugin | |
parent | 56289bdc901c84f62139ec012309cf0ce9a3f9ca (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.c | 2 |
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, |