Project

General

Profile

Actions

Feature #118

closed

Support of PostgreSQL database logging

Added by Andrew A. Usenok over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Effort:
Difficulty:
Label:

Description

I implemented the ability of logging alerts into PostgreSQL database. If anyone is interesting - a patch is attached.
This had to slightly change the definition of the structure named LogFileCtx. In fact, I turned it into an enumeration that contain the appropriate structures for a variety of contexts for output messages (file, database, syslog, etc.).
To make Suricata works with PostgreSQL, you should:
1. ./configure --enable-pgsql && make
2. edit suricata.yaml, specify the hostname and port of the PostgreSQL server, database name and tables, as well as the user name and password to access the database.
Thereafter, necessary for the work table will be created automatically.
Enjoy!


Files

suricata-pgsql.patch (208 KB) suricata-pgsql.patch Andrew A. Usenok, 03/11/2010 11:32 AM
Actions

Also available in: Atom PDF