Getting Data In

Is it possible to have a separate log file for errors occurring only within a specific Splunk App?

mariasudolska
New Member

Hi all,

I am posting this question because I was not able to find the answer so far. I know that Splunk logs a lot about itself and that there are various log files in $SPLUNK_HOME/var/log/splunk. However, I would like to know whether it is possible to keep a separate log file that would contain only errors (and other messages) related to using a specific Splunk App, e.g. Search & Reporting or any custom developed App. Or in other words: when I develop a Splunk App, is it possible to specify something like an App error log?

If it is not possible at all, then the only option to search for errors would be to write specific searches for index=_internal and filter out the relevant information, is that right?

Thanks a lot.

0 Karma
1 Solution

nickhills
Ultra Champion

Many Splunk apps write log lines into their own files for scripted/modular inputs, custom commands a lookups.
If your building your inputs in Python you can use the SDK to do the same
http://dev.splunk.com/view/logging/SP-CAAAFCN

If my comment helps, please give it a thumbs up!

View solution in original post

0 Karma

nickhills
Ultra Champion

Many Splunk apps write log lines into their own files for scripted/modular inputs, custom commands a lookups.
If your building your inputs in Python you can use the SDK to do the same
http://dev.splunk.com/view/logging/SP-CAAAFCN

If my comment helps, please give it a thumbs up!
0 Karma

mariasudolska
New Member

Many thanks for the answer.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...