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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...