suricata
output-json-pgsql.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 "output.h"
#include "output-json.h"
#include "app-layer.h"
#include "app-layer-parser.h"
#include "output-json-pgsql.h"
#include "rust.h"
Include dependency graph for output-json-pgsql.c:

Go to the source code of this file.

Data Structures

struct  OutputPgsqlCtx_
 
struct  LogPgsqlLogThread_
 

Macros

#define PGSQL_LOG_PASSWORDS   BIT_U32(0)
 
#define PGSQL_DEFAULTS   (PGSQL_LOG_PASSWORDS)
 

Typedefs

typedef struct OutputPgsqlCtx_ OutputPgsqlCtx
 
typedef struct LogPgsqlLogThread_ LogPgsqlLogThread
 

Functions

bool JsonPgsqlAddMetadata (void *vtx, JsonBuilder *jb)
 
void JsonPgsqlLogRegister (void)
 

Detailed Description

Author
Juliana Fajardini jufaj.nosp@m.ardi.nosp@m.ni@oi.nosp@m.sf.n.nosp@m.et

Implement JSON/eve logging for app-layer Pgsql.

Definition in file output-json-pgsql.c.

Macro Definition Documentation

◆ PGSQL_DEFAULTS

#define PGSQL_DEFAULTS   (PGSQL_LOG_PASSWORDS)

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

◆ PGSQL_LOG_PASSWORDS

#define PGSQL_LOG_PASSWORDS   BIT_U32(0)

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

Typedef Documentation

◆ LogPgsqlLogThread

◆ OutputPgsqlCtx

Function Documentation

◆ JsonPgsqlAddMetadata()

bool JsonPgsqlAddMetadata ( void *  vtx,
JsonBuilder *  jb 
)

Definition at line 62 of file output-json-pgsql.c.

References PGSQL_DEFAULTS.

◆ JsonPgsqlLogRegister()

void JsonPgsqlLogRegister ( void  )

Definition at line 184 of file output-json-pgsql.c.

References ConfGetNode(), LOGGER_JSON_TX, OutputRegisterTxSubModule(), and SCLogDebug.

Here is the call graph for this function: