Skip to content

[Fleet] Allow to config Agent log level #83330

@nchaulet

Description

@nchaulet

Description

Related to elastic/beats#20756
We want to allow an user to change the log level for an agent

We decided that we are going to create a new agent action for that, and to not have a concept of per agent policy.

Details

Kibana Change

We can use the existing route POST /api/fleet/agents/{agentId}/actions to create a new AgentAction to update the log level for an agent.

Agent action

{
  "type":  "SETTINGS",
  "data" : {
    "log_level": "debug"|"info"|"warning"|"error"
  }
}

When the agent receive this action it should update the log level, for itself and his subprocesses

@michalpristas can the agent send the log_level as part of the metadata?

UI change

@hbharding How do we want to present the ability to configure the log level for one Agent?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:FleetTeam label for Observability Data Collection Fleet teamv7.11.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions