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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...