summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9817e72)
raw | patch | inline | side by side (parent: 9817e72)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 17 Mar 2015 17:27:05 +0000 (18:27 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Tue, 17 Mar 2015 17:34:16 +0000 (18:34 +0100) |
Fixes #974
src/log_logstash.c | patch | blob | history |
diff --git a/src/log_logstash.c b/src/log_logstash.c
index 15b3580cd4c5c70de22643319f8e266ca949bcdd..61e7f4848e3a4b6dd24f87cf5ac3fb630416e7fd 100644 (file)
--- a/src/log_logstash.c
+++ b/src/log_logstash.c
unsigned int len;
#endif
- if (yajl_gen_string(g, (u_char *)"@level", strlen("@level")) !=
+ if (yajl_gen_string(g, (u_char *)"level", strlen("level")) !=
yajl_gen_status_ok)
goto err;
if (yajl_gen_map_open(g) != yajl_gen_status_ok)
goto err;
- if (yajl_gen_string(g, (u_char *)"@message", strlen("@message")) !=
+ if (yajl_gen_string(g, (u_char *)"message", strlen("message")) !=
yajl_gen_status_ok)
goto err;
if (yajl_gen_string(g, (u_char *)msg, strlen(msg)) !=
if (yajl_gen_map_open(g) != yajl_gen_status_ok)
goto err;
- if (yajl_gen_string(g, (u_char *)"@message", strlen("@message")) !=
+ if (yajl_gen_string(g, (u_char *)"message", strlen("message")) !=
yajl_gen_status_ok)
goto err;
if (strlen(n->message) > 0) {
goto err;
}
-
- if (yajl_gen_string(g, (u_char *)"@fields", strlen("@fields")) !=
- yajl_gen_status_ok)
- goto err;
- if (yajl_gen_map_open(g) !=
- yajl_gen_status_ok)
- goto err;
-
if (strlen(n->host) > 0) {
if (yajl_gen_string(g, (u_char *)"host", strlen("host")) !=
yajl_gen_status_ok)
goto err;
break;
}
- if (yajl_gen_map_close(g) != yajl_gen_status_ok)
- goto err;
log_logstash_print (g, LOG_INFO, (n->time != 0) ? n->time : cdtime ());
return (0);