]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
bittorrent-dht/eve: log as bittorrent_dht
authorJason Ish <jason.ish@oisf.net>
Fri, 12 Aug 2022 16:27:45 +0000 (10:27 -0600)
committerVictor Julien <vjulien@oisf.net>
Fri, 28 Oct 2022 09:48:13 +0000 (11:48 +0200)
etc/schema.json
src/output-json-alert.c
src/output-json-bittorrent-dht.c

index 1c03b7131cabc85e16b79c79fc840065235e5cd2..e4b097bd77e2bf4ea4ee67de05d09e9fb19bc880 100644 (file)
             },
             "additionalProperties": false
         },
-        "bittorrent-dht": {
+        "bittorrent_dht": {
             "type": "object",
             "optional": true,
             "properties": {
index 5b72dfba3c61a0342ec14b73aedb555ade5d2677..bedf12e13a2927109643db8a66289b791e33f4f1 100644 (file)
@@ -283,7 +283,7 @@ static void AlertJsonBitTorrentDHT(const Flow *f, const uint64_t tx_id, JsonBuil
         if (tx != NULL) {
             JsonBuilderMark mark = { 0, 0, 0 };
             jb_get_mark(js, &mark);
-            jb_open_object(js, "bittorrent-dht");
+            jb_open_object(js, "bittorrent_dht");
             if (rs_bittorrent_dht_logger_log(tx, js)) {
                 jb_close(js);
             } else {
index 64d7ff8804ef709e2a8ea54f469bd1302ca42a29..08b7dc4d722c94dea429967f5e7c39704288f205 100644 (file)
@@ -60,12 +60,12 @@ static int JsonBitTorrentDHTLogger(ThreadVars *tv, void *thread_data, const Pack
     LogBitTorrentDHTLogThread *thread = thread_data;
 
     JsonBuilder *js = CreateEveHeader(
-            p, LOG_DIR_PACKET, "bittorrent-dht", NULL, thread->bittorrent_dht_log_ctx->eve_ctx);
+            p, LOG_DIR_PACKET, "bittorrent_dht", NULL, thread->bittorrent_dht_log_ctx->eve_ctx);
     if (unlikely(js == NULL)) {
         return TM_ECODE_FAILED;
     }
 
-    jb_open_object(js, "bittorrent-dht");
+    jb_open_object(js, "bittorrent_dht");
     if (!rs_bittorrent_dht_logger_log(tx, js)) {
         goto error;
     }