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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...