EVENTOS WAZUH

70 views
Skip to first unread message

stefanny chavez anto

unread,
Oct 12, 2023, 12:24:26 PM10/12/23
to Wazuh | Mailing List
Good morning, Is there a way to reset the Wazuh server event and/or alert counter from zero?
img.png

Jorge Alberto Marino

unread,
Oct 12, 2023, 12:33:55 PM10/12/23
to Wazuh | Mailing List
Hello,

Do you need to reset the Wazuh server event and/or alert counter to zero for the entire system or only for a specific agent or module?

Thank you.

stefanny chavez anto

unread,
Oct 12, 2023, 1:41:36 PM10/12/23
to Wazuh | Mailing List
Hello, I need to reset the Wazuh server event and/or alert counter to zero for the entire Wazuh system, for a specific agent and module, for example, vulnerability module, audit system, etc. Thank you.

Jorge Alberto Marino

unread,
Oct 12, 2023, 4:57:22 PM10/12/23
to Wazuh | Mailing List
During normal operation, Wazuh have an Index Management Policy that can be configured to achieve this at the same time by keeping data available for different periods of time and under different circumstances.

Another option is to delete specific files. Please check here for detailed information https://groups.google.com/g/wazuh/c/Jo8ldO6Cwo4/m/FVTc5rmTBAAJ

On the other hand, you can delete all the indexes data manually. THIS CAN'T BE REVERTED. WARNING. ONCE DELETED, IT CAN'T BE RECOVERED UNLESS YOU MAKE A BACKUP BEFORE.

This will erase all data and it's not encouraged unless you know what you are doing.

Stop Manager
sudo systemctl stop wazuh-manager

Delete index data
sudo rm -rf /var/ossec/data/*

Start Manager
sudo systemctl start wazuh-manager


Thank you

stefanny chavez anto

unread,
Oct 12, 2023, 6:14:28 PM10/12/23
to Wazuh | Mailing List
The first link didn't work for me: https://groups.google.com/g/wazuh/c/Jo8ldO6Cwo4/m/FVTc5rmTBAAJ It shows me an error: (image attached)
curl -u <username>:<password> https://<indexer IP>:9200/_cat/indices/wazuh-alerts* -k

Captura de pantalla 2023-10-12 171121.png

Jorge Alberto Marino

unread,
Oct 18, 2023, 3:03:00 PM10/18/23
to Wazuh | Mailing List
Hello Stefanny,

I have tested instructions here in my sandbox environment.
It works as expected.
It seems you have a connectivity issue from csirt-ws01 to the indexer's host. Please verify that first.

Thank you.
Reply all
Reply to author
Forward
0 new messages