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

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...