Book Image

Mastering Elastic Stack

By : Ravi Kumar Gupta, Yuvraj Gupta
Book Image

Mastering Elastic Stack

By: Ravi Kumar Gupta, Yuvraj 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 (19 chapters)
Mastering Elastic Stack
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Monitoring APIs


In this section, we will have a look at the various APIs currently exposed in Logstash to retrieve runtime metric information.

By default, API binds to 127.0.0.1 and picks up the first available port in the range of 9600-9700. But if another instance of Logstash is running, let's say at port 9600 , then you would need to specify the new port on which Logstash will run using following command:

bin/logstash --http.port 9602

You can get basic information when Logstash runs by opening http://localhost:9600 in your browser or run the following command from the command line:

curl -X GET http://localhost:9600?pretty

The response of the preceding command is as follows:

    {
       "host": "ubuntu",
       "version": "5.1.1",
       "http_address": "127.0.0.1:9600"
       "id" : "6d32ec3e-700b-48eb-bbc3-6a48b2b00f9e",
       "name" : "ubuntu",
       "build_date" : "2016-12-06T13:17:53+00:00",
       "build_sha" : "aa36c4f4b702c6d379e5a97c22627933bca04f68...