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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...