suricata
output-json-mqtt.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-unittest.h"
#include "util-buffer.h"
#include "util-debug.h"
#include "util-byte.h"
#include "output.h"
#include "output-json.h"
#include "app-layer.h"
#include "app-layer-parser.h"
#include "app-layer-mqtt.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_DEFAULTS   (MQTT_LOG_PASSWORDS)
 

Typedefs

typedef struct LogMQTTFileCtx_ LogMQTTFileCtx
 
typedef struct LogMQTTLogThread_ LogMQTTLogThread
 

Functions

bool JsonMQTTAddMetadata (const Flow *f, uint64_t tx_id, JsonBuilder *js)
 
void JsonMQTTLogRegister (void)
 

Detailed Description

Macro Definition Documentation

◆ MQTT_DEFAULTS

#define MQTT_DEFAULTS   (MQTT_LOG_PASSWORDS)

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

◆ MQTT_LOG_PASSWORDS

#define MQTT_LOG_PASSWORDS   BIT_U32(0)

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

Typedef Documentation

◆ LogMQTTFileCtx

◆ LogMQTTLogThread

Function Documentation

◆ JsonMQTTAddMetadata()

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

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

References ALPROTO_MQTT, AppLayerParserGetTx(), FlowGetAppState(), MQTT_DEFAULTS, and Flow_::proto.

Here is the call graph for this function:

◆ JsonMQTTLogRegister()

void JsonMQTTLogRegister ( void  )

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

References LOGGER_JSON_MQTT, and OutputRegisterTxSubModule().

Referenced by OutputRegisterLoggers().

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