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

The cat APIs


This API helps us to print information nodes, indices, fields, tasks, and plugins in a human-readable format rather than a JSON. It can also be visualized to see how tables are printed on the console.

All these commands can be used with the GET verb of curl. By default, the commands will list only data and no headers. To print headers, we can use v in query parameters:

GET /_cat/health?v

The preceding command can be used instead of the following:

GET /_cat/health

We can also specify which headers to show by supplying the comma-separated values for the h query parameter.

Let's see the endpoints available to operate on:

  • _cat/indices: This shows data about indices such as health, status, index name, primary, replicas, documents count, and memory:

            GET /_cat/indices?v&h=health,status,index,docs.count,store
    

Here is what it looks like in the Console:

As we can see, it shows health and stats for each index.

  • _cat/master: This shows the node ID, IP address, and node name of the...