As previously mentioned, the database output can be enabled when compiling Wazuh with the database type to use. On the sources installation guide, users must pre-compile the source code before running the install.sh script.
Execute the following command before step 3 from the installation guide:
# cd wazuh-*/src # make deps && make TARGET=server DATABASE=<mysql/pgsql>
<localfile> <log_format>postgresql_log</log_format> <location>/var/logs/postgresql/postgresql.log</location> </localfile>
--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh mailing list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/_k1lXn7fW8Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/1812ec27-3680-41b4-a069-c3dd00005182n%40googlegroups.com.
# cd wazuh-*
# make -C src clean# make -C src clean-deps# cd wazuh-*/src
# make deps && make TARGET=server DATABASE=pgsql
# ./install.sh
1- What kind of installation do you want (manager, agent, local, hybrid or help)? manager
# systemctl restart wazuh-manager# service wazuh-manager restart# sudo -u postgres createuser -P PostgreSQLadmin # sudo -u postgres createdb -O PostgreSQLadmin Alerts_DB # psql -U PostgreSQLadmin -d Alerts_DB -f src/os_dbd/postgresql.schema
<database_output> <hostname>192.168.1.122</hostname> <username>PostgreSQLadmin</username> <password>secret1234</password> <database>Alerts_DB</database> <type>postgresql</type> </database_output>
# systemctl restart wazuh-manager# service wazuh-manager restartTo view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/0a15061a-7512-461d-8d77-b62fdcfa137bn%40googlegroups.com.
<localfile> <log_format>postgresql_log</log_format> <location>/var/logs/postgresql/postgresql.log</location> </localfile>
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/9bff5f59-339b-427a-aa27-1ba75de3b1afn%40googlegroups.com.
<localfile> <log_format>postgresql_log</log_format> <location>/var/logs/postgresql/postgresql-*-main.log</location> </localfile>
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/ee367bbd-9990-44f8-a39a-60a286505fb3n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/f8ba78e0-4dde-4472-8475-2176b11d3af2n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/1594eb3d-82e8-47ce-a8c4-593b7747c117n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/1fbe4f81-0778-4b84-9d42-f722ee881a44n%40googlegroups.com.