Skip to content

[BUG] restart agent, k8s log file read from beginning #36938

@lerminou

Description

@lerminou

Agent Environment

agent 7.53

Describe what happened:
During a maintenance operation, all agents restart.
In Datadog, I see that numerous errors have appeared in the logs and incidents have been created.

In fact, the logs are old.
It seems that the agent, upon restart, doesn't have the latest position in each file.
the attached image show old logs

Describe what you expected:
only news logs are ingested when restarting the agents

Steps to reproduce the issue:

Additional environment details (Operating System, Cloud provider, etc):
k8s on-premise

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions