After I install SA-ldapsearch module in my splunk ,I use this search command "|ldapsearch domain=SPL search="(objectClass=user)" ,but I got this error message...
process = Popen(javaargs)
File "/opt/sbox/splunk/etc/apps/SA-ldapsearch/bin/ldapsearch.py", line 63, in
File "/opt/sbox/splunk/lib/python2.7/subprocess.py", line 1308, in executechild
File "/opt/sbox/splunk/lib/python2.7/subprocess.py", line 711, in init
External search command 'ldapsearch' returned error code 1.
OSError: [Errno 2] No such file or directory
Traceback (most recent call last)
can anyone help me to solve this problem !!!!
I had a similar issue recently, and mine was due to java not being in the path.
Is it creating a SA-ldapsearch.log (or similar log file) in your Splunk logs directory? If not make sure you have JAVA_HOME set and java in your PATH (think it needs jdk1.7). If there is a log, that should give more info as to the error
HadoopConnect.log licenseusage.log scheduler.log splunkdaccess.log.2
MSADAppChecker.log licenseusage.log.1 scheduler.log.1 splunkdaccess.log.3
audit.log licenseusage.log.2 scheduler.log.2 splunkdaccess.log.4
audit.log.1 licenseusage.log.3 scheduler.log.3 splunkdaccess.log.5
audit.log.2 licenseusage.log.4 scheduler.log.4 splunkdstderr.log
audit.log.3 licenseusage.log.5 scheduler.log.5 splunkdstdout.log
audit.log.4 metrics.log searchhistory.log webaccess.log
audit.log.5 metrics.log.1 sosftr.log webaccess.log.1
btool.log metrics.log.2 splunkd-utility.log webaccess.log.2
djangoaccess.log metrics.log.3 splunkd.log webaccess.log.3
djangoerror.log metrics.log.4 splunkd.log.1 webaccess.log.4
djangoservice.log metrics.log.5 splunkd.log.2 webaccess.log.5
entity.log migration.log.2014-04-23.06-09-06 splunkd.log.3 webavailabilitymodularinput.log
exportmetrics.log python.log splunkd.log.4 webservice.log
firstinstall.log python.log.1 splunkd.log.5 websitemonitoringresthandler.log
jbridge.log pythonmodularinput.log splunkdaccess.log websitemonitoringrest_handler.log.1
I can not find SA-ldapsearch.log........
splunk@A2000 ~ $ java -version
java version "1.7.045"
Java(TM) SE Runtime Environment (build 1.7.045-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
this is my java version result.....
I had the same issue, it seems that the ldap search app requires java.
For me it was as easy as installing java on my systems. I am running Redhat so
yum install java did the job for me.
So just check how to install java for your respective OS.
Important: The SA-ldapsearch supporting add-on for Active Directory requires the Java Standard Edition Runtime Environment version 1.7 or later. Make sure you have installed this Java runtime environment prior to installing the SA-ldapsearch supporting add-on.
Hope this help.