Hello,
I'm working with Sentilo on a project called Smart UIB at the University Of Balearic Islands. We would like to connect Sentilo to Elasticsearch but we are having some issues.
Problem is Elasticsearch doesn't recognize data types from Sentilo properly, incoming timestamps from Sentilo are String type instead of date therefore Elasticsearch cannot index by time.
This is an example of data sended to Elasticsearch via Bulk API:
{ "index" : { "_index" : "<sentilo-{now/M{YYYY.MM}}>", "_type" : "data" }}
{"message":"13.6","timestamp":"22/05/2018T18:20:54",...,"time":1527013254785,"publisher":"UIB","publishedAt":1527013254785,...}
We cannot read either "timestamp", "time" or "publishedAt" keys as timestamps but as String, long and long.
Please, can you give us some advice on how we can connect Sentilo to Elasticsearch and what changes we may have to do in order to recognize timestamps?
Thank you.