-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
beat.sh script cannot use a custom config path #2171
Comments
IMO, the best solution would be if the default value for Have to check if this is a viable solution, I know we had issues with this approach before, but I think that was before introducing the config paths. |
I think by default (if no -c is given), filebeat should load config file from ${path.config}/filebeat.yml by default. Solution might be to remove |
This is a proposal fix for elastic#2171. There's a bit of a chicken and egg problem here, since defining the paths requires the configuration file and the other way around. The implemented logic is to: * if the `-path.config` flag is used, look for the config file relative to it * if not, but `-path.home` flag is used, look for the config file relative to the home path * else, look into the binary location, mostly for backwards compatibility I'm not sure we need the last point, we could leave it relative to the cwd, like most tools would do it. But this requires a BWC break.
This is a proposal fix for #2171. There's a bit of a chicken and egg problem here, since defining the paths requires the configuration file and the other way around. The implemented logic is to: * if the `-path.config` flag is used, look for the config file relative to it * if not, but `-path.home` flag is used, look for the config file relative to the home path * else, look into the binary location, mostly for backwards compatibility I'm not sure we need the last point, we could leave it relative to the cwd, like most tools would do it. But this requires a BWC break.
Fixed by #2245. |
In alpha5 we added the option to use the
-c
multiple times. This somewhat breaks the beat.sh scripts that we put in the/usr/bin
for DEB/RPM installations (the beat binary is not in $PATH by default).Here is an example of a script:
One of the things that was possible in alpha4 was to specify a custom config file, e.g.:
This was overriding the default config file from the script with
filebeat.yml
. With alpha5, however, the Beat combines the two configuration files, which comes as a surprise for the user.The text was updated successfully, but these errors were encountered: