-
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
Visualize "field" is a required parameter #9571
Comments
Once I started tracking data and refreshed the fields, type is assigned and the dashboards work as expected. I suppose this could be considered working as expected, though it isn't a great user experience. |
Re-opening, as we should first verify whether this was working in 5.1. If it was, then this is a regression and something broke. If something did break, I am not sure yet if the bug is on the beats side or the kibana side. **Update: Not a regression. This exists in 5.1.1 |
|
I'm also use manual adding of index-patterns, visualizations and dashboards into So the problem is that you put wrong data in
And for Kibana devs: Or at least add some documentation about how and what need to add in |
Note that another user is running into this error with 5.1.1 and metricbeat dashboards, but I can't reproduce it. It also looks like the user who reported the issue with packetbeat dashboards is not able to resolve the issue, even after getting data and refreshing the field list (he actually notes that refreshing the field list caused the dashboard to subsequently fail). https://discuss.elastic.co/t/visualize-field-is-a-required-parameter-error/69536/7 |
Another case at https://discuss.elastic.co/t/5-1-1-discover-error/70940, on first glance not using beats data. |
And another report on discuss with a very simple setup: https://discuss.elastic.co/t/saved-field-parameter-is-now-invalid-please-select-a-new-field/71044 |
In the last two cases the error is being thrown on the Discover tab, so it might be being triggered by something else. I think this error appears for a variety of reasons. The reason it was happening on the visualize and dashboard tab is that a visualization was using a field that was not marked as searchable or aggregatable. I suspect something similar (perhaps yet another issue with the field_stats api not returning data), but I do wonder why it's being triggered on the discover tab. |
@stacey-gammon I could imagine that it happens for users that are upgrading to 5. E.g. they used a field that was valid in 4.x (before field stats were used) and now is not "valid" anymore. |
The field agg param is set as the default time field in the histogram at the top of the Discover results, so for users seeing this in Discover their timestamp field is probably marked as not-aggregatable. |
This likely won't be fixed by ES anytime soon: elastic/elasticsearch#22438 So we should come up with a workaround in Kibana because this is obviously affecting a lot of users in different ways. @critix would you mind elaborating on your use case here? What's the scenario in which you need to build visualizations on fields with no data? One possible solution: I'm thinking for fields that are missing from field_stats (in other words, missing data), we mark them with a "maybe" instead of true/false for searchable and aggregatable. For "maybe" fields we remove the early failure from the Field Agg Param. We could then display them with a note in the agg config editor's field dropdown saying something like "these fields may be aggregatable, use at your own risk". |
Discussed in Mendit Monday and confirmed this is a problem and we want to prioritize a solution. Ideally the solution would come from the elasticsearch side and we'd like to push forward on improving the field stats API. @spalger is going to follow up on elastic/elasticsearch#22438. |
Just ran into this when exporting Kibana objects from one 5.2 instance, and importing them into another one. I was able to work around it. Once I had some valid data in my indexes, I went to Management > Index Patterns, and refreshed the field list. That marked some of the fields as "searchable", which weren't that way before. Then I deleted and re-imported my objects. |
@stacey-gammon - FYI, I am also getting this problem on 5.4.0 when testing the logstash modules feature that we are writing now. |
@LeeDr What's there to discuss with this? Seems like something we need to fix |
@epixa Discuss how to fix it? I don't think anybody knows the solution yet. And/or a work-around if possible for people hitting it. |
The solution for most of these issues is to switch to the field_caps API: #11114 Aside from that, there are a couple scenarios where this error may occur and the user can fix it on their own:
@LeeDr I haven't tried your latest repro yet, so I don't know which scenario it falls under, or if it's something new. Once we merge the change to field_caps we should probably close this issue and open up new issues any time a new bug causes this error. This error just means "the field you've selected for this visualization is invalid" and can occur for any number of reasons. |
@Bargs the issue I hit was caused by a field that is not I guess there's at least 2 scenarios here.
|
Agreed, the error message could be better. And our handling of the scenario where a dashboard has 1 or more invalid saved objects could also be improved. We should probably create a new enhancement request for those tasks, or re-label this issue as an enhancement and create new issues for the legitimate bugs which can lead to this error. |
@Bargs Remembering that modules are a "Getting Started Quickly" or a "You are good to go, please don't edit anything (COTS)" solution - an index_pattern refresh when there is insufficient breadth of documents indexed will effectively edit the index_pattern. In this scenario, the user will only see the error message if:
This hints at a disconnected index_pattern or with RBAC/Workspaces no edit permissions. |
This issue was happening to me because the date field I selected had no data in it (all values where null). Selecting another date field with non-null values solved the problem. |
@seliver - thanks for your comment. This was my issue as well! |
This issue has been resolved. |
I am seeing this issue in ELK 5.6, using the packetbeat import-dashboard script. I've tried various tweaks I've found in the forums but can't find a general solution other than fixing a visual's settings one at a time. An example would be the "Connections over time" visual in "Packetbeat Flows" dash. It ships a visState like:
I went to edit the visual, and selected the metric field to be |
Hi Adam, I was able to resolve the issue by editing the JSON code for my dashboard panels, for I had to do this for every panel in the Viz to fix the problem. Fatema. |
Running into this very frequently running 6.0.0-rc-1. No imported dashboards or indexes, everything was created on 6.0.0-rc1. Throwing the error constantly on the visualize page, as well as when turning on and off a filter on Discover. I have quite a few index patterns generated from logstash, packetbeat, metricbeat, etc. Will hopefully find time to dig in and figure out what the issue is. |
@spanishgum I'm trying to reproduce this. I started with a fresh 5.6 installation then ran the import dashboards script in packetbeat. After that, I started packetbeat and I'm able to load all visualizations and see the appropriate data. Are there more steps involved? |
Hi. I have just updated from Kibana 4.5.4 to 6.0.0 and Elasticsearch 2.3.4 to 6.0.0. The data that the imported objects are creating dashboards for is in the logstash-* format. Is there no way to transfer your dashboards from Kibana 4.5.4 to 6.0.0? |
I have not run into this issue recently. Has anyone else on the latest versions of Kibana? I'm inclined to close this, and wait to see if more bugs reports come in. If so, we can address each one individually, since the original issue was actually fixed. If anyone feels this is in error, please feel free to comment or re-open. |
I'm also getting this on the latest versions, pretty similar to what @f-eric said |
happened again in ELK, version 7.6. Any help? |
@apuppy Did you only notice it after upgrading? If so, from what version? |
The error disappeared when i rerun the following command:
Still don't know why, maybe because of the fields from beats not synchronized to the elasticsearch. |
I get this alot if i use just "*" as the index pattern to "catch-all" the indexes in order to make some visualizations. It becomes unusable |
Still getting this quite frequently. Seems to be related to a saved search. Running 7.7.0. |
Happening in master, using an imported packetbeat dashboard (imported via packetbeat 5.0)
Investigating...
The text was updated successfully, but these errors were encountered: