Installation

Failed opening seach.log

q6442
New Member

Can anyone advise me why this may be happening or how to resolve it? This has been happening since we installed a new Search Head and copied over configuration from the old Search Head. We actually have two new Search Heads, both had configurations restored from the older Search Head but only one instance is producing this error. Splunk owns all directories.

ERROR ProcessDispatchedSearch - PROCESS_SEARCH - Failed opening "${SPLUNK_DISPATCH_DIR}\search.log": Permission denied

0 Karma

koshyk
Super Champion

We have seen this issue, when
- Splunk enterprise/splunkd is started as root
- But yourself/person access it as "splunk" user

To fix it, stop splunk as root
chown -R splunk:splunk /opt/splunk
then as "splunk" user, start it.

0 Karma

tom_frotscher
Builder

Hi,

for the error message, it sounds like the new machine can not open files in the dispatch directory.
Maybe Splunk is started with a different user? A screenshot of an ls -al of the $SPLUNK_HOME/var/run/splunk/dispatch and $SPLUNK_HOME/var/run/splunk directory could help to solve the problem.

Also checking if the splunkd process is running as splunk user or something else (for example with top or ps -aux).

0 Karma

q6442
New Member

Hey Tom,

Thanks for the response.

ls -la of $SPLUNK_HOME/var/run/splunk/dispatch and $SPLUNK_HOME/var/run/splunk show splunk/splunk as owner. Splunkd process is also running as splunk user.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...