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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...