Got into a small trouble, have installed metric beat in few VM's which was sending data to elasticsearch and was able to view all the dashboards properly, and the VM firewall was turned off.
There was a vulnerability so i had to enable the windows firewall and post that metricbeat data from those machines are not flowing into elasticsearch, I have created an inbound and outbound rule to allow port 5601 and 9200 in the Vm, still not luck. Any advice on this please?
To confirm the port open i have done a telnet to elasticsearch and kibana with respective port and its working.
In principle this doesn't look like a problem on metricbeat Were the firewall rules added in the host or in the guests?
Did you try to connect with telnet from the same guests where metricbeat is running?
Can you see any error in metricbeat logs?
yeah @jsoriano You are rite there is no problem with metricbeat,but for this scenario i thought this is the best place to ask the question.
firewall rules are added in guest, yes i tried telnet with both the ports 5601 and 9200, telnet is happening successfully.
mericbeat log doesnot have any information it has only one line which contains the config file path and logfile path, nothing else there in the log file.
Umm, let's go back to the root of the question How are you checking that there is no data in elasticsearch? I'm thinking now that maybe metricbeat is being able to send data, but is Kibana the one that has problems connecting to elasticsearch and this is why you cannot see anything...
If everything between kibana and elasticsearch is fine, to continue investigating the problem in metricbeat, could you enable debug logging with logging.level: debug and check again the logs for any problem related with connectivity?
my bad ,my bad, my bad.......sorry for wasting your time @jsoriano all these time i was checking whether data is flowing in or not by just clicking the beat.hostname on the lefthand side and checking how many hosts are there.it was showing only one.
After your question only i have searched for beat.hostname in the query field and got the output, yeah i'm getting all the documents flowing into elasticsearch.
Thank you very much for your patience and proper questions asked.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.