]> git.ipfire.org Git - thirdparty/suricata.git/commit
pgsql/logger: open json object from logger function
authorJuliana Fajardini <jufajardini@oisf.net>
Thu, 25 Apr 2024 01:13:35 +0000 (22:13 -0300)
committerVictor Julien <victor@inliniac.net>
Mon, 2 Sep 2024 14:39:28 +0000 (16:39 +0200)
commitf5cc23464bb67b7deb09ebe8d27829851e17bb6b
tree00d881951444a4fab456a743c57e890b26c0f69d
parent32c8a7614d732ab7c9d33ef716d2e42624d202a0
pgsql/logger: open json object from logger function

Before, the JsonBuilder object for the pgsql event was being created
from the C-side function that actually called the Rust logger.

This resulted that if another module - such as the Json Alert called the
PGSQL logger, we wouldn't have the `pgsql` key present in the log output
- only its inner fields.

Bug #6983

(cherry picked from commit 69e26de197c48e7f3e351229ee34b96388673b72)
rust/src/pgsql/logger.rs
src/output-json-pgsql.c