Building for the Splunk Platform

@route decorator - path was not found

Path Finder

Hi guys,

I've been putting together a custom Splunk module and encountered some trouble trying to make one of my module handlers methods available via a URI. I have been trying to make the method available by using the @route decorator as per the below.

def setAlarmState():'setAlarmState reached for alarm')

I am then trying to access this method via the following URL:


Any advice as to how this ought to be done would be great.

EDIT - My handler class inherits from ModuleHandler, if that information is of any use.


0 Karma

Path Finder

I wound up placing the additional end points into a controller class. This seemed to work fine, it would be nice to keep that code in the same class though.

0 Karma
Get Updates on the Splunk Community!

Splunk APM & RUM | Upcoming Planned Maintenance

There will be planned maintenance of the streaming infrastructure for Splunk APM and Splunk RUM in the coming ...

Part 2: Diving Deeper With AIOps

Getting the Most Out of Event Correlation and Alert Storm Detection in Splunk IT Service Intelligence   Watch ...

User Groups | Upcoming Events!

If by chance you weren't already aware, the Splunk Community is host to numerous User Groups, organized ...