Splunk Search

Absolute paths

nanceda
New Member

I know this question has probably been asked before but I've tried it a LOT of ways.

Splunk 5.0.4 build 172409 on Windows 2008R2

I'm trying to add an absolute path to my indexes.conf file but am constantly getting: "Problem parsing indexes.conf: Cannot create index '_audit': path of coldToFrozenDir must be absolute.."

I have tried:
"\hostname\arch"
"\UNC PATH TO EXTERNAL HOST\share\arch" (my preferred solution)
"%HOMEDRIVE%\arch" ($HOMEDRIVE = c:)
"$HOMEDRIVE\arch"
"C:\arch"

I even tried adding a directory to the path in the example file "$SPLUNK_HOME\arch" (using the indexes.conf under local of course)

Still no luck. I've googled this thing to death.

Any help? (btw, the resultant post removes the double slashes from some of my examples for some reason)

Thanks!

Tags (1)
0 Karma

easiedu_splunk
Splunk Employee
Splunk Employee

I had this error on v6.63 while setting the path of a G: drive for the coldToFrozenDir on windows - this was fixed by writing as:

G:/
0 Karma

lukejadamec
Super Champion

The slashes are being removed because they are 'special' characters. Use and extra slash to escape them, or highlight the section that contains then and click the 'code' button when available (101010).

0 Karma

nanceda
New Member

According to indexes.conf you can also specify a directory path. It gives the example of "$SPLUNKHOME\myfrozenarchive" I merely changed the path to "$SPLUNK_HOME\arch" (after creating the directory) That at least should have worked, but I still got the same absolute path error.

0 Karma

lukejadamec
Super Champion

According to indexes.conf you cannot specify a volume lable in the coldtofrozendir, so I think you're going to have to use the coldtofrozenscript option.
Here is some information on setting up the script.

http://docs.splunk.com/Documentation/Splunk/5.0.4/Indexer/Automatearchiving#Specify_an_archiving_scr...

0 Karma

nanceda
New Member

According to indexes.conf you can also specify a directory path. It gives the example of "$SPLUNKHOME\myfrozenarchive" I merely changed the path to "$SPLUNK_HOME\arch" (after creating the directory) That at least should have worked, but I still got the same absolute path error.

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...