suricata
output-json-mqtt.c File Reference
#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-unittest.h"
#include "util-buffer.h"
#include "util-debug.h"
#include "util-byte.h"
#include "util-misc.h"
#include "output.h"
#include "output-json.h"
#include "app-layer.h"
#include "app-layer-parser.h"
#include "output-json-mqtt.h"
#include "rust.h"
Include dependency graph for output-json-mqtt.c:

Go to the source code of this file.

Data Structures

struct  LogMQTTFileCtx_
 
struct  LogMQTTLogThread_
 

Macros

#define MQTT_LOG_PASSWORDS   BIT_U32(0)
 
#define MQTT_DEFAULT_FLAGS   (MQTT_LOG_PASSWORDS)
 
#define MQTT_DEFAULT_MAXLOGLEN   1024
 

Typedefs

typedef struct LogMQTTFileCtx_ LogMQTTFileCtx
 
typedef struct LogMQTTLogThread_ LogMQTTLogThread
 

Functions

bool JsonMQTTAddMetadata (void *vtx, JsonBuilder *js)
 
void JsonMQTTLogRegister (void)
 

Detailed Description

Macro Definition Documentation

◆ MQTT_DEFAULT_FLAGS

#define MQTT_DEFAULT_FLAGS   (MQTT_LOG_PASSWORDS)

Definition at line 50 of file output-json-mqtt.c.

◆ MQTT_DEFAULT_MAXLOGLEN

#define MQTT_DEFAULT_MAXLOGLEN   1024

Definition at line 51 of file output-json-mqtt.c.

◆ MQTT_LOG_PASSWORDS

#define MQTT_LOG_PASSWORDS   BIT_U32(0)

Definition at line 49 of file output-json-mqtt.c.

Typedef Documentation

◆ LogMQTTFileCtx

◆ LogMQTTLogThread

Function Documentation

◆ JsonMQTTAddMetadata()

bool JsonMQTTAddMetadata ( void *  vtx,
JsonBuilder *  js 
)

Definition at line 63 of file output-json-mqtt.c.

References MQTT_DEFAULT_FLAGS, and MQTT_DEFAULT_MAXLOGLEN.

◆ JsonMQTTLogRegister()

void JsonMQTTLogRegister ( void  )

Definition at line 193 of file output-json-mqtt.c.

References LOGGER_JSON_TX, and OutputRegisterTxSubModule().

Here is the call graph for this function: