Splunk Search

ipinfo

ismail_salma198
Explorer

I am executing a query in splunk which is below :

 

| makeresults | eval ip="$ip$" | makemv delim="," ip | mvexpand ip | ipinfo ip [ search "10.19.10.10", "%ASA-6-722023", dest="*" | fields dest | rename dest as ip]

 

but it is giving me following error

10 errors occurred while the search was executing. Therefore, search results might be incomplete

  • Unrecognized option: ip=103.208.69.136
  • Unrecognized option: ip=103.226.206.167
  • Unrecognized option: ip=103.96.43.249
  • Unrecognized option: ip=106.193.34.105
  • Unrecognized option: ip=117.221.92.44
  • Unrecognized option: ip=182.70.78.160
  • Unrecognized option: ip=27.97.140.72
  • Unrecognized option: ip=49.36.37.0
  • Unrecognized option: ip=49.36.43.61
  • Unrecognized option: ip=68.228.83.221

 

I have installed IPINFO app on splunk to get the carrier information. 

Labels (1)
Tags (1)
0 Karma
1 Solution

scelikok
SplunkTrust
SplunkTrust

Hi @ismail_salma198,

Your subsearch result format is not suitable for ipinfo command. You don't need to use subsearch.

Please try below; please use a specific index on your searches to help Splunk run faster

 "10.19.10.10" "%ASA-6-722023" dest="*" 
| ipinfo dest

 

If this reply helps you an upvote and "Accept as Solution" is appreciated.

View solution in original post

493669
Super Champion

@ismail_salma198 
have you made below configuration as mentioned https://splunkbase.splunk.com/app/4070/#/details 

-------------- Configuration ------------

Just update ip_info_setup.conf in $SPLUNK_HOME/etc/apps/ip_info/local/

[api_configuration]
api_url = https://ipinfo.io/
token = <your token here>

and restart Splunk

0 Karma

scelikok
SplunkTrust
SplunkTrust

Hi @ismail_salma198,

Your subsearch result format is not suitable for ipinfo command. You don't need to use subsearch.

Please try below; please use a specific index on your searches to help Splunk run faster

 "10.19.10.10" "%ASA-6-722023" dest="*" 
| ipinfo dest

 

If this reply helps you an upvote and "Accept as Solution" is appreciated.

ismail_salma198
Explorer

Ur given solution worked.  Much much appreciated. Thanks alot

 

Regards

Ismail Kalolwala 

0 Karma

ismail_salma198
Explorer

It works awesome Thank you man. 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...