HTTP Alarm Calllbak Parameter


(Keetawat) #1

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


(Jochen) #2

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


(Keetawat) #3

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


(Jochen) #4

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


(Keetawat) #5

The project already done here


Thank you very much.


(system) #6

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