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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Build the Future of Agentic AI: Join the Splunk Agentic Ops Hackathon

AI is changing how teams investigate incidents, detect threats, automate workflows, and build intelligent ...

[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 ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...