From 0d3cfbbe3f73b0f64c7ca18ed8c0b3a502e7e75a Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Fri, 12 Aug 2022 10:27:45 -0600 Subject: [PATCH] bittorrent-dht/eve: log as bittorrent_dht --- etc/schema.json | 2 +- src/output-json-alert.c | 2 +- src/output-json-bittorrent-dht.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.47.2