diff --git a/logstash/pipeline/logstash.conf b/logstash/pipeline/logstash.conf index 8b1d26d..4008d9d 100644 --- a/logstash/pipeline/logstash.conf +++ b/logstash/pipeline/logstash.conf @@ -167,5 +167,18 @@ output { automatic_retries => 1 retry_failed => false } + #Template for Gotify, remove the standard text above to "http {" and replace the text below (by analogy with Elastic Plugin above) + #if [@metadata][webhook_item_value] { + # http { + # url => "${WEBHOOK_URL:}" + # format => "json" + # http_method => "post" + # mapping => { + # "message" => "```%{[@metadata][webhook_item_value]}```" #Апострофы(`) нужны для совместимости с MD системами, такими как discord, telegram, etc. + # } + # automatic_retries => 1 + # retry_failed => false + # } + #} } } \ No newline at end of file