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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...