typedef struct OutputSshCtx_ {
LogFileCtx *file_ctx;
uint32_t flags; /** Store mode */
+ bool include_metadata;
} OutputSshCtx;
if (unlikely(js == NULL))
return 0;
+ if (ssh_ctx->include_metadata) {
+ JsonAddMetadata(p, f, js);
+ }
+
json_t *tjs = json_object();
if (tjs == NULL) {
free(js);
}
ssh_ctx->file_ctx = ojc->file_ctx;
+ ssh_ctx->include_metadata = ojc->include_metadata;
output_ctx->data = ssh_ctx;
output_ctx->DeInit = OutputSshLogDeinitSub;