No mapping found for [days] in order to sort on

At the beggining of this month I added a template and a new numeric field for an index, so the field doesnt exists in the previous months, when displaying an horizontal bar visualizations (even if I query the last hour or day) i get this error on the shards that the field doesnt exists.

No mapping found for [days] in order to sort on

I have tried to add a filter on the visualization to to force the query to a specific date range, but still trows me the error

image

Is there something I cant do to get rid of this error in the visualization?

Hi,

if you add a field, you need to go to "Management" > "Index Patterns" and use the "refresh" button on the rop right to refresh the field list for that index pattern. That way you can make Kibana aware of the new field.

Cheers,
Tim

Hi, thanks @timroes, I've already done that, the shards that give me error are from the previous months , where the field didnt exist

Could you look in the inspector (top menu, if you're in discover) when sending that request (or the shard error dialog, when on newer Kibana versions), and get the request that's actually send to Elasticsearch and paste it here?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.