My data is like this illustration purposes only:
LocalIp | aip |
10.10.10.1 | 192.168.1.1 |
10.10.10.2 | 172.58.100.41 |
10.10.12.3 | 8.8.8.8 |
I am trying to search for any hits where LocalIP contains the aip address. In this example there is one hit
This is what I have but stuck at trying contains
| eval result=if(like(LocalIP, "%".aip."%"),"Match","")
This was the trick that worked
eval result=if('LocalIP' == 'aip',"Match", "")
This was the trick that worked
eval result=if('LocalIP' == 'aip',"Match", "")
How it that eval failing you?
Have you tried mvfind?
| eval result=if(mvfind(LocalIP, aip),"Match","")
eval is not matching correctly. the mvfind says it has an error.
Please elaborate.
How is the eval not matching correctly? What results do you get compared to what you expect?
What is the error reported by mvfind?