Splunk Dev

Custom streaming search command app inspect dependency under bin folder warning

wesleya
Explorer

We have a custom streaming search command written in python that works fine on a single instance, but ran into the following error in our cluster environment:

ImportError: No module named {a python python package we depend on}

We narrowed down the cause to the same problem described in this post: Custom streaming search command error

We implemented the suggested fix of moving all of our dependencies to the /bin directory so it would be available when our command is run across indexers. Everything now seems to work as expected in our cluster environment, however appinspect now gives us this warning:

check_splunklib_dependency_under_bin_folder
WARNING: splunklib is found under bin folder, this may cause some dependency management errors with other apps, and it is not recommended. Please follow examples in Splunk documentation to include splunklib. You can find more details here: https://dev.splunk.com/view/SP-CAAAEU2 and https://dev.splunk.com/view/SP-CAAAER3

Has anyone else run into something similar to the original problem I described? Are there any suggestions that would solve both the original problem and our new warning?

Labels (1)
0 Karma

to4kawa
Ultra Champion

$SPLUNK_HOME/lib/python3.7/site-packages

splunklib is usually here.

0 Karma
Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...