All Apps and Add-ons

Add on which can be used to list the country name from client_ip

ranjyotiprakash
Communicator

Is there any add-on that can be used with my splunk app which can be able to list the country name from the client_ip ? And, I want to know how to package this add on with my app so that i can be able to use it in my app.

0 Karma
1 Solution

Ayn
Legend

Yes, the MAXMIND app provides this functionality: http://splunk-base.splunk.com/apps/22282/geo-location-lookup-script-powered-by-maxmind

It provides a custom lookup command - require users to install this separate app in order to have geoip lookup work.

View solution in original post

sdaniels
Splunk Employee
Splunk Employee

Change it to be sourcetype="firewall" | lookup geoip clientip | rename clientip AS client_ip. When you put the 'AS' in there it does not work but you can still rename the field.

You should now see the fields under field discovery like client_city, Client_country etc...that you can now use.

ranjyotiprakash
Communicator

Thanks ... it worked for me

0 Karma

Ayn
Legend

Yes, the MAXMIND app provides this functionality: http://splunk-base.splunk.com/apps/22282/geo-location-lookup-script-powered-by-maxmind

It provides a custom lookup command - require users to install this separate app in order to have geoip lookup work.

ranjyotiprakash
Communicator

i got the results

0 Karma

ranjyotiprakash
Communicator

Thanks a lot ...

0 Karma

Ayn
Legend

When you say you're not getting the correct results. What do you mean? Are you getting results, but not the results you expected? Or are you not getting new fields from the maxmind lookup at all?

0 Karma

ranjyotiprakash
Communicator

thanks for the answer..But, I am not getting the results. It is just showing the logs.
I am having client_ip field in firewall logs and I am using

sourcetype="firewall" |lookup geoip clientip AS client_ip

But, I am not getting the correct results.I want to know how to use this to get details with respect to an IP ?

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

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...