You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When moskito-central sends the producers information to elasticSearch (using v5.6.12), every field reaches elasticSearch as a String field, including number and date fields, which makes it basicly useless because kibana can't make any countable visualization over String fields. I don't know if elasticsearch requires us to send the fields with a specified type along with the field, or if its just a case of sending : 123 instead of "123" on the json fields.
EDIT: I just noticed that just sending 123 instead of "123" on the request json to elasticsearch is enough, for a provisory solution, I just edited the ElasticsearchStorage.httpProcessSnapshot() method to convert the stats to Map<String, Object> instead of Map<String, String>, and convert the number strings to bigdecimal,, then the gson.toJson() will convert the types correctly,,, ill try this soon for dates too
The text was updated successfully, but these errors were encountered:
When moskito-central sends the producers information to elasticSearch (using v5.6.12), every field reaches elasticSearch as a String field, including number and date fields, which makes it basicly useless because kibana can't make any countable visualization over String fields. I don't know if elasticsearch requires us to send the fields with a specified type along with the field, or if its just a case of sending : 123 instead of "123" on the json fields.
EDIT: I just noticed that just sending 123 instead of "123" on the request json to elasticsearch is enough, for a provisory solution, I just edited the ElasticsearchStorage.httpProcessSnapshot() method to convert the stats to Map<String, Object> instead of Map<String, String>, and convert the number strings to bigdecimal,, then the gson.toJson() will convert the types correctly,,, ill try this soon for dates too
The text was updated successfully, but these errors were encountered: