Go to the documentation of this file.
52 NFSState *state = FlowGetAppState(f);
56 return rs_rpc_log_json_response(tx, jb);
64 NFSState *state = FlowGetAppState(f);
68 return rs_nfs_log_json_response(state, tx, jb);
74 static int JsonNFSLogger(
ThreadVars *
tv,
void *thread_data,
75 const Packet *p,
Flow *f,
void *state,
void *tx, uint64_t tx_id)
77 NFSTransaction *nfstx = tx;
80 if (rs_nfs_tx_logging_is_filtered(state, nfstx))
88 jb_open_object(jb,
"rpc");
89 rs_rpc_log_json_response(tx, jb);
92 jb_open_object(jb,
"nfs");
93 rs_nfs_log_json_response(state, tx, jb);
96 MemBufferReset(thread->
buffer);
OutputInitResult OutputJsonLogInitSub(ConfNode *conf, OutputCtx *parent_ctx)
TmEcode JsonLogThreadInit(ThreadVars *t, const void *initdata, void **data)
void OutputJsonBuilderBuffer(ThreadVars *tv, const Packet *p, Flow *f, JsonBuilder *js, OutputJsonThreadCtx *ctx)
bool EveNFSAddMetadata(const Flow *f, uint64_t tx_id, JsonBuilder *jb)
void OutputRegisterTxSubModule(LoggerId id, const char *parent_name, const char *name, const char *conf_name, OutputInitSubFunc InitFunc, AppProto alproto, TxLogger TxLogFunc, ThreadInitFunc ThreadInit, ThreadDeinitFunc ThreadDeinit)
void AppLayerParserRegisterLogger(uint8_t ipproto, AppProto alproto)
JsonBuilder * CreateEveHeader(const Packet *p, enum OutputJsonLogDirection dir, const char *event_type, JsonAddrInfo *addr, OutputJsonCtx *eve_ctx)
Per thread variable structure.
bool EveNFSAddMetadataRPC(const Flow *f, uint64_t tx_id, JsonBuilder *jb)
void * AppLayerParserGetTx(uint8_t ipproto, AppProto alproto, void *alstate, uint64_t tx_id)
TmEcode JsonLogThreadDeinit(ThreadVars *t, void *data)
void JsonNFSLogRegister(void)