Installation

run splunk commands from linux home

splunkcol
Builder

Hello,

As everyone already knows the splunk commands like ./splunk status it is only possible to do it from the splunk OPT folder

I saw a video where someone executes that splunk status command without being in the Splunk OPT folder, could you tell me how to do it?

Thank you

Labels (1)
1 Solution

isoutamo
SplunkTrust
SplunkTrust

Hi

in linux there are three options for this. Use full path with command like /opt/splunk/bin/splunk or add that directory to your PATH like PATH=/opt/splunk/bin:${PATH} And third option is make an alias for splunk command which point to full path.

You should read more about using Linux command line to understand those better.

r. Ismo

View solution in original post

isoutamo
SplunkTrust
SplunkTrust

Hi

in linux there are three options for this. Use full path with command like /opt/splunk/bin/splunk or add that directory to your PATH like PATH=/opt/splunk/bin:${PATH} And third option is make an alias for splunk command which point to full path.

You should read more about using Linux command line to understand those better.

r. Ismo

Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...