Actions
Feature #118
closedSupport of PostgreSQL database logging
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
Actions