We have created the custom REST endpoints and its working in Splunk server 8.1.3.But same REST end point is not working another splunk server and it show "404 not found"
working splunk server:
Splunk Enterprise
Version:
8.1.3
Build:
63079c59e632
Server:
PC-317YLL3
Products:
itsi
not working splunk server:
Version:
8.1.3
Build:
63079c59e632
Server:
PC-6SNVCL3
Could it be that your REST end point is somehow dependent on ITSI?
how we get those info...can you pls tell where to check
App is installing in new splunk server with out any issue but Custom REST Endpoints only not showing
You have moved the app from a server with ITSI to a server without ITSI. The permissions might be tied to a role specific to the ITSI app which might not exist on the new server. Look into your app.conf file for hints.
I've never developed custom endpoints but the 404 still makes me think of a permissions issue. Here is a link to developers explanation of permissions. Calls out specifically authorize.conf and restmap.conf files as requirements.
I would focus on roles and script folder locations as leading causes of 404 not found.
https://dev.splunk.com/enterprise/docs/devtools/customrestendpoints/customrestmanageaccess/No module named 'splunklib'...this error is coming.so,endpoints are not mapped...
can you pls help how to fix this error though we have bundled the splunk libraries
Could you tell more about those environments and your app?
If your app is using python2 and the another splunk server is 9.x then there is no python2 only python3. Also (if I recall right) 8.2.x has python3 as a default, but 8.1.x has still python2 as default one.
No module named 'splunklib'...this error is coming.so,endpoints are not mapped... can you pls help how to fix this error though we have bundled the splunk libraries
This means that you haven't Splunk Python SDK on your new environment. Usually this is under each app time by time it could be also globally shared from some other apps. Probably this is done on ITSI?
You could found instructions easily by Google. But develop and test that app 1st on your test environment and when it’s ready then install it as an app to your production.