I wrote a conf file and when it reads my ip addresses from the DB it outputs them as an integer instead of the ip address.
I tried to do a mutate like the following:
filter {
mutate {
convert => { "sourceipv4" => "string" }
}
}
But it will still just output it to a string when I run it just in my console to see what the data going into elastic will be.
It originally was an IP address but when logstash brings the data over it is converting it to an integer. I wish I could share the outputy let me try to sanatize it and I will.
This does not sound right, as far as I know Logstash does not converts anything unless told to do so, but I'm not sure what input and filters you are using.
You will need to provide how the full configuration looks like.
Also, can you show some examples on how the value for those columns looks like in the MSSQL database?
Funnily enough, positive 1979695601 has a 31 bit representation, with leading 0.
So -1979695601 is 32 bits, leading bit one.
An IPv4 address is 32 bits.
-->
I dont think an IPaddress is being output by MSSQL. I don't believe there is a native IPaddress type in MSSQL, it can be represented lots of ways, one of which is a 32 bit integer.
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.