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,260 points
2,852 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,460 points

Related Questions In DevOps Tools

0 votes
1 answer

How to Replicate the Artifacts between two Jfrog Artifactories by using CURL or jfrog rt (Rest API)

Yes and no, It's a bit complex ...READ MORE

answered Mar 27, 2018 in DevOps Tools by Atul
• 10,240 points
1,768 views
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,300 points
3,439 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
803 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
726 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
4,062 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,460 points
1,495 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,460 points
4,390 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP