
Hi Suat,
The events shown in Kibana are the alerts triggered by the Wazuh manager, Filebeat sends these alerts from the manager to ElasticSearch. The issue could come from different sources so I’ll try to give to you hints to troubleshoot it.
First of all, it would be great to ensure that Filebeat is able to connect to ElasticSearch successfully by using filebeat test output
Since you are using SSL and X-Pack features It should return something similar to:
In case it returns no error the problem may be related to a installation problem. Please ensure the wazuh module and template are correctly installed.
You may check it by looking within /etc/filebeat/ and looking for the file wazuh-template.json, the Wazuh module is usually stored under /usr/share/filebeat/module.
Our documentation shows the steps to download the Wazuh module and template for Filebeat in the Manager installation section.
In case it is not able to connect to ElasticSearch the problem could be related to the configuration. Check out the username and password provided to Filebeat and the path to the certificates.
It is important to ensure Filebeat is reading the alerts file, you may check it by using:
The output should be similar to:
I hope it helps you.
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/5b220642-4a26-4d88-8b26-cc6a988076f6%40googlegroups.com.
Hello,
I’m sorry those steps didn’t solve your problem.
Let’s check out the manager is generating alerts. You may do it by executing the command:
tailf /var/ossec/logs/alerts/alerts.jsonAfter executing the command you may force the manager to generate some alerts by performing a sudo su in the same machine for example.
In case you can't see new alerts being generated please check the manager it up and running. You may find errors related to the manager by looking at the /var/ossec/logs/ossec.log file.
In case you can see new alerts its is possible to debug Filebeat by executing:
filebeat -e -d "processors"Now each time an alert is generated you should be able to see a new event similar to:
2019-10-25T08:13:30.072Z DEBUG [processors] processing/processors.go:183 Publish event: {
"@timestamp": "2019-10-25T08:13:30.072Z",
"@metadata": {
"beat": "filebeat",
"type": "_doc",
"version": "7.3.2",
"pipeline": "filebeat-7.3.2-wazuh-alerts-pipeline"
},
"fileset": {
"name": "alerts"
},
…In case everything worked as expected is time to move to ElasticSearch and look for error there. Let’s look for errors in the log file, please execute:
cat /var/log/elasticsearch/elasticsearch.log | tail -n 100You will see a bunch of different messages, look for WARN or ERROR messages. In case you find errors here the problem would probably be related to a misconfiguration. Check out the /etc/elasticsearch/elasticsearch.yml file to find any typo.
You may get further information on how to configure Elasticsearch in our documentation.
Don't hesitate to share with us any error you find there and we will try to help you to get it solved.
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/67279824-c3f0-430d-a02c-f296d03bf053%40googlegroups.com.
Please install tcpdump in the machine where ElasticSearch is located. Execute it this way:
tcpdump src WAZUHMANAGERIP -i INTERFACEUSEDBYELASTIC -nnYou may get the interface to use by executing ifconfig, you will get an output similar to:
[root@centos11 ~]# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.0.2.15 netmask 255.255.255.0 broadcast 10.0.2.255
inet6 fe80::eb6e:598c:c7f1:54c5 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:c2:05:d3 txqueuelen 1000 (Ethernet)
RX packets 697 bytes 639884 (624.8 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 324 bytes 23685 (23.1 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 11.0.0.11 netmask 255.255.255.0 broadcast 11.0.0.255
inet6 fe80::a00:27ff:fe95:695 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:95:06:95 txqueuelen 1000 (Ethernet)
RX packets 708 bytes 247745 (241.9 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 656 bytes 64839 (63.3 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0I’m using 11.0.0.11 as ElasticSearch IP address so I have to use the interface eth1. Once you launch the command you have to generate alerts in the manager, try to execute sudo su there for example.
After that, you should see events reported by the tcpdump command. They should be similar to:
13:10:53.291866 IP 11.0.0.14.50344 > 11.0.0.11.9200: Flags [S], seq 2985244782, win 29200, options [mss 1460,sackOK,TS val 201221 ecr 0,nop,wscale 7], length 0In case you can’t see the events the problem could be related to a firewall configuration. Please check it out and create rules to allow filebeat to send the events to ElasticSearch.
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/85679859-24f0-4d8b-a212-eb79cddce9ca%40googlegroups.com.

After that, you may see something similar to this within the Wazuh app:

I hope it solves the problem.
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/006fcff6-dfa3-49bd-9c7e-b925f877b6ea%40googlegroups.com.
# Filebeat modules configuration
filebeat.config.modules:
path: ${path.config}/modules.d/*.yml
# Wazuh - Filebeat configuration file