Dashboards & Visualizations

Not getting latitude, longitude, city and country data after running iplocation command

Arpit_S
Path Finder

Hi,

We are not able to get latitude, longitude, City and Country fields after running Iplocation command, as these fields are required to show data on a map we are also not able to see anything in the visualization.

query:

| tstats summariesonly=t count FROM datamodel=Web WHERE Web.site="*" "Web.eventtype"=pageview GROUPBY Web.http_session,Web.clientip | iplocation Web.clientip

The clientip field is present in the data.

Is there a specific field required in data (apart from the ip field) in order to generate latitude, longitude, City and Country fields using iplocation command?

Please let us know.

Thanks.

0 Karma

Arpit_S
Path Finder

Hi,

I found the below link related to this issue,

https://answers.splunk.com/answers/123430/how-to-update-geoip-database-for-iplocation-command.html

Please have a look and let me know if this can help? And what exactly shall be done?

Thanks.

0 Karma

Arpit_S
Path Finder

Thanks, for the link to the article.

But while running the below query I am getting results ( as while searching for the sourcetype in the app I am getting values under the field clientip),

| tstats summariesonly=t count FROM datamodel=Web where Web.site="*" by Web.clientip | iplocation Web.clientip

while running my earlier posted query no result is showing up now, but was showing up earlier. And am able to see 38,537 events but no statistics.

Also I ran the below query and it showed events matching but no stats,

| tstats summariesonly=t count FROM datamodel=Web where Web.site="*" by Web.src

Although WA_session lookup in our instance has no data( which has the fields http_session). So in order to use http_session we need to add data to the file first? Or there is some search that populates this lookup?

Please let us know.

0 Karma

starcher
Influencer

clientip is not a field in the web data model. src is. Eventtype, http_sessions are not defined in it either. Unless you modified the model then reaccelerated it.

http://docs.splunk.com/Documentation/CIM/4.8.0/User/Web

| tstats summariesonly=t count FROM datamodel=Web where Web.site="*" by Web.src | iplocation Web.src
0 Karma
Get Updates on the Splunk Community!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...