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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...