-
Notifications
You must be signed in to change notification settings - Fork 144
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]: Filebeat and Metricbeat running agent logs are not available under Logs tab. #1823
Comments
Secondary Review is done |
Tracked in #1814 |
Closing this as we will use #1814 to track the fix. |
Should be fixed in 8.6. The next BC is currently scheduled for December 6th. The fix should also be available to test in the next snapshot. |
Hi @cmacknz Observations:
Build details: Agent Logs: [Healthy]elastic-agent-diagnostics-2022-12-08T06-42-27Z-00.zip Hence, we are reopening this issue. Please let us know if anything else is required from our end. |
I tried the latest 8.6.0 snapshot and I can see logs for Filebeat and Metricbeat if I explicitly opt into displaying their datasets: Is the expectation that these logs are visible by default? It's not clear from the issue what the success criteria is here. I am wondering if we have just changed the behaviour such that you need to explicitly opt-in to the filebeat+metricbeat datasets rather than seeing them displayed by default. |
Hi @cmacknz However, earlier the filebeat and metricbeat running logs were visible by default. If we even opt for datasets also, the runnning logs are not present. Expected behaviour:
Thanks. |
Ah, the log messages have changed with the new agent V2 architecture. The agent state is now reported in a way that more closely matches the way an agent policy is written, with state reported per input+output combination instead of just listing the Beat processes. In the agent logs you will instead see a message like this for each input listed in an agent policy: {"log.level":"info","@timestamp":"2022-12-08T06:37:11.675Z","log.origin":{"file.name":"coordinator/coordinator.go","file.line":325},"message":"Existing component state changed","component":{"id":"log-default","state":"HEALTHY","message":"Healthy: communicating with pid '7044'","inputs":[{"id":"log-default-logfile-system-153ccfeb-91a3-4b7b-8e54-3bcff0f43581","state":"HEALTHY","message":"beat reloaded"}],"output":{"id":"log-default","state":"HEALTHY","message":"reloaded output component"}},"ecs.version":"1.6.0"} Specifically you will see In the agent policy this maps back to a inputs:
id: logfile-system-153ccfeb-91a3-4b7b-8e54-3bcff0f43581
meta:
package:
name: system
version: 1.20.4
name: system-3
type: logfile
use_output: default |
Hi @cmacknz Thanks for the feedback. However, could you please confirm if we need to check logs as mentioned above using agent policy input ids and their statuses after agent installation from now. Further, also, will logs make a new entries each time as per agent policy input ids, whenever we perform actions like, changing agent policy or changing agent log level, deleting/adding any integrations in policy. Please let us know if you need anything more regarding our queries. |
Closing this as fixed following a conversation I had with @cmacknz. |
Hi @cmacknz We have checked agent logs on latest build, and updated logs are not available having agent policy input ids. Tested on: As discussed in call, we will be waiting for further feedback, so that we can update our testcases. Thanks! |
Hi @cmacknz Update: Today, while performing testing on 8.6 BC7 staging env, I have found required logs under debug logging level. |
Thanks. I think this only works for endpoint-security. I'm going to open a follow up issue to figure out why we can't see any of the component details in these logs. |
Hi @cmacknz Screenshots: Query1: Query2: Please let us know if anything else is required from our end. |
Yes this is the last planned change to the agent log format.
This is correct, in 8.6 there will be one Beat process per input type in the Elastic agent policy. For example, an input of type When metrics or logs monitoring is enabled the agent will also spawn an additional Metricbeat process to collect process metrics and a Filebeat process to collect logs. |
Hi @cmacknz Thank you for looking into the queries. As per your feedback we have revalidated this issue on latest 8.6 Bc10 kibana cloud environment also, and found this issue fixed now.
Build Details:
Hence, marking this issue as QA:Validated. |
Kibana version: 8.6 BC3 Kibana cloud environment
Host OS and Browser version: All, All
Build details:
Preconditions:
Steps to reproduce:
Filebeat
andMetricbeat
running agent logs are not available under Logs tab.Expected Result:
Screenshot:
Elastic-agent logs:
ubuntu_logs.zip
The text was updated successfully, but these errors were encountered: