Go to the documentation of this file.
30 #ifndef SURICATA_OUTPUT_EVE_H
31 #define SURICATA_OUTPUT_EVE_H
104 int (*
Init)(
const ConfNode *conf,
const bool threaded,
void **init_data);
145 const char *buffer,
const int buffer_len,
const void *init_data,
void *thread_data);
void(* SCEveUserCallbackFn)(ThreadVars *tv, const Packet *p, Flow *f, JsonBuilder *jb, void *user)
Function type for EVE callbacks.
bool SCEveRegisterCallback(SCEveUserCallbackFn fn, void *user)
Register a callback for adding extra information to EVE logs.
SCEveFileType * SCEveFindFileType(const char *name)
const char * name
The name of the output, used in the configuration.
int(* Write)(const char *buffer, const int buffer_len, const void *init_data, void *thread_data)
Called for each EVE log record.
void(* ThreadDeinit)(const void *init_data, void *thread_data)
Called to deinitialize each thread.
Per thread variable structure.
bool SCRegisterEveFileType(SCEveFileType *)
Register an Eve file type.
void(* Deinit)(void *init_data)
Final call to deinitialize this filetype.
TAILQ_ENTRY(SCEveFileType_) entries
struct SCEveFileType_ SCEveFileType
Structure used to define an EVE output file type plugin.
int(* Init)(const ConfNode *conf, const bool threaded, void **init_data)
Function to initialize this filetype.
int(* ThreadInit)(const void *init_data, const ThreadId thread_id, void **thread_data)
Initialize thread specific data.
void SCEveRunCallbacks(ThreadVars *tv, const Packet *p, Flow *f, JsonBuilder *jb)
Structure used to define an EVE output file type plugin.