All Apps and Add-ons

REST Modular Input terminates unexpectedly

yitzarad
Path Finder

Hi!

The REST API Modular Input App is really good!

However, I suffer from a situation where the application suddenly stops working. Well, The app itself does work, but the process which have to poll my REST API stops, and the only way to get it to continue polling, is to restart Splunk..

It happens when the site it have to poll is temporary down. I hold about 40 such input tasks, so this situation is likely to happen often.

When diving into the code, it seems that the "while True" catches very specific exceptions. In my case, requests.exceptions.ConnectionError is thrown from the first step (requests.get), so the whole loop is broken out.

Maybe, there should be a more robust mode (configurable), so no exception will break the loop?

0 Karma
1 Solution

Damien_Dallimor
Ultra Champion

Thanks for the feedback.

I just uploaded a new release incorporating your feedback , version1.0.5beta.

It should be available on Splunkbase in the next 30 mins.

View solution in original post

0 Karma

Damien_Dallimor
Ultra Champion

Thanks for the feedback.

I just uploaded a new release incorporating your feedback , version1.0.5beta.

It should be available on Splunkbase in the next 30 mins.

0 Karma

sivapuvvada
Path Finder

Hi Damien ,

I have installed this app on SH and i am not seeing any REST input under datainputs , Could you please help me on this ,

0 Karma

yitzarad
Path Finder

what a quick response! i'll test it in a day or two. thanks!

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!

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

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...