Hi, logstash does not influence how the mappings are done on elasticsearch side. That is where your solution lies.
To make your field work correctly as a number you need to update the mapping on your indices and optionally update the dataview to recoginize the number as bytes.
Index mapping
You need to either update or create your index template and add a mapping field to it, based on your examples it should look like (addition):
Once you have an index rollover (new index as mappings are only applied upon index creation) you can update the format in the dataview. When editing the dataview find your field and update the format to a byte:
Summary
Currently the field is behaving as a text which means the > and < operators will not function as expected. Updating the mapping and optionally the format will allow you to correctly use your field
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "mapper [bytes] cannot be changed from type [text] to [float]"
}
],
"type": "illegal_argument_exception",
"reason": "mapper [bytes] cannot be changed from type [text] to [float]"
},
"status": 400
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.