]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
output/smb: Include common output options
authorJeff Lucovsky <jeff@lucovsky.org>
Mon, 29 Jun 2020 13:50:21 +0000 (09:50 -0400)
committerJeff Lucovsky <jeff@lucovsky.org>
Sun, 5 Jul 2020 15:40:54 +0000 (11:40 -0400)
This commit will cause common metadata values and the community id to be
included in log output when configured.

(cherry picked from commit c590d6f4591fc8127afc3e1468b879b5f4999875)

src/output-json-smb.c

index d5ada56d54ef07eedd53adea3b5ac7e1c3d713f7..7f73c3b62caf83cf2bc3b099a3fd43011fcbd16d 100644 (file)
@@ -78,6 +78,7 @@ static int JsonSMBLogger(ThreadVars *tv, void *thread_data,
     }
     json_object_set_new(js, "smb", smbjs);
 
+    JsonAddCommonOptions(&thread->ctx->cfg, p, f, js);
     MemBufferReset(thread->buffer);
     OutputJSONBuffer(js, thread->ctx->file_ctx, &thread->buffer);