I have recently set up Graylog and started loading data to it. My messages have a field named “relay_received_datetime” which is recognized as a “date”.
When I try to sort based on this field, I get an error:
{
“type”: “DetailedError”,
“message”: “Unable to perform search query\n\nNo mapping found for [power_in_volts] in order to sort onNo mapping found for [relay_received_datetime] in order to sort on”,
“details”: [
“No mapping found for [relay_received_datetime] in order to sort on”,
“No mapping found for [relay_received_datetime] in order to sort on”
]
}
I went ahead and did: curl -XDELETE 'http://localhost:9200/*', then sent one message and checked that the type in graylog was appearing as “date”. Yet, the problem persisted.
Also note that I have also tried with other fields (eg. “integer” fields), with the same error, so I do not think this is a type issue, but some sort of indexing problem.