suricata
output-json-metadata.c File Reference
#include "suricata-common.h"
#include "debug.h"
#include "detect.h"
#include "flow.h"
#include "conf.h"
#include "threads.h"
#include "tm-threads.h"
#include "threadvars.h"
#include "util-debug.h"
#include "util-misc.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
#include "detect-parse.h"
#include "detect-engine.h"
#include "detect-engine-mpm.h"
#include "detect-reference.h"
#include "app-layer-parser.h"
#include "app-layer-dnp3.h"
#include "app-layer-htp.h"
#include "app-layer-htp-xff.h"
#include "util-classification-config.h"
#include "util-syslog.h"
#include "util-logopenfile.h"
#include "output.h"
#include "output-json.h"
#include "output-json-metadata.h"
#include "util-byte.h"
#include "util-privs.h"
#include "util-print.h"
#include "util-proto-name.h"
#include "util-optimize.h"
#include "util-buffer.h"
#include "util-crypt.h"
Include dependency graph for output-json-metadata.c:

Go to the source code of this file.

Data Structures

struct  MetadataJsonOutputCtx_
 
struct  JsonMetadataLogThread_
 

Macros

#define MODULE_NAME   "JsonMetadataLog"
 
#define JSON_STREAM_BUFFER_SIZE   4096
 
#define DEFAULT_LOG_FILENAME   "metadata.json"
 

Typedefs

typedef struct MetadataJsonOutputCtx_ MetadataJsonOutputCtx
 
typedef struct JsonMetadataLogThread_ JsonMetadataLogThread
 

Functions

void JsonMetadataLogRegister (void)
 

Detailed Description

Author
Victor Julien victo.nosp@m.r@in.nosp@m.linia.nosp@m.c.ne.nosp@m.t

Logs vars in JSON format.

Definition in file output-json-metadata.c.

Macro Definition Documentation

#define DEFAULT_LOG_FILENAME   "metadata.json"

Definition at line 178 of file output-json-metadata.c.

#define JSON_STREAM_BUFFER_SIZE   4096

Definition at line 68 of file output-json-metadata.c.

#define MODULE_NAME   "JsonMetadataLog"

Definition at line 66 of file output-json-metadata.c.

Referenced by JsonMetadataLogRegister().

Typedef Documentation

Function Documentation

void JsonMetadataLogRegister ( void  )

Definition at line 269 of file output-json-metadata.c.

References LOGGER_JSON_METADATA, MODULE_NAME, OutputRegisterPacketModule(), and OutputRegisterPacketSubModule().

Referenced by OutputRegisterLoggers().

Here is the call graph for this function:

Here is the caller graph for this function: