All Apps and Add-ons

Splunk Add-on for Unix and Linux: What do I do if I get "/bin/splunk: No such file or directory" using the ./setup.sh command?

josefa123
Explorer

First, I install it on ubuntu server. When I use the command ./setup.sh this is what happens.

alt text

I don't know what should I do next. I already searched for different websites, but still I got no luck. If anyone could help, it would be so much appreciated.

0 Karma

ColinCH
Path Finder

http://docs.splunk.com/Documentation/UnixAddOn/5.2.3/User/Enabledataandscriptedinputs#Enable_the_dat...

Worked for me: $SPLUNK_HOME/bin/splunk cmd $SPLUNK_HOME/etc/apps/Splunk_TA_nix/bin/setup.sh

0 Karma

alacercogitatus
SplunkTrust
SplunkTrust

It looks like somebody Symlinked the splunk binary to the /bin folder.

Run this command:

sudo ln -s /opt/splunk/bin/splunk /bin/splunk

And then rerun the script.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...

Design, Compete, Win: Submit Your Best Splunk Dashboards for a .conf26 Pass

Hello Splunkers,  We’re excited to kick off a Splunk Dashboard contest! We know that dashboards are a primary ...

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...