HTTP Alarm Calllbak Parameter

Dear All,
I was created html file and php code placed inside its as well for receive the data from HTTP Alarm Callback for example below

<html>
<?php
          echo $message,$Timestamp;
?>
</html>

I would like to understand in case of to receive the message and time stamp from Graylog 2.3.

Thank you in advance,

Best & Regards
Keetawat

You have to parse the JSON encoded data which is in the HTTP request body sent out by the HTTP Alarm Callback.

Dear Jochen,

Thank you for your advise. I did following your replied and I got the result “Array”.

How do I retrieve the alert message?
Here is my code

$data = json_decode(file_get_contents(‘php://input’), true);
$message = $data;

Best & Regards,
Keetawat

Please consult some PHP support forum or chat for these questions.
They’re not related to Graylog.

1 Like

The project already done here


Thank you very much.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.