Skip to content
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

No debug level logs are generated on changing log level to debug. #2012

Closed
amolnater-qasource opened this issue Dec 26, 2022 · 11 comments
Closed
Labels
bug Something isn't working impact:medium QA:Validated Validated by the QA Team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@amolnater-qasource
Copy link

Kibana version: 8.6 Snapshot kibana cloud-staging environment

Host OS and Browser version: All, All

Build details:

8.6 Snapshot
BUILD: 58830
COMMIT: 6a5d6d96a534be75fc58acda8f89f2610309d7ff
Artifact: https://snapshots.elastic.co/8.6.0-f6d7d537/downloads/beats/elastic-agent/elastic-agent-8.6.0-SNAPSHOT-windows-x86_64.zip

Preconditions:

  1. 8.6 Snapshot kibana cloud-staging environment should be available.
  2. Agents should be installed.

Steps to reproduce:

  1. Navigate to Fleet tab.
  2. Update logging level to debug for agents under agent logs.

Logs:
elastic-agent-diagnostics-2022-12-26T07-53-38Z-00.zip

Screenshot:
2

Related issue:
#1912

Expected Result:
Debug level logs should be generated on changing log level to debug.

@amolnater-qasource amolnater-qasource added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team impact:medium labels Dec 26, 2022
@amolnater-qasource
Copy link
Author

@manishgupta-qasource Please review.

@manishgupta-qasource
Copy link

Secondary review for this ticket is Done

@michalpristas
Copy link
Contributor

cannot reproduce locally.
logs are present in a log file
logs are present in discover, debug filtering works
playing with log level and watching Log Live stream it reflects the settings.
It has a delay though

@amolnater-qasource
Copy link
Author

Hi @michalpristas
We have revalidated this issue on latest 8.6 BC9 kibana cloud environment and had below observations:

Observations:

Build details:
BUILD: 58832
COMMIT: 93183bddac40f8a7ee8e566d1651f9f3b586a520

Screen Recording:

Agents.-.Fleet.-.Elastic.-.Google.Chrome.2022-12-29.13-04-28.mp4
Agents.-.Fleet.-.Elastic.-.Google.Chrome.2022-12-29.12-53-27.mp4

Linux Logs:
[Ubuntu]elastic-agent-diagnostics-2022-12-29T07-46-58Z-00.zip

Windows Logs:
elastic-agent-diagnostics-2022-12-29T07-40-02Z-00.zip

Please let us know if anything else is required from our end.

Thanks

@michalpristas
Copy link
Contributor

michalpristas commented Dec 30, 2022

@amolnater-qasource could you revalidate with SNAPSHOT?

@amolnater-qasource
Copy link
Author

Hi @michalpristas
We have observed this issue as still reproducible on current available 8.6 SNAPSHOT.

Observations:

Please let us know if anything else is required from our end.
Thanks

@cmacknz
Copy link
Member

cmacknz commented Jan 4, 2023

The agent here is affected by elastic/beats#34137 which will be fixed in BC10.

@cmacknz
Copy link
Member

cmacknz commented Jan 4, 2023

The filestream monitoring instance is being left without an output configuration because of the bug in elastic/beats#34137

    state: 2
    message: 'Healthy: communicating with pid ''2435'''
    units:
      ? unittype: 0
        unitid: filestream-monitoring-filestream-monitoring-agent
      : state: 4
        message: '[output unit has no config]'
      ? unittype: 1
        unitid: filestream-monitoring
      : state: 4
        message: '[output unit has no config]'

The filestream monitoring component is restarted before transitioning to the failed state because the initial configuration is provided with no configuration.

{"log.level":"info","@timestamp":"2022-12-29T07:27:46.819Z","message":"beat is restarting because output changed","component":{"binary":"filebeat","dataset":"elastic_agent.filebeat","id":"filestream-monitoring","type":"filestream"},"log.logger":"centralmgmt.V2-manager","log.origin":{"file.line":503,"file.name":"management/managerV2.go"},"service.name":"filebeat","ecs.version":"1.6.0","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-29T07:27:57.411Z","log.origin":{"file.name":"coordinator/coordinator.go","file.line":833},"message":"Unit state changed filestream-monitoring-filestream-monitoring-agent (STARTING->FAILED): [output unit has no config]","component":{"id":"filestream-monitoring","state":"HEALTHY"},"unit":{"id":"filestream-monitoring-filestream-monitoring-agent","type":"input","state":"FAILED","old_state":"STARTING"},"ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-12-29T07:27:57.411Z","log.origin":{"file.name":"coordinator/coordinator.go","file.line":833},"message":"Unit state changed filestream-monitoring (STARTING->FAILED): [output unit has no config]","component":{"id":"filestream-monitoring","state":"HEALTHY"},"unit":{"id":"filestream-monitoring","type":"output","state":"FAILED","old_state":"STARTING"},"ecs.version":"1.6.0"}

@amolnater-qasource
Copy link
Author

amolnater-qasource commented Jan 5, 2023

Hi @cmacknz
We have revalidated this issue on latest 8.6 BC10 Kibana cloud environment and found it partially fixed.

Observations:

Build details:
BUILD: 58852
COMMIT: d3a625ef4a6e611a5b3233a1ce5cbe8ef429eb47
Artifacts: https://staging.elastic.co/8.6.0-b6c773f9/summary-8.6.0.html#elastic-agent

Screen Recording:

Agents.-.Fleet.-.Elastic.-.Google.Chrome.2023-01-05.15-14-05.mp4

After reboot:
1
2

Before reboot Logs:
elastic-agent-diagnostics-2023-01-05T09-47-54Z-00.zip

Please let us know if anything else is required from our end.
Thanks

@cmacknz cmacknz closed this as completed Jan 5, 2023
@cmacknz
Copy link
Member

cmacknz commented Jan 5, 2023

Thanks the missing agent debug logs are likely caused by #1955, the agent also has few messages it logs at the debug level as part of normal operation.

@amolnater-qasource
Copy link
Author

Thank you for confirming @cmacknz
Hence, we are marking this as QA:Validated.

@amolnater-qasource amolnater-qasource added the QA:Validated Validated by the QA Team label Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working impact:medium QA:Validated Validated by the QA Team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

4 participants