Conversion of field from string to int64


#1

I have some data that is being ingested via Logstash and then being passed to Kafka as an output. From Kafka the data is then being passed to InfluxDB.
I have a field which is ingested as a string, an example is as this "0.5.-109.116"
I need this field to be of int64 type instead of a string.
I see that I cannot convert this as needed via mutate/convert filter or change how it is stored on Kafka output.
What is the best way to convert this field type in Logstash?


(Magnus B├Ąck) #2

And what would the desired integer representation of "0.5.-109.116" be?


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.