I send windows eventlogs and linux syslog messages to logstash which then sends them into elasticsearch. Most of the time everything works great, but once in a while it seems some messages get sent in that mess up searching in elasticsearch. When this happens a search returns shard failures with this error:
Field data loading is forbidden on StartTime
I checked the "type" of StartTime on all of the indexes and most have it set (properly) to:
"StartTime": {
"format": "strict_date_optional_time||epoch_millis",
"type": "date"
but some have the field with a type of "string". Which is what appears to be breaking the searches.
How can I fix this? How can I force StartTime to be of type date? How can I find what messages have the StartTime field with the "string"?
Thank you!