summaryrefslogtreecommitdiff
path: root/src/bin/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/log.c')
-rw-r--r--src/bin/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/log.c b/src/bin/log.c
index 87c1af4..4f0015d 100644
--- a/src/bin/log.c
+++ b/src/bin/log.c
@@ -61,14 +61,14 @@ _log_send(Smman *smman,
61 cJSON_AddStringToObject(json, "@type", "syslog"); 61 cJSON_AddStringToObject(json, "@type", "syslog");
62 62
63 json_tags = cJSON_CreateArray(); 63 json_tags = cJSON_CreateArray();
64 cJSON_AddItemToObject(json, "tags", json_tags); 64 cJSON_AddItemToObject(json, "@tags", json_tags);
65 65
66 EINA_LIST_FOREACH(log->tags, l, tag) 66 EINA_LIST_FOREACH(log->tags, l, tag)
67 { 67 {
68 cJSON_AddItemToArray(json_tags, cJSON_CreateString(tag)); 68 cJSON_AddItemToArray(json_tags, cJSON_CreateString(tag));
69 } 69 }
70 70
71 cJSON_AddItemToObject(json, "fields", cJSON_CreateObject()); 71 cJSON_AddItemToObject(json, "@fields", cJSON_CreateObject());
72 72
73 cJSON_AddStringToObject(json, "@message", log->message); 73 cJSON_AddStringToObject(json, "@message", log->message);
74 cJSON_AddStringToObject(json, "@timestamp", date); 74 cJSON_AddStringToObject(json, "@timestamp", date);