Stat metricbeat.yml: no such file or directory

Hi,
I am new with the Beats. I did a yum install of metricbeat and followed the instructions on Elastic site for setting up a keystore but oddly when I try to do:

/usr/share/metricbeat/bin/metricbeat keystore create

I get:

/usr/share/metricbeat/bin/metricbeat keystore create error initializing beat: error loading config file: stat metricbeat.yml: no such file or directory

On another machine, we installed filebeat without and created the keystore with no issues. Has anyone experienced this? What caused it? Thank you.

Hey @teej,

Try to run this command without the full path, just like this:

metricbeat keystore create

J,
That worked! But why? I mean thank you but Im curious why the full path didnt work? Usually when doing this with the elastic keystore its the full path that works.

The metricbeat that is in your path is a script, located in /usr/bin/metricbeat that sets some flags and then runs the binary in /usr/share/metricbeat/bin/metricbeat.

2 Likes

Thank you Jaime.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.