Splunk Search

Why is the walklex command not working?

julienoud
New Member

Hello splunkers,
I'm trying to visualize one of my .tsidx file with the splunk "walklex" command, in order to see my segmentation improvements. Here is my code (Windows command line)

set SPLUNK_HOME=C:\Program Files\Splunk
cd %Splunk_HOME%\bin> splunk cmd walklex %SPLUNK_HOME%\var\lib\splunk\my_index\db\db_xxxxxx_xxxxxx_3\my_tsidx_file.tsidx ""

And i got the followind error : ERROR: enable to open C:\Program wrc=[-4,2]

Does anyone has an idea please?

Tags (3)
0 Karma
1 Solution

RHASQaL
Path Finder

Hi

I tried the walklex command on a tsidx file in a hot db folder with Splunk running and received the same error as you reported. I then copied the file to another folder (C:\Temp) and reran the command using splunk cmd walklex C;\Temp\my_tsidx_file.tsidx "" and the command worked. So I'm suspecting the rc[4,2] relates to the file being locked.

View solution in original post

0 Karma

RHASQaL
Path Finder

Hi

I tried the walklex command on a tsidx file in a hot db folder with Splunk running and received the same error as you reported. I then copied the file to another folder (C:\Temp) and reran the command using splunk cmd walklex C;\Temp\my_tsidx_file.tsidx "" and the command worked. So I'm suspecting the rc[4,2] relates to the file being locked.

0 Karma

julienoud
New Member

Thank you RHASQaL it works very well, you've had a nice reflex here 🙂

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...