Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Mastering Elastic Stack
  • Toc
  • feedback
Mastering Elastic Stack

Mastering Elastic Stack

By : Kumar Gupta, Gupta
1 (1)
close
Mastering Elastic Stack

Mastering Elastic Stack

1 (1)
By: Kumar Gupta, Gupta

Overview of this book

Even structured data is useless if it can’t help you to take strategic decisions and improve existing system. If you love to play with data, or your job requires you to process custom log formats, design a scalable analysis system, and manage logs to do real-time data analysis, this book is your one-stop solution. By combining the massively popular Elasticsearch, Logstash, Beats, and Kibana, elastic.co has advanced the end-to-end stack that delivers actionable insights in real time from almost any type of structured or unstructured data source. If your job requires you to process custom log formats, design a scalable analysis system, explore a variety of data, and manage logs, this book is your one-stop solution. You will learn how to create real-time dashboards and how to manage the life cycle of logs in detail through real-life scenarios. This book brushes up your basic knowledge on implementing the Elastic Stack and then dives deeper into complex and advanced implementations of the Elastic Stack. We’ll help you to solve data analytics challenges using the Elastic Stack and provide practical steps on centralized logging and real-time analytics with the Elastic Stack in production. You will get to grip with advanced techniques for log analysis and visualization. Newly announced features such as Beats and X-Pack are also covered in detail with examples. Toward the end, you will see how to use the Elastic stack for real-world case studies and we’ll show you some best practices and troubleshooting techniques for the Elastic Stack.
Table of Contents (13 chapters)
close

Alerting using Logstash e-mail capability

Alerting is a key aspect of analytics. You cannot continuously monitor logs or any other stats 24x7, and you need to be alerted when some specific event happens. For example, if there is any error occurring in logs, you would always want to be notified of it. Nobody can tolerate an error on a production server.

Let's use the e-mail capability of Logstash for e-mail notifications whenever some errors occur. For this, we will use e-mail output plugin of logstash. This plugin is not part of logstash packaging, but we can install it using:

bin/logstash-plugin install logstash-output-email

Once the plugin is installed, we can use it in the output section. Add the following configuration to the output section to configure your Gmail account to send an e-mail:

if [level] == "ERROR" { 
  email { 
    address => "smtp.gmail.com" 
    port => "587" 
    username => "mes.packt" 
    password => "&lt...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete