output {
# sent notification from logstash output to Teams channel
if [loglevel] == "ERROR" and [message] !~ /Requested number range/ {
http {
url => ""
http_method => "post"
format => "json"
content_type => "application/json"
message => {
"text" => "Error log detected Here is the event that triggered this alert"
}
proxy => ""
}
stdout {
codec => json_lines
}
}
}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.