Dashboards & Visualizations

How to make a world map dashboard using logs from an email server with no IP addresses?

emixam3
Explorer

Hi,

I want to make a world map dashboard with my logs from a mail server.
In the logs, I don't have IP's, but email addresses for sender and receiver. I want to see on a world map, for example, if the receiver address is toto@msn.de, then I should see a dot in Germany.
I find many things about IP geolocalization, but, as I say, I don't have IP's in my logs.
Any ideas?

Thanks

Max

0 Karma
1 Solution

yannK
Splunk Employee
Splunk Employee

The map tools rely on coordinates (latitude and longitude)
And the GeoIP tools rely on IPs, to convert them to coordinates. So except if you have addresses to convert to IP you will not be able to use GeoIP.

If you want to try to estimate the country based on the email (.de->germany, .com -> commores, .org -> oregon, etc...) as you see you will have to improvise for some domains.
You may create a lookup with the coordinates in GPS notation for each country capital and map the domain to it.
see http://www.latlong.net/countries.html

example of lookup table :

domain,country,lat,long
de,Deutschland,52.58219142652431,13.0517578125 

then use the geostats command, and a map visualization
see http://docs.splunk.com/Documentation/Splunk/6.3.2/SearchReference/Geostats

View solution in original post

yannK
Splunk Employee
Splunk Employee

The map tools rely on coordinates (latitude and longitude)
And the GeoIP tools rely on IPs, to convert them to coordinates. So except if you have addresses to convert to IP you will not be able to use GeoIP.

If you want to try to estimate the country based on the email (.de->germany, .com -> commores, .org -> oregon, etc...) as you see you will have to improvise for some domains.
You may create a lookup with the coordinates in GPS notation for each country capital and map the domain to it.
see http://www.latlong.net/countries.html

example of lookup table :

domain,country,lat,long
de,Deutschland,52.58219142652431,13.0517578125 

then use the geostats command, and a map visualization
see http://docs.splunk.com/Documentation/Splunk/6.3.2/SearchReference/Geostats

emixam3
Explorer

Ok thanks, that works for me.
I followed your example for a lookup file, that I put in $SPLUNK_HOME/etc/system/lookups/
I put in transforms.conf file ($SPLUNK_HOME/etc/system/local/):
[geoloc]
filename = geoloc.csv

And finaly use the lookup and the geostats command in research.

Thanks again!

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

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 ...