All Apps and Add-ons

Can I add a csv lookup file to resolve IPs to domains in realtime?

robnewman666
Path Finder

I have added a csv file of the top 1 million domains in /opt/splunk/etc/system/lookups and then added a transforms.conf pointed to that file but I don't see any proof that this is working - ive restarted Splunk as well as amending the props.conf (in local) to reflect the stanza I used in transforms. Any help in this area is appreciated. I am also trying to get the domains from Stream data.

0 Karma
1 Solution

493669
Super Champion

follow these steps to create csv lookup to be globally available:
1. The CSV file must be located in $SPLUNK_HOME/etc/system/lookups
2. Add a CSV lookup stanza to transforms.conf:
[<lookup_name>]: The name of the lookup table.
filename = : The name of the CSV file that the lookup references.
so it will look like for ex.:

   [lookup_name]
   filename = filename.csv
  1. (Optional) Check permission in Settings > Lookups > Lookup table files
  2. Restart Splunk Enterprise to implement your changes.

Refer this: http://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/ConfigureCSVlookups#Create_a_CSV_lookup
After lookup is set up run spl query: |inputlookup lookup_name.csv

View solution in original post

0 Karma

493669
Super Champion

follow these steps to create csv lookup to be globally available:
1. The CSV file must be located in $SPLUNK_HOME/etc/system/lookups
2. Add a CSV lookup stanza to transforms.conf:
[<lookup_name>]: The name of the lookup table.
filename = : The name of the CSV file that the lookup references.
so it will look like for ex.:

   [lookup_name]
   filename = filename.csv
  1. (Optional) Check permission in Settings > Lookups > Lookup table files
  2. Restart Splunk Enterprise to implement your changes.

Refer this: http://docs.splunk.com/Documentation/Splunk/7.0.1/Knowledge/ConfigureCSVlookups#Create_a_CSV_lookup
After lookup is set up run spl query: |inputlookup lookup_name.csv

0 Karma
Get Updates on the Splunk Community!

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...

Data-Driven Success: Splunk & Financial Services

Splunk streamlines the process of extracting insights from large volumes of data. In this fast-paced world, ...