All Apps and Add-ons

Add-on Builder: How can I debug or log something within the editor while developing a Python script?

swe
Path Finder

Hi,

I am experimenting with the Splunk Add-on Builder and want to develop my own Python script within in. However, I don't see how I can debug or even log something within the editor.

So, when I am using "helper.log_error", where can I see that during development?

Thanks

1 Solution

gwang_splunk
Splunk Employee
Splunk Employee

Currently, you can not see the logs from the UI. The UI shows the events which will be put into splunk index.

You can check the file log file for your modular input. The file path is
$SPLUNK_HOME/var/log/splunk/_.log

View solution in original post

gwang_splunk
Splunk Employee
Splunk Employee

Currently, you can not see the logs from the UI. The UI shows the events which will be put into splunk index.

You can check the file log file for your modular input. The file path is
$SPLUNK_HOME/var/log/splunk/_.log

swe
Path Finder

ok thanks gwang!

0 Karma

larryleeroberts
Path Finder

So doing something like this in the code....
helper.log_info("Alert action started.")
You would not be able to find in a Splunk search?

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 ...