All Apps and Add-ons

While trying to get weather data into Splunk using Darksky API Modular input, I am facing the following error : "global name 'symbol' is not defined"

ygolla
Engager

While I am trying to get the weather data into splunk using Darksky API Modular input I am facing an error

---- Encountered the following error while trying to save : global name 'symbol' is not defined ----

name - DarkskyApi
aitkey - **********
longitude - -122.4233
latitude - 37.8267

0 Karma

rbolande
Explorer

ygolla,

It looks like there is an error in the Modular Input. I was able to get it to work by editing one of the files. Here is what I did:

1) Open $SPLUNKHOME/etc/apps/darksky_ta/bin/darksky.py in a text editor
2) Edit line number 48, changing the word 'symbol' to 'apikey'
3) Once modified, your file should look like this:

    def validate_input(self, validation_definition):
        apikey = str(validation_definition.parameters["apikey"])
        logging.error("apikey %s" % apikey)
        if len(apikey) < 1:

After that change, things seem to be working well for me....

Hope that helps!

0 Karma

r0b0t
Engager

sw33t, nice catch

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...