Splunk SOAR (f.k.a. Phantom)

How to see debug logs from the view.py file of an application?

ansir
Explorer

Hi,

I’m creating an application via the app wizard and I wish to render a custom view.

I have a view.py file with the follow function,

 

def display_action1(provides, all_app_runs, context):
    import phantom.rules as phantom
    
    context['results'] = ['a', 'b', 'c']
    
    
    phantom.debug('runing display_action1')
    print('runing display_action1')
     
    return 'display_action1.html'

 

 

which render the correct view in the widget.

However, i want to be able to view the debug or print statements.

where can i view this?

Kind regards,

Ansir

Labels (1)
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 ...