LukeMurphey / splunk-syndication-input

A Splunk app for reading syndication feeds (RSS, ATOM, RDF)
GNU General Public License v3.0
7 stars 8 forks source link

Does not work in Splunk 8.1.0.1 #3

Closed dmuth closed 3 years ago

dmuth commented 3 years ago

Hi,

When I try using the latest version (1.2.4, downloaded from https://splunkbase.splunk.com/app/2646/) of Syndication Input in Splunk 8.1.0.1, I get this error:

image

Looking through splunkd.log, I see the issue is this:

11-22-2020 20:45:41.044 +0000 ERROR ModularInputs - <stderr> Introspecting scheme=rest:    File "/opt/splunk/etc/apps/rest_ta/bin/rest.py", line 298
11-22-2020 20:45:41.044 +0000 ERROR ModularInputs - <stderr> Introspecting scheme=rest:      except Exception, e:
11-22-2020 20:45:41.044 +0000 ERROR ModularInputs - <stderr> Introspecting scheme=rest:                      ^
11-22-2020 20:45:41.044 +0000 ERROR ModularInputs - <stderr> Introspecting scheme=rest:  SyntaxError: invalid syntax
11-22-2020 20:45:41.044 +0000 ERROR ModularInputs - Introspecting scheme=rest: script running failed (exited with code 1).
11-22-2020 20:45:41.093 +0000 ERROR ModularInputs - Unable to initialize modular input "rest" defined in the app "rest_ta": Introspecting scheme=rest: script running failed (exited with code 1)..
1

My guess would be that this script was written for Python 2, and my understanding is that Splunk recently switched to Python 3, as Python 2 is EOL.

Please let me know if you need any help testing a fix, thanks!

-- Doug

dmuth commented 3 years ago

You can disregard--I was downloading the newest version of the app, but goofed up in my shell script and was using the old version still. Sorry, my bad.