Getting Data In

Unable to pass the value from CSV into kvlookup and return results

w344423
Explorer

Hi All, i need help and would understand can Splunk forward a value from CSV and compare the value in a lookup and return the col of that KV back into the main search. As I am having difficulties doing that with my expected search query, it always return nothing in the ProviderName, Country, CountryCode, IPEnd, IPStart fields

alt text

And this is the expected search query and with this search should produce the below results,

| inputlookup VPNNewVersion.csv
| fields user Internet_IP InternetIPToIntg
| appendcols
[| inputlookup GeoIPCountry
| where IPtoIntEnd>=InternetIPToIntg AND IPtoIntStart<=InternetIPToIntg
| table IPtoIntStart IPtoIntEnd Country CountryCode IPEnd IPStart]
| appendcols
[| inputlookup GeoIPASNum
| where IPtoIntEnd>=InternetIPToIntg AND IPtoIntStart<=InternetIPToIntg
| table IPtoIntStart IPtoIntEnd ProviderName]
| table user Internet_IP InternetIPToIntg ProviderName Country CountryCode IPEnd IPStart

alt text

Tags (3)
0 Karma

mstjohn_splunk
Splunk Employee
Splunk Employee

@w344423

If you want to try to get some immediate help for your question, you should join the 5000+ Splunk users in our public Slack Community chat. People ask each other for immediate help on there daily. You can share your question/link to your post there to see if anyone can take a stab at it.

You first have to request access through https://splk.it/slack Fill out the form, and once you receive the approval email from our Community Manager (usually the approval process may take a couple days), you can access Slack.com and ask for help in the #general channel.

0 Karma

w344423
Explorer

Thank you for this useful info. Awaiting for their approval now.

0 Karma

w344423
Explorer

Wondering if any kind soul here able to provide a solution or there are no solution to this. Been trying this for a while but nothing seems to work,

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...