Getting Data In

How to get the diag files with debug files of the UF and the HF?

raghunandan1
Engager

Log ingesting intermittently We could not find the path referenced . We have Univerasal forwarder is Windows server and Heavy forwarder is *nix server. How to get the diag files with debug enable of the UF and the HF?

Can you please provide the detailed explanation with commands

0 Karma

SanjayReddy
SplunkTrust
SplunkTrust

Hi  

you can enable debug mode for splunkd.log file before taking diag. 

Enable debug logging on all of splunkd.log

Splunk software has a debugging parameter (--debug) that you can use when you start Splunk software from the CLI in *nix. This command outputs logs to the $SPLUNK_HOME/var/log/splunk/splunkd.log file.

This option is not available on Windows. To enable debugging on Splunk software running on Windows, enable debugging on a specific processor. See Enable debug logging in Splunk Web or Enable debug logging using log.cfg.

  • Navigate to $SPLUNK_HOME/bin.
  • Stop the Splunk platform instance, if it is running.
  • Save your existing splunkd.log file by renaming it, like splunkd.log.old.
  • Restart the instance in debug mode with splunk start --debug.
  • When you notice the problem, stop the instance.
  • Move the new splunkd.log file elsewhere and restore the old file.
  • Stop or restart the instance normally (without the --debug flag) to disable debug logging.

    Not all messages marked WARN or ERROR indicate actual problems with Splunk software; some indicate that a feature is not being used.


    for splunk diag run following command 


    *nix example Windows example
    ./splunk diag
    splunk diag
  •  
  •  
  •  
  •  
  •  
  •  

@raghunandan1

0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...