All Apps and Add-ons

API key required for Google Maps Add-on


We have an internal dashboard that has been using the Google Maps app. We are now getting the below message:

Oops! Something went wrong.
This page didn't load Google Maps correctly. See the JavaScript console for technical details.

The Javascript console shows "Google Maps API error: MissingKeyMapError";

It seems that Google now requires an API.
Have others encountered this?

Where exactly should the key be added in the app?


For some unknown reason, this error has gone away and the maps now loads normally (6.2).
Since I haven't tested any of the given answers, I'll just vote for them and leave the question unanswered.

0 Karma



This got me most of the way there. I'm running Splunk v6.4.2 and from what I have read Google Maps is not officially supported under v6. I attempted the above fix but the maps would not load but instead hung on "Initializing maps". After looking through some browser console output I saw that the initMap function was not found. I then changed the s.src string to this:

s.src = "";

Maps now load and I'm able to map the source IPs of my firewall drops onto a map. Very cool!

Path Finder

thank you , it is bother me long time

0 Karma


Hey sc0tt! I think I may have found it. I was troubleshooting the same issue you were as well. Here is what fixed it to me.

You have to modify the GoogleMaps.js file at $SPLUNK_HOME/maps/appserver/modules/GoogleMaps/

Look for this line in the javascript file:

s.src = "//";

Replace it with:

s.src = "<YOUR_API_KEY>&callback=initMap";

You will need to have an API Key already to insert in the link, but it should work. I was able to load the Google Maps after I replaced this and restarted Splunk.

Get Updates on the Splunk Community!

Streamline Data Ingestion With Deployment Server Essentials

REGISTER NOW!Every day the list of sources Admins are responsible for gets bigger and bigger, often making the ...

Remediate Threats Faster and Simplify Investigations With Splunk Enterprise Security ...

REGISTER NOW!Join us for a Tech Talk around our latest release of Splunk Enterprise Security 7.2! We’ll walk ...

Introduction to Splunk AI

WATCH NOWHow are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. ...