Splunk Search

Splunk diag error messages, No directory sepatator found

I-Man
Communicator

While running splunk diag on an indexer, i received the following error messages. Any idea's as to what they mean or if there is a problem?

[root@splunk bin]# ./splunk diag
Ensuring clean temp dir...
Selected diag name of: diag-splunk.domain.org-2013-08-22
Starting splunk diag...
sh: lsb_release: command not found
No directory separator found in index path: $SPLUNK_DB\fw\db
No directory separator found in index path: $SPLUNK_DB\fw\colddb
No directory separator found in index path: $SPLUNK_DB\fw\thaweddb
No directory separator found in index path: $SPLUNK_DB\randomlogs\db
No directory separator found in index path: $SPLUNK_DB\randomlogs\colddb
No directory separator found in index path: $SPLUNK_DB\randomlogs\thaweddb

Thanks in advance!

Tags (2)
0 Karma
1 Solution

kristian_kolb
Ultra Champion

Have you created your indexes.conf on a Windows machine (or with a Windows mindset)? It looks like you are using backslashes instead of forward slashes.

/K

View solution in original post

fbustamantes
Explorer

Is there any way to correct this in a cluster enviroment? I just checked the master and happens that the initial platform was a Windows one, however when we created our cluster, we changed to Linux. I completely forgot to change the separator in the paths, and Splunk didn't alerted me of anything going wrong during the execution of the bundle to distribute the configurations to the indexers.

So, is there any way to correct this without losing reference to the data on those indexes? Currently this is a production enviroment, and even when I'm not having big trouble other than the diag message, I would like to have it corrected, just as a good practice and for health of the enviroment.

Thanks.

0 Karma

kristian_kolb
Ultra Champion

Have you created your indexes.conf on a Windows machine (or with a Windows mindset)? It looks like you are using backslashes instead of forward slashes.

/K

kristian_kolb
Ultra Champion

Are you getting any new events into these indexes? If not, you should probably correct this. Good luck.

0 Karma

jrodman
Splunk Employee
Splunk Employee

There was a time where this type of indexes.conf would break splunk.

It's impossible to safely handle this type of path correctly on unix, so it should not work (backslash is a valid character in a dirname). I think, however, someone in engineering decided to "just make it work" unsafely. Diag is not willing to let this slide.

You should really use forward slashes on unix, the backslashes are not valid. These days forward slashes work on both platforms (a long time ago they did not.)

0 Karma

I-Man
Communicator

Woops, yes i did move everything from windows to linux. Now i have folders in splunk/var/lib named "splunk\randomlogs\db" and "splunk\randomlogs\colddb" and "splunk\randomlogs\thaweddb" instead of a randomlogs directory and sub directories for db, colddb, and thawed. So far this hasn't caused any issues aside from the diag output. Aside from being a mess, is it ok to leave it this way or will this have further negative consequences?

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...