elastic/elastic-agent

`log_level` metadata is not accurate

jen-huang opened this issue · 4 comments

Follow up to the discussion in elastic/kibana#180778

Reproduction:

  1. Enroll a new agent into a policy that already has log level set to debug
  2. Observe that the agent successfully sent debug logs
  3. View agent document, observe that local_metadata.elastic.agent.log_level is reporting info even though it is running at debug level from its policy

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

FYI where it's used in kibana
Screenshot 2024-05-16 at 11 29 16 AM

FYI where it's used in kibana

Also displayed on the details tab :

image

Change has been reverted via #4938, reopening