[UII] Allow to reset log level for agents >= 8.15.0#183434
Merged
jen-huang merged 10 commits intoelastic:mainfrom May 16, 2024
Merged
[UII] Allow to reset log level for agents >= 8.15.0#183434jen-huang merged 10 commits intoelastic:mainfrom
jen-huang merged 10 commits intoelastic:mainfrom
Conversation
…vel on agent action api
…how apply changes
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Contributor
|
Pinging @elastic/fleet (Team:Fleet) |
Contributor
Author
|
/ci |
kilfoyle
approved these changes
May 15, 2024
Member
kilfoyle
left a comment
There was a problem hiding this comment.
LGTM for the text! 👍
I'll add this setting into the Fleet settings page as well.
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: cc @jen-huang |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves #180778
This PR allows agent log level to be reset back to the level set on its policy (or if not set, simply the default agent level, see elastic/elastic-agent#3090).
To achieve this, this PR:
nullto be passed for the log level settings action, i.e.:Apply changeson the agent details > Logs tabReset to policyon the agent details > Logs tabCaveats
log_levelmetadata is not accurate elastic-agent#4747), so the initial selection on the agent log level could be wronglog_levelsource should be reported elastic-agent#4748), so that's whyApply changesandReset to policyare always shownTesting
Use the latest
8.15.0-SNAPSHOTfor agents or fleet server to test this changeChecklist
Delete any items that are not applicable to this PR.