All Apps and Add-ons

How to utilize Google API key for Maps+

kiddsupreme
Explorer

This may be a simple question, but I have been unable to find an answer as of yet. I need to know how to use a Google API key in Maps+. Currently, when I try to do something like Street View, I get a pop-up saying :

API Key Failure
Failed to get API key for user: , realm: undefined - Verify credentials and try again.

alt text

I have a API key; I just need to know where to put the information so I can get it to work. Any assistance would be appreciated.

0 Karma
1 Solution

shaskell_splunk
Splunk Employee
Splunk Employee

As previously stated, just download - https://splunkbase.splunk.com/app/4013.

Create a username that will be the API Key User and enter the API Key as the password. From there, just reference the API Key User in the format menu of the viz.

Format Menu -> Google Places -> API Key User

Optionally, you can specify a realm when creating the API Key User with the REST storage/passwords Manager for Splunk. You don't need a realm, but if you specify one, you'll need to put it in the API Key Realm field. The realm is only needed for storing multiple passwords with the same username so they don't collide.

View solution in original post

shaskell_splunk
Splunk Employee
Splunk Employee

As previously stated, just download - https://splunkbase.splunk.com/app/4013.

Create a username that will be the API Key User and enter the API Key as the password. From there, just reference the API Key User in the format menu of the viz.

Format Menu -> Google Places -> API Key User

Optionally, you can specify a realm when creating the API Key User with the REST storage/passwords Manager for Splunk. You don't need a realm, but if you specify one, you'll need to put it in the API Key Realm field. The realm is only needed for storing multiple passwords with the same username so they don't collide.

View solution in original post

kiddsupreme
Explorer

Format Menu -> Google Places -> API Key User

This was what I was looking for. I had everything else in place; just didn't know where to put the API Key User. Thanks for the assistance on this. I appreciate it.

0 Karma

PavelP
Motivator

Hello @kiddsupreme

https://github.com/sghaskell/maps-plus/blob/master/README.md

API Key Storage
API keys for use with Google Places search, Bing Maps and the Google Streetview comapnion viz must be stored in Splunk's storage/passwords REST endpoint. Every user who needs access to a key must have the list_storage_passwords capability enabled for their role. Set ACL's on credentials to narrow the scope of who can access them. Download and install my REST storage/passwords Manager for Splunk to make this process painless.

https://docs.splunk.com/Documentation/Splunk/8.0.3/RESTREF/RESTaccess#storage.2Fpasswords

https://splunkbase.splunk.com/app/4013/ REST storage/passwords Manager for Splunk

kiddsupreme
Explorer

I read that as well; however, I find the documentation lacking. What information goes where? At the very least, is there an example of what information goes where?

0 Karma

PavelP
Motivator
0 Karma
.conf21 CFS Extended through 5/20!

Don't miss your chance
to share your Splunk
wisdom in-person or
virtually at .conf21!

Call for Speakers has
been extended through
Thursday, 5/20!