suricata
output-json-common.c File Reference
#include "suricata-common.h"
#include "output.h"
#include "output-json.h"
#include "util-buffer.h"
Include dependency graph for output-json-common.c:

Go to the source code of this file.

Functions

OutputJsonThreadCtxCreateEveThreadCtx (ThreadVars *t, OutputJsonCtx *ctx)
 
void FreeEveThreadCtx (OutputJsonThreadCtx *ctx)
 
OutputInitResult OutputJsonLogInitSub (ConfNode *conf, OutputCtx *parent_ctx)
 
TmEcode JsonLogThreadInit (ThreadVars *t, const void *initdata, void **data)
 
TmEcode JsonLogThreadDeinit (ThreadVars *t, void *data)
 

Detailed Description

Function Documentation

◆ CreateEveThreadCtx()

◆ FreeEveThreadCtx()

void FreeEveThreadCtx ( OutputJsonThreadCtx ctx)

Definition at line 58 of file output-json-common.c.

References ctx, MemBufferFree(), and SCFree.

Referenced by JsonLogThreadDeinit().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ JsonLogThreadDeinit()

TmEcode JsonLogThreadDeinit ( ThreadVars t,
void *  data 
)

Definition at line 123 of file output-json-common.c.

References FreeEveThreadCtx(), and TM_ECODE_OK.

Here is the call graph for this function:

◆ JsonLogThreadInit()

◆ OutputJsonLogInitSub()

OutputInitResult OutputJsonLogInitSub ( ConfNode conf,
OutputCtx parent_ctx 
)

Definition at line 73 of file output-json-common.c.

References OutputCtx_::data, OutputCtx_::DeInit, SCCalloc, and unlikely.

Referenced by JsonArpLogRegister(), JsonFlowLogRegister(), JsonMetadataLogRegister(), JsonNetFlowLogRegister(), and OutputRegisterLoggers().

Here is the caller graph for this function: