I happened to install ELK 7.2 for testing purposes.
We came across the alert system (Watchers) but unfortunately we cant make it work.
Log file is in txt file (json format):
// [{"date":"19-07-2019 04:33:46pm","error":"Error","error_description":"Description"},{"date":"19-07-2019 04:49:43pm","error":"Error","error_description":"Description"},{"date":"21-07-2019 06:19:55pm","error":"Error","error_description":"Description"}]
We use slack to print out the messages with
//"body": "{{ctx.payload.hits.hits.0._source.message}}",
This gives us this response
//"id" : "send_trigger",
"type" : "webhook",
"status" : "failure",
"reason" : "received [400] status code",
"body" : """date":"21-07-2019 07:33:16pm","error":"Error","error_description":"Description"},{"date":"21-07-2019 08:31:49pm","error":"Error","error_description":"Description"}]{"date":"22-07-2019 09:15:30am","error":"Error","error_description":"Description"}]ion"}]"""
},
This is the whole code and response we are getting.
Any help, would be much appreciated.