Installation

CLI auto-complete stopped working after 8.2. upgrade

sylim_splunk
Splunk Employee
Splunk Employee

Functionality worked before the upgrade. After upgrade logon shows "Tab-completion of "splunk <verb> <object> is available".

Like,

$ source ./setSplunkEnv
Tab-completion of "splunk <verb> <object>" is available.

 

But when utilized it returns "Splunk re-bash: completion: function 'fSplunkComplete' not found.

File is in "/opt/splunk/bin/setSplunkEnv" "/opt/splunk/share/splunk/cli-command-completion.sh" location and referenced files are both available.

Labels (2)
Tags (1)
0 Karma
1 Solution

sylim_splunk
Splunk Employee
Splunk Employee

The fixed version is yet to be announce as of this writing.

*** How to work around the issue ***

1. open "$SPLUNK_HOME/etc/system/static/splunkrc_cmds.xml",
2. Then go to the line 6232 and add merge-buckets for "cmd name"

6232 <cmd name="merge-buckets">

3. Save the change
4. source ./setSplunkEnv and verify it works.

View solution in original post

Tags (1)

sylim_splunk
Splunk Employee
Splunk Employee

The fixed version is yet to be announce as of this writing.

*** How to work around the issue ***

1. open "$SPLUNK_HOME/etc/system/static/splunkrc_cmds.xml",
2. Then go to the line 6232 and add merge-buckets for "cmd name"

6232 <cmd name="merge-buckets">

3. Save the change
4. source ./setSplunkEnv and verify it works.

Tags (1)
Get Updates on the Splunk Community!

SOC4Kafka - New Kafka Connector Powered by OpenTelemetry

The new SOC4Kafka connector, built on OpenTelemetry, enables the collection of Kafka messages and forwards ...

Your Voice Matters! Help Us Shape the New Splunk Lantern Experience

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

Building Momentum: Splunk Developer Program at .conf25

At Splunk, developers are at the heart of innovation. That’s why this year at .conf25, we officially launched ...