-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Unable to select index pattern when creating filters in Control Visualizations #62115
Comments
Pinging @elastic/kibana-app (Team:KibanaApp) |
Is there any ETA on the fix? |
Hi, Dose anyone knows any workaround for this issue ? |
Input Controls are currently experimental. We are planning on doing a major overhaul of them in a coming version. That said, I can think of a workaround, although it is pretty clunky. If you place the input controls on a dashboard with at least one visualization that uses the same non-default index pattern you can then Edit: In looking at this again, it makes sense that input controls aren't affected by filters at all. Controls are meant to affect the filter bar, not the other way around. Additionally, I can look into how easy this would be to fix. |
Hi @ThomThomson , thanks much for your reply. I had already tried the workaround you are suggesting but it seems that he controls dose not tale the filters implemented at dashboard level. |
See my updated comment above. I will keep this open, because applying changes from an input control to the filter bar in the editor results in a warning. If index patterns were propagated to the filter bar correctly, this wouldn't happen. |
Hi @ThomThomson , however your second edit is a valid statement. I think there are situations where this is realy nescsary, for example within metricbeat there are loads of different kind of servers and event.type combinations. I for one wanted a list of host.hostnames with an event.type of mssql but i get a list of all the hosts within metricbeat index. you cannot define a clear subset of stuff without doing filtering on a control this way. |
@search-tool, the new controls system reacts to the dashboard filters. It will be available sometime in 8.x! Additionally, we are considering adding local filtering functionality to the new system so that you can write a query / a series of filters which only applies to one dropdown. See this comment for more info. |
I was trying to filter the select boxes to for example only show services of one type. The workaround was to create a new option list with the filter values selected, then set this as the first box parent. Not elegant but works. |
Hi @llermaly, thx |
@StefanSa I found an even better workaround, just create a filtered alias with the values you want to show, then point the controller to that alias. https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-aliases.html POST _aliases |
Ahh perfect, thank you. |
OK, i'm struggling a bit with this solution with |
Closing this in favour of #140112. |
Kibana version: 7.6
Elasticsearch version: 7.6
Server OS version: N/A
Browser version: N/A
Browser OS version: N/A
Original install method (e.g. download page, yum, from source, etc.): Elastic Cloud
Describe the bug: When creating a new visualization "Control", I can choose the index pattern I want in the options of the control but if I need to add certain filter, I only can do it using the default (preferred) index pattern that may not match with the index pattern used in the control, so it's not possible to filter the documents.
Steps to reproduce:
Expected behavior: The index pattern of the filter should be able to be changed or identify the index pattern from the controls' options and providing the list of the fields of all the index patterns used
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
The text was updated successfully, but these errors were encountered: