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

[Ingest Manager]: Error logs are getting displayed under Logs tab, when Agent logging level setting is updated. #23395

Closed
dikshachauhan-qasource opened this issue Jan 7, 2021 · 6 comments
Assignees
Labels
bug impact:high Short-term priority; add to current release, or definitely next.

Comments

@dikshachauhan-qasource
Copy link

Kibana version:
7.11 BC Kibana Cloud environment

Elasticsearch version:
7.11 BC Kibana Cloud environment

Host OS and Browser version:
Windows 10, All

Original install method (e.g. download page, yum, from source, etc.):
7.11 BC Kibana Cloud environment

Preconditions

  1. 7.11 BC Kibana Cloud environment should be available.
BUILD 37605
COMMIT a5126f7a280a6f4a27dc3aca65c1c89ccd1ac694
Artifact link: https://staging.elastic.co/7.11.0-8f5ce7c2/summary-7.11.0.html/elastic-agent-7.11.0-windows-x86_64.zip
  1. Any policy having system integration should exist.[No change in namespace].
  2. Agent should be installed using above policy.

Steps to reproduce:

  1. Login to Kibana cloud environment.
  2. Go to Fleet>Agents.
  3. Observe, currently agent logs are generated.
  4. Select Agent Logging Level and update setting to say 'warning'.
  5. Apply Changes.
  6. Wait for few seconds. Refresh the Browser.
  7. Now, Agent logging level is updated on Agent details page.
  8. Navigate back to Logs tab.Notice, Error logs are getting displayed under Logs tab, when Agent logging level setting is updated.

Reference ticket Id:
elastic/kibana#84119

Actual Result
Error logs are getting displayed under Logs tab, when Agent logging level setting is updated.

Expected Result
Error logs should not be displayed under Logs tab, when Agent logging level setting is updated.

What's working

  • Logging level is updated properly.
  • Logs are generated as per above logging level.

What's not working
N/A

Logs

[elastic_agent][warn] failed to ack update open C:\Program Files\Elastic\Agent\data\.update-marker: The system cannot find the file specified.

Screenshots:
errorLogs

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Jan 7, 2021
@manishgupta-qasource
Copy link

Reviewed & Assigned to @EricDavisX

@elasticmachine
Copy link
Collaborator

Pinging @elastic/ingest-management (Team:Ingest Management)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Jan 7, 2021
@manishgupta-qasource manishgupta-qasource added bug impact:high Short-term priority; add to current release, or definitely next. labels Jan 7, 2021
@EricDavisX
Copy link
Contributor

It is understandable to log this, but after review - it is not a bug. The errors in the logs are unrelated to the change to the log level.

  • the 'marker' item can be logged separately if we want to remove them from the log, it relates to the Agent upgrade feature.

@dikshachauhan-qasource
Copy link
Author

Hi @EricDavisX

Thanks for the feedback.

However, as per our understanding its only updating agent settings to capture logs and not upgrading agent.
With above feedback, we have come up withy few queries:

  1. If we change agent logging level, does it triggers Agent to upgrade at Backend and that's why these logs are generating.

  2. In above reported defect we have seen logs stating :"The system cannot find the file specified." when Agent logging level is changed.
    So, does this action changes file at C:\Program Files\Elastic\Agent\data.update-marker location which as per bug system could not locate.
    Logs reported in defect:

[elastic_agent][warn] failed to ack update open C:\Program Files\Elastic\Agent\data\.update-marker: The system cannot find the file specified.

Thanks
QAS

@EricDavisX
Copy link
Contributor

  1. The log level does not impact the Agent 'backend' or version at all.

  2. The update-marker log is just coincidental timing that it shows up around the time that you are testing log level changes. It will show up when Agent is first installed, and possibly for a brief time after that (up to 10 minutes maybe), glad to see the question.

@dikshachauhan-qasource
Copy link
Author

Hi @EricDavisX

Thanks for the feedback on queries and providing clear concepts to functionality.

Thanks
QAS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug impact:high Short-term priority; add to current release, or definitely next.
Projects
None yet
Development

No branches or pull requests

4 participants