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

Extra long index names prevent Time Field from being selected when creating Index Threshold Alert #64788

Closed
jeffvestal opened this issue Apr 29, 2020 · 4 comments · Fixed by #69051
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)

Comments

@jeffvestal
Copy link

jeffvestal commented Apr 29, 2020

Kibana version:
7.7

Elasticsearch version:
7.7

Browser version:
Chrome 83

Browser OS version:
Mac

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

Describe the bug:
In the Alert UI fly out (from the management section) when you select a very log index name or pattern for the index source the "Indices to query" box blocks the "Time Field" selector. Barrier seems to be around 67 characters.

This came up when I was selecting a ML anomalies index as the source. The index was auto named and created when I created a "categories" ML job through the Logs UI.

Steps to reproduce:

  1. Create a new Index threshold Alert
  2. Select a very log index name or pattern
  3. Time field picker box will be pushed off screen as you type and when you select an index the time piker box will not be visible or selectable

Expected behavior:
I would expect either the time picker to be pushed to the next row, or the index name to be truncated. Somehow allowing the time field to be selected.

Screenshots (if relevant):
Anomaly index pattern chosen and the Time Picker box is no longer on screen

Screen Shot 2020-04-29 at 8 38 02 AM

Clicking out of the selector shows the error of no time field,
Screen Shot 2020-04-29 at 8 38 14 AM

Here you can see the time field being pushed off screen
Screen Shot 2020-04-29 at 8 44 16 AM

Errors in browser console (if relevant):

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

Any additional context:
Most indices will not be this long, but since this was an index auto created from the Logs UI / ML integration I could see some users running across this issue when trying to create ML alerts with the new Alerting framework until an actual workflow is created.

@jeffvestal jeffvestal changed the title 67 Extra long index names prevent Time Field from being selected when creating Index Threshold Alert Apr 29, 2020
@jeffvestal jeffvestal 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 Apr 29, 2020
@elasticmachine
Copy link
Contributor

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

@mdefazio
Copy link
Contributor

mdefazio commented May 5, 2020

Here are some initial thoughts on fixing this.
If we show truncated within the form and combo box, we can avoid breaking layout changes. And would then show the full index (or other value) name via tooltip.
We could also switch the forms within the popover to be compressed and hopefully minimize the amount of case where this happens.
image

@pmuellr
Copy link
Member

pmuellr commented May 6, 2020

looks good to me!

@mikecote mikecote added this to To-Do (Ordered by priority) in Make it Action May 7, 2020
@andreadelrio
Copy link
Contributor

I can take care of this one

@andreadelrio andreadelrio self-assigned this May 11, 2020
@mikecote mikecote moved this from To-Do (Ordered by priority) to In Progress in Make it Action May 11, 2020
@mikecote mikecote moved this from In Progress to In Review in Make it Action Jun 12, 2020
Make it Action automation moved this from In Review to Done (Ordered by most recent) Jun 15, 2020
@kobelb kobelb added the needs-team Issues missing a team label label Jan 31, 2022
@botelastic botelastic bot removed the needs-team Issues missing a team label label Jan 31, 2022
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 Feature:Alerting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)
Projects
No open projects
Make it Action
  
Done (Ordered by most recent)
Development

Successfully merging a pull request may close this issue.

6 participants