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

bool EveSMTPAddMetadata (const Flow *f, uint64_t tx_id, JsonBuilder *js)
 
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

◆ DEFAULT_LOG_FILENAME

#define DEFAULT_LOG_FILENAME   "smtp.json"

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

Function Documentation

◆ EveSMTPAddMetadata()

bool EveSMTPAddMetadata ( const Flow f,
uint64_t  tx_id,
JsonBuilder *  js 
)

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

References ALPROTO_SMTP, AppLayerParserGetTx(), and FlowGetAppState().

Referenced by JsonBuildFileInfoRecord().

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

◆ JsonSmtpLogRegister()

void JsonSmtpLogRegister ( void  )

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

References LOGGER_JSON_SMTP, and OutputRegisterTxModule().

Referenced by OutputRegisterLoggers().

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