bittorrent-dht/eve: log as bittorrent_dht

pull/8113/head
Jason Ish 3 years ago committed by Victor Julien
parent 66fc92276a
commit 0d3cfbbe3f

@ -303,7 +303,7 @@
},
"additionalProperties": false
},
"bittorrent-dht": {
"bittorrent_dht": {
"type": "object",
"optional": true,
"properties": {

@ -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 {

@ -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;
}

Loading…
Cancel
Save