Thanks Ahmed, you are awesome.
I have this partially working. I know that it is doing a lookup in the CSV file when I try to get results because it was complaining quite a bit when I had a mismatched field title in the CSV.
However, neither of those fields are appearing in my searches. Here is what I have:
/data/splunk/etc/users/admin/search/lookups/dshield_processed.csv:
SourceIP,TotalReports
109.169.45.231,494447
91.218.160.70,346386
193.107.17.70,313808
[...]
/data/splunk/etc/users/admin/search/local/transforms.conf:
[dshield_processed]
filename = dshield_processed.csv
/data/splunk/etc/users/admin/search/local/props.conf:
[cisco:asa]
LOOKUP-http_auto_lookup = dshield_processed SourceIP AS dest_ip OUTPUTNEW
When I do a search such as the one above, the fields SourceIP and TotalReports are not shown on the list of selectable columns, although other data is returned. A query to create a table such as the below also shows no data in those fields:
sourcetype="cisco:asa" AND NOT (src_ip="10.0.0.1/8" AND dest_ip="10.0.0.0/8") AND NOT (src_port=53 OR dest_port=53) bytes_in>0 | table bytes_in src_ip src_port SourceIP dest_port TotalReports
Somehow those two new fields aren't being "added" to my list of possible fields. So it is close but I am still doing something wrong.
By the way, I added a couple IP addresses manually to the CSV file with some values so that I would get back some results, so I don't think its an issue of just not getting any hits. Unless perhaps it is not re-reading the CSV file? (I have been restarting the service after I edit it).
Thank you again for taking the time to help with this. I will write this up when it is working and share it back as a mini whitepaper or something.
... View more