]> 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)
committerVictor Julien <victor@inliniac.net>
Mon, 29 Jun 2020 18:02:40 +0000 (20:02 +0200)
This commit will cause common metadata values and the community id to be
included in log output when configured.

src/output-json-smb.c

index 89ded457120913229e9a6f4368bcfb8fd9f95f2e..f56cb0244a577b42fab6177fe56b91e37a455dfa 100644 (file)
@@ -75,6 +75,7 @@ static int JsonSMBLogger(ThreadVars *tv, void *thread_data,
     }
     jb_close(jb);
 
+    EveAddCommonOptions(&thread->ctx->cfg, p, f, jb);
     MemBufferReset(thread->buffer);
     OutputJsonBuilderBuffer(jb, thread->ctx->file_ctx, &thread->buffer);