-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Allow to config Agent log level #83330
Comments
Pinging @elastic/ingest-management (Team:Ingest Management) |
@ruflin @blakerouse WDYT? |
Lets assume the user shipped down the specific log level for an Agent. What happens if the Agent is restarted? Will it keep the log level? Where can a users see what log level an Agent is running on? Lets make sure we align with https://www.elastic.co/guide/en/ecs/current/ecs-log.html on the allowed log levels / naming. I think mostly we already do but wanted to mention it. |
I think this is acceptable, but I would prefer to make it more generic. We might add other settings to change per Agent and we should be able to update those using the same action type.
We will need to persist this change so that on restart the Agent starts back at this log level. At the moment we read the log setting from |
I am good with having a more generic action |
@michalpristas do you think it's possible to add the current |
Hey there. Happy to help with a design. A few questions first:
From @ruflin and related to @nchaulet's last question to @michalpristas:
I think we would show this information on the agent detail page where we currently list some agent metadata information. cc @mostlyjason for visibility |
@hbharding really good questions.
|
@nchaulet This sound good to me, FYI @mostlyjason |
discussed offline: agent will send current log level as part of local metadata |
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
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?
The text was updated successfully, but these errors were encountered: