Time-based visualization (Line type) doesn't follow the time picker values in the dashboard - regardless what time interval I select in the time picker has no impact on the visualization. Please take a look at the screenshot. Interestingly enough, that Timelion visualization adjusts according to time picker values.
Any ideas please how to fix this?
There are two possible reasons for this using the "line chart" visualization. Both issues can be resolved by switching to a different visualization type, either Lens or TSVB.
a. The index pattern that you are visualizing is missing a primary time field
b. The primary time field on the index pattern is not the same time field that you are visualizing
For the "line chart" visualization it's recommended to use the primary time field. For other visualizations you can use any time field.
Thanks! I have only one time field (which I use for date histogram in the chart). Looking at the index fields, I see it has date data type.
Is there a way to make it 'primary' as you mention in option 'a'?
You can tell it has a primary time field if it has this indication in the UI:
There are basically two options for updating this property of the index pattern:
-
If there is nothing in the index pattern that is customized, such as field formats or scripted fields, you can delete and create a new index pattern with the same ID. You are allowed to set the ID of the index pattern manually during creation, so you would follow the steps 1. Copy the ID of the existing pattern 2. Delete 3. Create a new index with the same name and ID, and assign a primary time field
-
You can do the same thing above using the Kibana saved object APIs. You can copy+paste the JSON, and then assign the
timeFieldName
property.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.