-
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
[Ingest Manager] UI to configure agent log level #84112
[Ingest Manager] UI to configure agent log level #84112
Conversation
Pinging @elastic/ingest-management (Team:Ingest Management) |
...ications/fleet/sections/agents/agent_details_page/components/agent_logs/select_log_level.tsx
Show resolved
Hide resolved
...ications/fleet/sections/agents/agent_details_page/components/agent_logs/select_log_level.tsx
Outdated
Show resolved
Hide resolved
...ications/fleet/sections/agents/agent_details_page/components/agent_logs/select_log_level.tsx
Outdated
Show resolved
Hide resolved
...ications/fleet/sections/agents/agent_details_page/components/agent_logs/select_log_level.tsx
Outdated
Show resolved
Hide resolved
...ications/fleet/sections/agents/agent_details_page/components/agent_logs/select_log_level.tsx
Outdated
Show resolved
Hide resolved
...ications/fleet/sections/agents/agent_details_page/components/agent_logs/select_log_level.tsx
Outdated
Show resolved
Hide resolved
…-to-configure-log-level
63c3ad3
to
493381e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes! A few copywriting comments but not blocking.
setAgentLogLevel(selectedLogLevel); | ||
notifications.toasts.addSuccess( | ||
i18n.translate('xpack.fleet.agentLogs.selectLogLevel.successText', { | ||
defaultMessage: 'Changed agent logging level to "{logLevel}".', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think our copywriting convention would dictate single quotes and no period here
defaultMessage: 'Changed agent logging level to "{logLevel}".', | |
defaultMessage: `Updated agent logging level to '{logLevel}'`, |
cc @gchaps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of our other quoted text use single quote I will do the change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the guideline is to use single quotes.
); | ||
} catch (error) { | ||
notifications.toasts.addError(error, { | ||
title: 'Error', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be translated and given additional context, like Error updating agent logging level
cc @gchaps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also could be "Cannot update agent logging level"
Can
indexPattern: { | ||
title: AGENT_LOG_INDEX_PATTERN, | ||
fields: [LOG_LEVEL_FIELD], | ||
}, | ||
field: LOG_LEVEL_FIELD, | ||
query: '', | ||
}); | ||
setLevelValues(values.sort()); | ||
setLevelValues([...new Set([...LEVEL_VALUES, ...values.sort()])]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Page load bundle
History
To update your PR or re-run it, just comment with: |
Summary
Depends on elastic/beats#22690
Allow to configure the agent log level from the UI.
If the agent version is smaller than 7.11 the feature is not available and will not be displayed.
It's not possible to change the log level to the current agent log level.
UI Change
Display the log level in the agent details
Allow to select log level