Skip to content
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

[Alerts] Server log action: log level cannot be set #82341

Closed
Matt-Yorkley opened this issue Nov 2, 2020 · 3 comments · Fixed by #83651
Closed

[Alerts] Server log action: log level cannot be set #82341

Matt-Yorkley opened this issue Nov 2, 2020 · 3 comments · Fixed by #83651
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)

Comments

@Matt-Yorkley
Copy link

Matt-Yorkley commented Nov 2, 2020

Kibana version:

7.9.2 (also tried in 7.9.3)

Elasticsearch version:

7.9.2 (also tried in 7.9.3)

Server OS version:

Ubuntu 18.04

Browser version:

Firefox 82.0

Browser OS version:

Ubuntu 20.04

Original install method (e.g. download page, yum, from source, etc.):

apt

Describe the bug:

When setting up an alert and using the "Server log" action, the log level option does not work. There is a list of possible options, but when changing and saving it, the action always reverts to the default "info" level and is not saved.

Steps to reproduce:

  1. In Kibana go to Stack Management -> Alerts
  2. Create a new Alert and set the action type to "Server log"
  3. Under the settings, select a non-default log level, eg: "warning"
  4. Save the Alert
  5. Check the alert settings again; the log level has reverted to "info"

Expected behavior:

The log level option can be set as expected.

Screenshots (if relevant):

Screenshot from 2020-11-02 18-26-25

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

Tested in 7.9.2 and 7.9.3

Especially annoying when using the logging.quiet: true config option, as it means all "System log" alerts vanish.

@kindsun kindsun added bug Fixes for quality problems that affect the customer experience Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) labels Nov 5, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

@pmuellr
Copy link
Member

pmuellr commented Nov 6, 2020

Thanks for the bug report @Matt-Yorkley !

It looks like - at least on master - that this is a UI issue, in that the alerting form always displays Info for the log level, despite what it's actually set to.

I was able to change it from Info to Error via the UI, and see that the log messages were now at the error level. The UI continued to display the Info level though, even across page refreshes. At GET request of the alert also showed the expected Error level being set for the action.

@Matt-Yorkley
Copy link
Author

Ah yes, I see. It will be reset to info though if the alert is ever edited without manually re-setting the dropdown to the desired setting each time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants