suricata
|
#include "suricata-common.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-htp.h"
#include "app-layer-htp-file.h"
#include "app-layer-htp-xff.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-alert.h"
#include "output-json-http.h"
#include "util-byte.h"
Go to the source code of this file.
Data Structures | |
struct | LogHttpFileCtx_ |
struct | JsonHttpLogThread_ |
Macros | |
#define | MAX_SIZE_HEADER_NAME 256 |
#define | MAX_SIZE_HEADER_VALUE 2048 |
#define | LOG_HTTP_DEFAULT 0 |
#define | LOG_HTTP_EXTENDED 1 |
#define | LOG_HTTP_REQUEST 2 /* request field */ |
#define | LOG_HTTP_ARRAY 4 /* require array handling */ |
#define | LOG_HTTP_REQ_HEADERS 8 |
#define | LOG_HTTP_RES_HEADERS 16 |
Typedefs | |
typedef struct LogHttpFileCtx_ | LogHttpFileCtx |
typedef struct JsonHttpLogThread_ | JsonHttpLogThread |
Functions | |
void | EveHttpLogJSONBodyPrintable (JsonBuilder *js, Flow *f, uint64_t tx_id) |
void | EveHttpLogJSONBodyBase64 (JsonBuilder *js, Flow *f, uint64_t tx_id) |
bool | EveHttpAddMetadata (const Flow *f, uint64_t tx_id, JsonBuilder *js) |
void | JsonHttpLogRegister (void) |
Variables | |
struct { | |
const char * config_field | |
const char * htp_field | |
uint32_t flags | |
} | http_fields [] |
Implements HTTP JSON logging portion of the engine.
Definition in file output-json-http.c.
#define LOG_HTTP_ARRAY 4 /* require array handling */ |
Definition at line 77 of file output-json-http.c.
#define LOG_HTTP_DEFAULT 0 |
Definition at line 74 of file output-json-http.c.
#define LOG_HTTP_EXTENDED 1 |
Definition at line 75 of file output-json-http.c.
#define LOG_HTTP_REQ_HEADERS 8 |
Definition at line 78 of file output-json-http.c.
#define LOG_HTTP_REQUEST 2 /* request field */ |
Definition at line 76 of file output-json-http.c.
#define LOG_HTTP_RES_HEADERS 16 |
Definition at line 79 of file output-json-http.c.
#define MAX_SIZE_HEADER_NAME 256 |
Definition at line 71 of file output-json-http.c.
#define MAX_SIZE_HEADER_VALUE 2048 |
Definition at line 72 of file output-json-http.c.
typedef struct JsonHttpLogThread_ JsonHttpLogThread |
typedef struct LogHttpFileCtx_ LogHttpFileCtx |
enum HttpField |
Definition at line 80 of file output-json-http.c.
bool EveHttpAddMetadata | ( | const Flow * | f, |
uint64_t | tx_id, | ||
JsonBuilder * | js | ||
) |
Definition at line 502 of file output-json-http.c.
void EveHttpLogJSONBodyBase64 | ( | JsonBuilder * | js, |
Flow * | f, | ||
uint64_t | tx_id | ||
) |
Definition at line 425 of file output-json-http.c.
void EveHttpLogJSONBodyPrintable | ( | JsonBuilder * | js, |
Flow * | f, | ||
uint64_t | tx_id | ||
) |
Definition at line 394 of file output-json-http.c.
void JsonHttpLogRegister | ( | void | ) |
Definition at line 651 of file output-json-http.c.
References LOGGER_JSON_TX, and OutputRegisterTxSubModule().
Referenced by OutputRegisterLoggers().
const char* config_field |
Definition at line 138 of file output-json-http.c.
uint32_t flags |
Definition at line 140 of file output-json-http.c.
const char* htp_field |
Definition at line 139 of file output-json-http.c.
struct { ... } http_fields[] |