Hi there,
Please help as soon as you can, I have no data in my system since a few days now (is working well for months):
Problem might be because of a reboot or because of Indices policies (see under)
My system has 3 servers as follow:
- srv01 - Frontend
- srv03 - Wazuh Manager
- srv05 - Elastic Search Open Distro
I know alerts are sent to manager, I've checked the logs and agents are active.
I started looking on elastic search side and I found the following :
I have unassigned shards
GET _cluster/health?pretty
{
"cluster_name" : "elasticsearch",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"active_primary_shards" : 810,
"active_shards" : 810,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 189,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 81.08108108108108
}
It's probably due to my policies as I took the sample, I have (had - I corrected it in the meantime to 0)
"name": "hot",
"actions": [
{
"replica_count": {
"number_of_replicas": 0
}
}
What I also did wrong : I assigned the alerts policy to another Indices. It probably didn't arrange data but I saw duplicates when I run :
GET _cat/shards?h=index,shard,prirep,state,unassigned .reason,node -s
I get the following (extract) :
security-auditlog-2022.02.07 0 p STARTED
security-auditlog-2022.02.07 0 r UNASSIGNED
security-auditlog-2022.06.17 0 p STARTED
security-auditlog-2022.06.17 0 r UNASSIGNED
security-auditlog-2022.01.10 0 p STARTED
security-auditlog-2022.01.10 0 r UNASSIGNED
security-auditlog-2022.06.09 0 p STARTED
security-auditlog-2022.06.09 0 r UNASSIGNED
security-auditlog-2022.03.20 0 p STARTED
security-auditlog-2022.03.20 0 r UNASSIGNED
wazuh-alerts-4.x-2022.04.06 2 p STARTED
wazuh-alerts-4.x-2022.04.06 1 p STARTED
wazuh-alerts-4.x-2022.04.06 0 p STARTED
wazuh-alerts-4.x-2022.03.13 2 p STARTED
wazuh-alerts-4.x-2022.03.13 1 p STARTED
wazuh-alerts-4.x-2022.03.13 0 p STARTED
security-auditlog-2022.03.17 0 p STARTED
security-auditlog-2022.03.17 0 r UNASSIGNED
wazuh-alerts-4.x-2022.01.28 2 p STARTED
wazuh-alerts-4.x-2022.01.28 1 p STARTED
wazuh-alerts-4.x-2022.01.28 0 p STARTED
wazuh-alerts-4.x-2022.03.04 2 p STARTED
wazuh-alerts-4.x-2022.03.04 1 p STARTED
wazuh-alerts-4.x-2022.03.04 0 p STARTED
wazuh-monitoring-2021.52w 0 p STARTED
security-auditlog-2022.04.11 0 p STARTED
security-auditlog-2022.04.11 0 r UNASSIGNED
security-auditlog-2022.03.15 0 p STARTED
security-auditlog-2022.03.15 0 r UNASSIGNED
security-auditlog-2022.04.21 0 p STARTED
security-auditlog-2022.04.21 0 r UNASSIGNED
So now, how can I get rid of those / solve the problem ?
Thanks in advance, I've already struggled a few hours to get those infos, but I don't know what are the next steps.
Kind regards