Hello,
I'm trying to build a search against our DNS records, and I have a CSV file that contains a whitelist of domains that I want to filter out from the results. The format of the file is just:
company.com
I've been attempting to use lookup/inputlookup for this purpose, but it doesn't seem to be working (which is probably more a lack of Splunk skills on my part). But essentially what I'm trying to do is:
index=dns | (if query field contains domain in whitelist_domains.csv then don't display it)
From what I've come across online, the topics are either using a csv file to only show the results that are in the file, or use the first column as the input and the second as the output. But nothing appears to cover what I'm trying to do; not including the results that are in the CSV file.
I'm also not sure if I have to do something like:
*.company.com
in the CSV file, since the queries are going to be more like: server.company.com
If I just do a search without the csv file:
index=dns | query!=*.company.com
It works as I expect it to, but then I have all these query!=..... entries in the search box.
Thanks ahead of time....
... View more