From: Jason Ish Date: Fri, 12 Aug 2022 16:27:45 +0000 (-0600) Subject: bittorrent-dht/eve: log as bittorrent_dht X-Git-Tag: suricata-7.0.0-rc1~437 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d3cfbbe3f73b0f64c7ca18ed8c0b3a502e7e75a;p=thirdparty%2Fsuricata.git bittorrent-dht/eve: log as bittorrent_dht --- diff --git a/etc/schema.json b/etc/schema.json index 1c03b7131c..e4b097bd77 100644 --- a/etc/schema.json +++ b/etc/schema.json @@ -303,7 +303,7 @@ }, "additionalProperties": false }, - "bittorrent-dht": { + "bittorrent_dht": { "type": "object", "optional": true, "properties": { diff --git a/src/output-json-alert.c b/src/output-json-alert.c index 5b72dfba3c..bedf12e13a 100644 --- a/src/output-json-alert.c +++ b/src/output-json-alert.c @@ -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 { diff --git a/src/output-json-bittorrent-dht.c b/src/output-json-bittorrent-dht.c index 64d7ff8804..08b7dc4d72 100644 --- a/src/output-json-bittorrent-dht.c +++ b/src/output-json-bittorrent-dht.c @@ -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; }