I have the logstash config file in which i have written the mail alert for particular text present then automatically send an email with the message but i keep on receiving lots of mail continuously.
I need to have an alert generated every 30min ,please help me to solve the issue
output{
if[type] == "mq"
{
elasticsearch {
# Index name is used to store the elasticsearch value and it will display the elasticsearch value in kibana using the index name
index => "logstash-dd.mq_log"
hosts => ["11.11.11.122:0000"]
document_id => "%{fingerprint}"
}
}
if[q_manager] == "ESBPRT1"
{
if[error_code] == "AMQ9616"
{
email{
to => "domain@gmail.com"
from => "123@gmail.com"
subject => "MQ Alert - AMQ9616"
body => "Hello Team,\n\n Error code AMQ9616 occured @ %{event_timestamp} .Please check and take necessary action. \n \n Link to ELM DashBoard : http://123.gmail.com \n\n\n * This is an automated e-mail and any responses to this e-mail will not be monitored \n Thank You!"
port => 25
}
}
}
}
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.