Here is a basic tstats search I use to check network traffic. | tstats summariesonly=t fillnull_value="MISSING" count from datamodel=Network_Traffic.All_Traffic where All_Traffic.src IN ("11.2.2.1","11.2.2.2","11.2.2.3") by All_Traffic.src, All_Traffic.dest, All_Traffic.action, All_Traffic.dest_port, All_Traffic.bytes, sourcetype
| sort -count I have a lookup file called "ip_ioc.csv" containing a single column of IPv4 addresses which constitute potential bad actors. Instead of searching through a list of IP addresses as per above, I want the tstats search to check the lookup file. How can I modify the above search? Here is a terrible and incorrect attempt at what I am trying to perform: | tstats count from datamodel=Network_Traffic.All_Traffic by All_Traffic.src, All_Traffic.dest, All_Traffic.action, All_Traffic.dest_port, All_Traffic.bytes, sourcetype
| lookup ip_ioc.csv ip_ioc
| where ip_ioc == All_Traffic.src OR ip_ioc == All_Traffic.dest
... View more