Getting Data In

use an input csv file to pick up the values within while searching on splunk

saurabhkunte
Path Finder

Hello All,

This is what i want to achieve.
I have dhcp logs getting indexed to splunk.
Our virus scanners periodically alert us of workstation ip addresses which have virus infections. I want to find out associated machine names with these ip addresses
I can have an input csv file consumed by splunk. Now i want to run a splunk search to identify workstation names that had those ip addresses over a given period of time and display them in a table.

E.g input.csv
192.168.122.14
192.168.123.46

The idea is to not search for each ip address manually to find put the associated wprkstation name which can be time consuming. How can i achieve this ?

I am hoping one of you can help me out here. Thank you

Tags (2)
0 Karma

somesoni2
Revered Legend

I believe you're looking for something like what is mentioned in below post.

http://answers.splunk.com/answers/61853/resolve-ip-address

This post provides you steps to setup automatic lookup from IP address to host name (reverse is possible too).

0 Karma

saurabhkunte
Path Finder

Hi ,

Thanks for your post. But this not what Will solve my problem.
1st off our workstations do not register themselves in dns. So doing a dns lookup as it's mentioned in the post does not help.

2nd i already have dhcp logs integrated in splunk. I just need a mechanism In which the splunk search reads the ip addresses from the csv file one by one searchs the dhcp logs to find the workstation names that were associated with each ip and at the end lists ip to workstation name in a table form. Thank you.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Build resilience for the agentic era: Join us at Splunk Go San Jose

AI is changing how organizations build, operate, and secure digital services. As teams adopt AI agents and ...

Manage Edge Processor pipelines end to end with APIs

This guide uses the Data Management APIs to create an Edge Processor, onboard one instance, deploy a pipeline ...

Splunk Brings Proof of Control to Digital Asset Transfers

Digital assets now sit inside the core of financial services. HSBC launched its Tokenized Deposit Service in ...