How to send email notification using Logstash?

0 votes

Hi Guys,

I want to send a notification to my email using Logstash. Whenever a new log comes Logstash will automatically send one email. Can anyone tell me how can I do this task? 

Jun 18 in DevOps Tools by akhtar
• 18,250 points
40 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use the Email plugin in Logstash. It allows you to connect your email account with the help of SMTP, IMAP, etc server. I have attached one example below for your reference.

output {
email {
  to => "xyz@gmail.com"
  body => "Message: This is Nadeem"
  address => "smtp.gmail.com"
  port => 587
  username => "abc@gmail.com"
  password => "password"
  use_tls => true
}
}
answered Jun 18 by MD
• 42,420 points

Related Questions In DevOps Tools

0 votes
1 answer
0 votes
1 answer

How to download the latest minor version of nexus artifact using REST?

If you're using nexus 2.x, you can ...READ MORE

answered Jun 27, 2018 in DevOps Tools by ajs3033
• 7,280 points
1,423 views
0 votes
1 answer

How do I deploy to multiple servers using the same context root?

  If you're deploying to multiple servers ...READ MORE

answered Jul 2, 2018 in DevOps Tools by Kalgi
• 51,890 points
114 views
0 votes
1 answer

How to bootstrap droplets using Terraform?

Using passwords on instances is an absolute ...READ MORE

answered Jul 12, 2018 in DevOps Tools by Kalgi
• 2,620 points
76 views
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
603 views
0 votes
1 answer
0 votes
1 answer

How to filter IP from a log file using Logstash?

Hi@akhtar, You can use the filter plugin in Logstash. It ...READ MORE

answered Jun 18 in DevOps Tools by MD
• 42,420 points
37 views
0 votes
1 answer

How to install Logstash in CentOS/RHEL?

Hi@akhtar, To install Logstash on the system, you ...READ MORE

answered Jun 17 in DevOps Tools by MD
• 42,420 points
77 views