Hi everyone!
Something strange happens to me.
I'm trying to see if a source ip matches a pattern I indicate. The ip is 100.44.1.128 and it tells me that it matches "^10.*"
How is it possible?
if [IPorigen] =~ "^10.*" or [IPorigen] =~ "^127.0.*" or [IPorigen] == "0.0.0.0" or [IPorigen] =~ "^192.168.*" {
mutate {
add_tag => ["IP interna"]
}
}
Thanks for the explanation and your code suggestion. 10\ does not work correctly. It detects "10" in other parts of IP address and the result is even worse
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.