suricata
output-json-smtp.c File Reference
#include "suricata-common.h"
#include "debug.h"
#include "detect.h"
#include "pkt-var.h"
#include "conf.h"
#include "threads.h"
#include "threadvars.h"
#include "tm-threads.h"
#include "util-print.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "output.h"
#include "app-layer-smtp.h"
#include "app-layer.h"
#include "app-layer-parser.h"
#include "util-privs.h"
#include "util-buffer.h"
#include "util-proto-name.h"
#include "util-logopenfile.h"
#include "util-time.h"
#include "output-json.h"
#include "output-json-smtp.h"
#include "output-json-email-common.h"
Include dependency graph for output-json-smtp.c:

Go to the source code of this file.

Macros

#define DEFAULT_LOG_FILENAME   "smtp.json"
 

Functions

json_t * JsonSMTPAddMetadata (const Flow *f, uint64_t tx_id)
 
void JsonSmtpLogRegister (void)
 

Detailed Description

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

Implements SMTP JSON logging portion of the engine.

Definition in file output-json-smtp.c.

Macro Definition Documentation

#define DEFAULT_LOG_FILENAME   "smtp.json"

Definition at line 152 of file output-json-smtp.c.

Function Documentation

json_t* JsonSMTPAddMetadata ( const Flow f,
uint64_t  tx_id 
)

Definition at line 118 of file output-json-smtp.c.

References ALPROTO_SMTP, AppLayerParserGetTx(), OutputCtx_::data, OutputJsonEmailCtx_::file_ctx, FlowGetAppState(), LogFileFreeCtx(), SCFree, and SCLogDebug.

Referenced by AlertJsonHeader(), and JsonBuildFileInfoRecord().

Here is the call graph for this function:

Here is the caller graph for this function:

void JsonSmtpLogRegister ( void  )

Definition at line 266 of file output-json-smtp.c.

References ALPROTO_SMTP, LOGGER_JSON_SMTP, OutputRegisterTxModule(), and OutputRegisterTxSubModule().

Referenced by OutputRegisterLoggers().

Here is the call graph for this function:

Here is the caller graph for this function: