By new queries, I mean I want to list only domains that haven't been earlier queried by the same src_ip. And I want to see the count of the number of times it was queried. I include the _time stats so that it (hopefully) offers me an easy reference to reach back on when I compare whether or not it was contacted before. For the mvexpand option you provided thank you. This helped. For the final question you asked along with the information you provided, yes. Once I've identified the new queries that have been reached by the individual src_ip, I would want to do an inputlookup append to the lookup file. If everything is successful, I will modify the search query to do a tstats search instead for optimization purposes. The problem I'm currently having is trying to do a lookup and extracting the needed fields. For example, earlier I mentioned how I believed the "best" way to do it (the only way I've done it before) is to go by _time. So I currently have a query like this: Base Search | stats earliest(_time) as "earliest" count by src_ip,query | rename src_ip as "Host", query as "Query" | mvexpand Query | inputlookup append=t file.csv | stats min(earliest) by Host,Query | outputlookup file.csv | eval isOutlier=if(earliest >= relative_time(now(), "-1d@d"), 1, 0) | convert ctime(earliest) | where isOutlier=1 Output: No Results The attempted goal of this query is to show me the outliers or "new" queries for each IP. However there's 2 -3 flaws here. 1. The line | stats min(earliest) by Host,Query is what's causing the No Results. The "Outliers" are still showing me previously queried domains. Though definitely not as many. 3. _time as I've said, isn't needed for the final results. I really only need the src_ip, new query, and count of the src_query hitting the new query. However based on a previous dashboard I created and research, this is all I have to go off of when referencing fields from a lookup. I'm attempting to modify the search now.
... View more