-
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
[Fleet]: Host Details are not available under predefined filters in the Search bar of Agents Logs tab. #34125
Comments
Pinging @elastic/fleet (Team:Fleet) |
Secondary review is done |
looks like |
Here are my findings: output name is empty, what makes filebeat not load the pipelines and log:
On my branch I changed the message to include the current configured/enabled output and reduced the level to info. I don' think on a normal situation it'd be a surprise to the user the pipelines being disabled. Anyway, at least I'd say the message must include the current configured/enabled as without it it'd hard to understand what is happening. If we had it this issues would have been a lot more straight forward to debug. The culprit seems to be I fixed it. Using a debugger I can see the issue and the fix working, well almost. I does fix the empty output when the configs are loaded on How I have debugged it:
the double So far I can only imagine the issue is the config having changed and It could be that during the beats initialisation under agent it reads an empty config from disk then the agent send the new one, and I've only fixed when loading from disk. This would explain to work in standalone mode ran through delve. What I'd try next it to add logs during the config reload process. I'd bet it's the same case as for the initialisation, the code is trying to load the output using a wrong key. Last thoughts:
|
Yes the Beats don't actually read the default configuration at startup anymore see #31901. They are likely not creating an This will be true for each Beat running under agent. The default processors for each Beat are:
The simplest fix for this for the issue reported in just this bug is to add an instance of the To restore the default processors used for every Beat now that they aren't read from a configuration file, we could add them in code when we generate the Beat configuration from the UnitExpectedConfig received from the agent as a global processor: beats/x-pack/libbeat/management/generate.go Line 155 in acd70e9
However since this default processor set actually varies per Beat we would probably want to do this on a Beat specific basis. If you search the Beats code for For Filebeat it is beats/x-pack/filebeat/cmd/root.go Line 22 in d8204a2
beats/x-pack/filebeat/cmd/agent.go Lines 16 to 21 in d8204a2
Doing that for every Beat and testing it is not straight forward. |
Hi Team, We have revalidated this issue on latest 8.6 BC10 kibana cloud environment and found this issue is fixed now.
Build Details:
Hence, marking this issue as QA:Validated |
Kibana version: 8.6 Snapshot Kibana cloud environment
Host OS and Browser version: All, All
Build details:
Preconditions:
Steps to reproduce:
Expected Result:
What is working fine on 8.6:
Only
host.name
is working fine.What is not working fine on 8.6:
i.e. host.id
host.mac,
host.hostname
Screenshots:
What is working fine:
Predefined filters are available under logs tab in 8.5.3
i.e. host.id
host.mac,
host.hostname
host.name
The text was updated successfully, but these errors were encountered: