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
Cannot successful use more than one winlogbeat configuration #14228
Comments
That's likely because you've been updating with an existing config.
|
Forgot to reply, confirmed the above suggestion worked. However, those changes won't be present for anyone who has upgraded from a previous version and may not know they need to change these configuration settings. Ideally graylog-server could inspect the config and alert the user if an applied config is missing this (where applicable). |
Any ideas on how to handle this for people who upgrade from older versions and won't have the updated templates? |
I don't believe the sidecar collector updates the paths from the config file. |
@zyxep are you sure the collector was started by the sidecar itself? It sounds like you are running it via systemd or so. |
@drewmiranda-gl |
@mpfz0r the sidecar requests configuration files from the graylog server just fine and it places it in my filebeat configuration does have this configured:
|
What is the solution to the problem? I had installed Graylog with version 5.2.0 and then upgraded to 5.2.1 where I first noticed the problem. I am currently using version 5.2.2 where the problem still exists. As with @zyxep, neither the
The first configuration:
The second configuration:
When I create a new configuration and select filebeat on Linux, I get the following default configuration:
There,
|
This is a known bug. It will be fixed with the next release.
is the right config format. |
I use Sidecar version 1.5.0. So I will have to wait for Graylog version 5.2.3 to come out, before I can continue my work. |
You can already manually fix the configuration that is applied to the sidecar in the Graylog UI at
To verify that the config has been applied correctly, check the generated config files at |
I don't quite follow you. In my opinion, the format is correct and @mpfz0r also writes that it is correct, or where is the mistake? I have checked the Filebeat configurations on the server and they match the configuration in the graylog system. So they are applied correctly. FYI: I am still using version 5.2.1 after all, as Graylog tells me that an update to version 5.2.2 is available, but that there is currently no package available for my system. |
Hi! default configuration doesn't have " path:" in there as You mentioned before. Adding path: before data: helped me. In my case I got generated folders with filebeat configuration file and data folder where 2 json files were located. They both were empty. Now they are not empty anymore :) |
Many thanks @starislv for this tip! That was the solution to the problem! I did have it written above it, but as a plural, |
With Graylog 5, a new feature has been introduced to allow for more than one [collector] configuration of the same collector type to be assigned to a sidecar. However, when assigning more than one winlogbeat configuration, only one of them can successfully the start. All others will fail to start. The service won't start. Attempting to run the command the service attempts to run indicates the problem:
Each instance of winlogbeat MUST have a unique working directory or path to its data and logs directorires.
Expected Behavior
Can assign more than one winlogbeat config, OR graylog prevents this since it doesn't work.
Current Behavior
Graylog allows assigning more than one winlogbeat configuration even though only one can successfully start.
Possible Solution
Specify unique paths for data, home, and logs using the winlogbeat arguments:
Steps to Reproduce (for bugs)
Context
It can be very useful to apply more than one winlogbeat configuration, for example to have a number of general purpose configurations that can later be combined to mix and match what configuration is applied. Currently only a single winlogbeat collector can be applied.
Your Environment
The text was updated successfully, but these errors were encountered: