suricata
output-json-http.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void JsonHttpLogRegister (void)
 
json_t * JsonHttpAddMetadata (const Flow *f, uint64_t tx_id)
 
void JsonHttpLogJSONBodyPrintable (json_t *js, Flow *f, uint64_t tx_id)
 
void JsonHttpLogJSONBodyBase64 (json_t *js, Flow *f, uint64_t tx_id)
 

Detailed Description

Author
Tom DeCanio td@np.nosp@m.ulse.nosp@m.tech..nosp@m.com

Definition in file output-json-http.h.

Function Documentation

json_t* JsonHttpAddMetadata ( const Flow f,
uint64_t  tx_id 
)

Definition at line 565 of file output-json-http.c.

References ALPROTO_HTTP, AppLayerParserGetTx(), OutputCtx_::data, LogHttpFileCtx_::file_ctx, FlowGetAppState(), LogFileFreeCtx(), SCFree, unlikely, and LogHttpFileCtx_::xff_cfg.

Referenced by AlertJsonHeader(), and JsonBuildFileInfoRecord().

Here is the call graph for this function:

Here is the caller graph for this function:

void JsonHttpLogJSONBodyPrintable ( json_t *  js,
Flow f,
uint64_t  tx_id 
)

Definition at line 440 of file output-json-http.c.

References ALPROTO_HTTP, AppLayerParserGetTx(), Base64Encode(), StreamingBuffer_::buf, FlowGetAppState(), len, HtpTxUserData_::request_body, HtpTxUserData_::response_body, HtpBody_::sb, SC_BASE64_OK, and StreamingBufferGetData().

Referenced by AlertJsonHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

void JsonHttpLogRegister ( void  )

Definition at line 802 of file output-json-http.c.

References ALPROTO_HTTP, LOGGER_JSON_HTTP, OutputRegisterTxModule(), and OutputRegisterTxSubModule().

Referenced by OutputRegisterLoggers().

Here is the call graph for this function:

Here is the caller graph for this function: