suricata
|
#include "suricata-common.h"
#include "detect.h"
#include "pkt-var.h"
#include "conf.h"
#include "suricata.h"
#include "threads.h"
#include "threadvars.h"
#include "tm-threads.h"
#include "tm-threads-common.h"
#include "util-print.h"
#include "util-unittest.h"
#include "util-debug.h"
#include "app-layer-parser.h"
#include "output.h"
#include "app-layer-smtp.h"
#include "app-layer.h"
#include "util-privs.h"
#include "util-buffer.h"
#include "util-byte.h"
#include "util-logopenfile.h"
#include "output-json.h"
#include "output-json-email-common.h"
Go to the source code of this file.
Macros | |
#define | LOG_EMAIL_DEFAULT 0 |
#define | LOG_EMAIL_EXTENDED (1<<0) |
#define | LOG_EMAIL_ARRAY (1<<1) /* require array handling */ |
#define | LOG_EMAIL_COMMA (1<<2) /* require array handling */ |
#define | LOG_EMAIL_BODY_MD5 (1<<3) |
#define | LOG_EMAIL_SUBJECT_MD5 (1<<4) |
Functions | |
TmEcode | EveEmailLogJson (JsonEmailLogThread *aft, JsonBuilder *js, const Packet *p, Flow *f, void *state, void *vtx, uint64_t tx_id) |
bool | EveEmailAddMetadata (const Flow *f, uint64_t tx_id, JsonBuilder *js) |
void | OutputEmailInitConf (ConfNode *conf, OutputJsonEmailCtx *email_ctx) |
Variables | |
struct { | |
const char * config_field | |
const char * email_field | |
uint32_t flags | |
} | email_fields [] |
Implements json common email logging portion of the engine.
Definition in file output-json-email-common.c.
#define LOG_EMAIL_ARRAY (1<<1) /* require array handling */ |
Definition at line 58 of file output-json-email-common.c.
#define LOG_EMAIL_BODY_MD5 (1<<3) |
Definition at line 60 of file output-json-email-common.c.
#define LOG_EMAIL_COMMA (1<<2) /* require array handling */ |
Definition at line 59 of file output-json-email-common.c.
#define LOG_EMAIL_DEFAULT 0 |
Definition at line 56 of file output-json-email-common.c.
#define LOG_EMAIL_EXTENDED (1<<0) |
Definition at line 57 of file output-json-email-common.c.
#define LOG_EMAIL_SUBJECT_MD5 (1<<4) |
Definition at line 61 of file output-json-email-common.c.
bool EveEmailAddMetadata | ( | const Flow * | f, |
uint64_t | tx_id, | ||
JsonBuilder * | js | ||
) |
Definition at line 191 of file output-json-email-common.c.
TmEcode EveEmailLogJson | ( | JsonEmailLogThread * | aft, |
JsonBuilder * | js, | ||
const Packet * | p, | ||
Flow * | f, | ||
void * | state, | ||
void * | vtx, | ||
uint64_t | tx_id | ||
) |
Definition at line 167 of file output-json-email-common.c.
References JsonEmailLogThread_::emaillog_ctx.
void OutputEmailInitConf | ( | ConfNode * | conf, |
OutputJsonEmailCtx * | email_ctx | ||
) |
Definition at line 204 of file output-json-email-common.c.
References config_field, ConfNodeLookupChild(), ConfNodeLookupChildValue(), ConfValIsTrue(), email_field, email_fields, OutputJsonEmailCtx_::fields, OutputJsonEmailCtx_::flags, LOG_EMAIL_BODY_MD5, LOG_EMAIL_EXTENDED, LOG_EMAIL_SUBJECT_MD5, next, SCLogInfo, TAILQ_FOREACH, and ConfNode_::val.
const char* config_field |
Definition at line 63 of file output-json-email-common.c.
Referenced by OutputEmailInitConf().
const char* email_field |
Definition at line 64 of file output-json-email-common.c.
Referenced by OutputEmailInitConf().
struct { ... } email_fields[] |
Referenced by OutputEmailInitConf().
uint32_t flags |
Definition at line 65 of file output-json-email-common.c.