-- Edit metricbeat.yml at /etc/metricbeat and there setup the config as :
setup.kibana:
host: "localhost:5601"
#Add your ES IP
And change Elasticsearch output as below:
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["localhost:9160"]
# Add your ES details
-- Then run from /etc/metricbeat /usr/share/metricbeat/bin/metricbeat setup --dashboards
you might get an error as :
Exiting: Error importing Kibana dashboards: fail to import the dashboards in Kibana: Error importing directory /usr/share/metricbeat/bin/kibana: No directory /usr/share/metricbeat/bin/kibana/default
-- For this case it seems kibana dir is present under /usr/share/metricbeat but it is looking at /usr/share/metricbeat/bin , so copy the kibana dir at bin folder and run the command again.
By running just metricbeat your shell will find /usr/bin/metricbeat on the PATH. This configures the -path.* options correctly so you can run it from any directory.
I added the setup.dashboards.enabled: true to my config file 'equivalent to command: /usr/share/metricbeat/bin/metricbeat setup --dashboards. Kibana dashboards successfully loaded but when i connect to kibana i can not find my data ? I have selected the right index mypattern-*
Compared to normal method, I just modified setup.dashboards.index and output.elasticsearch: index.
I added also a new template
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.