All Apps and Add-ons

google maps: show foreign origin

genx
New Member

Good afternoon.
I am new to Splunk and need assistance with the google maps app.

I am logging postfix logs, and using MAXMIND, can create a graph with the top foreign sources which connect to our servers.
This is useful when visualizing compromised accounts.

I use the following search:
host="smtp" source="/var/log/mail" | rex field=_raw "(?\d+.\d+.\d+.\d+)" | lookup geoip clientip as ip | search client_country="*" NOT client_country="South Africa"

I would like to show these results as the top region connecting but i cannot get the google maps app to reflect the results of the search, even though the graph works fine.

your assistance would be appreciated

0 Karma
1 Solution

sdaniels
Splunk Employee
Splunk Employee

The field you are extracting seems to be 'ip' and that is what you'll need to pass to the geoip lookup.

...| lookup geoip ip | ... 

Also for your search after the lookup you do not need client_country="*" since it's already searching everything, just put your NOT expression.

| search NOT client_country="South Africa"

View solution in original post

0 Karma

sdaniels
Splunk Employee
Splunk Employee

The field you are extracting seems to be 'ip' and that is what you'll need to pass to the geoip lookup.

...| lookup geoip ip | ... 

Also for your search after the lookup you do not need client_country="*" since it's already searching everything, just put your NOT expression.

| search NOT client_country="South Africa"
0 Karma

genx
New Member

Thank you very much.
worked perfectly.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...