Check Alerts index pattern error & Check metaFields setting

76 views
Skip to first unread message

Enekupe Lelevaga

unread,
Jul 7, 2022, 5:06:23 PM7/7/22
to Wazuh mailing list
Hi Team 

Can someone help with this?

image.png

Thanks, regards

Federico Gustavo Galland

unread,
Jul 8, 2022, 1:19:37 PM7/8/22
to Wazuh mailing list
Hi There!

Getting a timeout on the Alerts index pattern could indicate problems within the Wazuh Indexer configuration.

In order to workaround the problem and get to further debug the issue, let's adjust the default timeout to something higher, to try and get the check to go through.

You can find that setting under "Settings" and then "Configuration" from the Wazuh dropdown menu:

image.png

For testing purposes, set it to 80000 and restart the manager.


Let me know if you get to login that way.

Regards,
Federico Galland

Enekupe Lelevaga

unread,
Jul 12, 2022, 5:39:18 PM7/12/22
to Federico Gustavo Galland, Wazuh mailing list
Hi Federico, 

Now I have this issue;

image.png

I checked Kibana status and its running

image.png

But Elasticsearch doesn't due No space left on the device. 

image.png

How can I clear space? 

Thanks regards.

--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/07045ada-8fff-4c66-82e2-1360b80082fbn%40googlegroups.com.

Federico Gustavo Galland

unread,
Jul 13, 2022, 8:06:19 AM7/13/22
to Enekupe Lelevaga, Wazuh mailing list
Hi Enekupe,

You need to check the cause of your disk being full. It could be non-related to elasticsearch.

Run these commands:

df -ha
du -ha -d1 / | sort -h

To try and pin point if any directory is unduly filling disk space up.

Regards,
Fede

--
Wazuh Federico Galland
IT Security Engineer
WazuhThe Open Source Security Platform

Enekupe Lelevaga

unread,
Jul 13, 2022, 9:45:01 PM7/13/22
to Federico Gustavo Galland, Wazuh mailing list
Hi Federico

Screenshot below;

image.png

Federico Gustavo Galland

unread,
Jul 14, 2022, 7:11:26 AM7/14/22
to Enekupe Lelevaga, Wazuh mailing list
Hi Enekupe,

The "df" output is telling you your disk is 100% full. You missed the "/" (forward slash) in the "du" command though, so I cannot know which directory is responsible for the issue.

The proper command is:
du -ha -d1 / | sort -h

While you are at it, you might as well share a copy of your ossec.conf file. Text copies are always preferred to screenshots, though, since they are easier to read/parse/quote/whatnot.

Looking forward to it!

Enekupe Lelevaga

unread,
Jul 14, 2022, 6:16:48 PM7/14/22
to Federico Gustavo Galland, Wazuh mailing list
screenshot attached

image.png

Enekupe Lelevaga

unread,
Jul 14, 2022, 9:25:29 PM7/14/22
to Federico Gustavo Galland, Wazuh mailing list
can I delete some logs to free up spaces?

Federico Gustavo Galland

unread,
Jul 15, 2022, 8:06:36 AM7/15/22
to Enekupe Lelevaga, Wazuh mailing list
Hi Enekupe,

You can, and you can automate the task with a cronjob doing the following:

  • Edit cron job file : crontab -e
  • Add the command : 45 0 * * * find /var/ossec/logs/ -name "*.gz" -type f -mtime +90 -exec rm -f {} \;  It will delete all compressed files under /var/ossec/logs that have not been modified in the last 90 days, every day at 00:45.

We also recommend that you use an index policy for managing older data within the Wazuh indexer:

Regards,
Federico Galland

Enekupe Lelevaga

unread,
Jul 15, 2022, 2:27:16 PM7/15/22
to Federico Gustavo Galland, Wazuh mailing list
I wanted to upgrade it to 4.3 version, but it gives me No space left on Devices, 

Wazuh indexer is not yet installed, can't do much because of this any space error. 

That's why I wanted to delete old logs and try upgrading wazuh server, and install wazuh indexer and dashboard. 

Appreciate your help

Federico Gustavo Galland

unread,
Jul 15, 2022, 2:44:23 PM7/15/22
to Enekupe Lelevaga, Wazuh mailing list
The data I shared earlier applies to Elasticsearch as well.

I recommend you check that out first, before trying to upgrade.

Also, make sure your <logall> and <logall_json> variables are set to "no" within ossec.conf in the manager (remember to restart after any changes to the file), and delete any files within /var/ossec/logs/archives/

Regards,

Reply all
Reply to author
Forward
0 new messages