projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0869a8
)
Only declare rsyslog keys if yajl2 present
author
Andrew Bays
<abays@redhat.com>
Tue, 27 Feb 2018 18:18:05 +0000
(13:18 -0500)
committer
Andrew Bays
<abays@redhat.com>
Tue, 27 Feb 2018 18:18:05 +0000
(13:18 -0500)
src/sysevent.c
patch
|
blob
|
history
diff --git
a/src/sysevent.c
b/src/sysevent.c
index
94e99e9
..
6ef79f9
100644
(file)
--- a/
src/sysevent.c
+++ b/
src/sysevent.c
@@
-119,10
+119,12
@@
static int buffer_length = 10;
static int monitor_all_messages = 1;
+#if HAVE_YAJL_V2
static const char *rsyslog_keys[3] = {"@timestamp", "@source_host", "@message"};
static const char *rsyslog_field_keys[5] = {
"facility", "severity", "severity-num", "program", "processid"};
-
+#endif
+
/*
* Private functions
*/