alerting-kibana-plugin icon indicating copy to clipboard operation
alerting-kibana-plugin copied to clipboard

Monitoring UI does not allow wildcards in index names

Open Jon-AtAWS opened this issue 5 years ago • 7 comments

Creating an alert, in the Define Monitor portion of the page, you specify the index. When I start typing, I get a drop down with possible choices that are specific indexes. I want to run the alert over an index pattern, like logs-*. I need to have that choice in the menu.

If, I type logs-* into the text box, and escape from the drop down, then the UI errors, asking me to set an index name.

image

Jon-AtAWS avatar Apr 01 '19 22:04 Jon-AtAWS

Hi Jon, please take a look at the answer here.

When completing the index name, hit enter and the UI will no longer show an error.

lucaswin-amzn avatar Apr 01 '19 23:04 lucaswin-amzn

Can you add what the user has typed so far, with a trailing * to the dropdown in position 0? Then if I click that I won't see the error.

Or remove the error if I typed a wildcard that matches one or more of my indexes.

Jon-AtAWS avatar Apr 01 '19 23:04 Jon-AtAWS

Hi Jon,

Did this help text not show up for you? Screen Shot 2019-04-01 at 4 44 55 PM

dbbaughe avatar Apr 01 '19 23:04 dbbaughe

Better!

It would be great to avoid the error state entirely, since it's not really an error.

Jon-AtAWS avatar Apr 02 '19 00:04 Jon-AtAWS

Hi Jon,

In this case, typing and hitting esc is an error since you did not actually select (or create) an option and this is field requires at least one option selected. Perhaps it's a bit confusing since it's not just a text input box, but rather a combo box that Elastic has created. This would be the equivalent of selecting an input and then moving on without typing anything. We can definitely make the error text more helpful in this situation so the user can easily remedy the problem.

dbbaughe avatar Apr 02 '19 00:04 dbbaughe

This is a minor point, and I'm happy with the solution proposed: better error text and messaging in the combo box to hit enter.

To nitpick, though, if I've typed something then I have "made a selection". The widget should allow either user-entered text or a selection from the attached menu. Minor point, but I disagree that typing something and hitting escape is an error on my part. The text box on Kibana's "Management" page for selecting an index pattern works this way - it's a text box and Kibana also gives me an auto-updated list of possible matches I can click on. It would be more consistent to have that experience.

Jon-AtAWS avatar Apr 02 '19 16:04 Jon-AtAWS

Yes, that is true for Kibana's "Management" page because it only allows you to select one index. This UX for Alerting allows you to select multiple indices which means we need you to explicitly select the indices. If this looks to still be an issue after better messaging then perhaps we can revisit with a different UI component.

Thanks!

dbbaughe avatar Apr 02 '19 17:04 dbbaughe