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 Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...