Skip to content
Advertisement

Python webhook API

I am trying to create a python webhook to receive data from my ELastic SIEM (JSON format), when I try it I am getting this errors: (sorry It’s my first time using python, so couldn’t know what’s the problem)

JavaScript

The webhook configuration:

JavaScript

And here is the watcher that I have configured:

JavaScript

Could you please help me to solve this error ! Thanks :)

Advertisement

Answer

So I just found out that the data send wasn’t in a json format and to print I used:

def api_webhook_messages(): data = request.data print(data)

Thanks for your help

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement