Splunk Search

Why am I getting error "libssl.so.1.0.0: cannot open shared object file: No such file or directory" trying to implement a custom search command in Python?

joseph_caraccio
Engager

Trying to implement custom search commands on Python and just have been crazy frustrated with the amount of issues I have run into when trying to do so.

My system only has python 2.6 so I had to use Splunk's bundled one.
Here is the command I am running:
"/apps/splunk/bin/python generatehello.py EXECUTE count=5 < /dev/null"

And in return I get

ImportError: libssl.so.1.0.0: cannot open shared object file: No such file or directory

Any idea of what I should do to fix this? Normally I would just google but it seems like noone has really ever had this problem..

Here is the full error message:

alt text

bishtk
Communicator

Try setting the Lib file path
By default the script is taking /usr/lib path.
Check if that lib file is installed under /usr/lib or /opt/splunk/lib/ or any other path?
Either the lib file needs to be installed under default path /usr/lib or the LIB path needs to be set as below
export LD_LIBRARY_PATH=/opt/splunk/lib/:$LD_LIBRARY_PATH
NOTE: This will change lib path temporarily but in order to change it for permanent you need to add the line under .bashrc file of user with which the pythin script will get executed.
Hope this helps.

muralimadhavan
Explorer

Thanks it worked for me!

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...