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, 2020 in DevOps Tools by akhtar
• 38,230 points
944 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, 2020 by MD
• 95,360 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
2,320 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
• 52,350 points
333 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,680 points
211 views
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
1,782 views
+2 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, 2020 in DevOps Tools by MD
• 95,360 points
240 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, 2020 in DevOps Tools by MD
• 95,360 points
2,399 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP