Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Mastering Elastic Stack

You're reading from  Mastering Elastic Stack

Product type Book
Published in Feb 2017
Publisher Packt
ISBN-13 9781786460011
Pages 526 pages
Edition 1st Edition
Languages
Authors (2):
Ravi Kumar Gupta Ravi Kumar Gupta
Profile icon Ravi Kumar Gupta
Yuvraj Gupta Yuvraj Gupta
Profile icon Yuvraj Gupta
View More author details

Table of Contents (19) Chapters

Mastering Elastic Stack
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Elastic Stack Overview Stepping into Elasticsearch Exploring Logstash and Its Plugins Kibana Interface Using Beats Elastic Stack in Action Customizing Elastic Stack Elasticsearch APIs X-Pack: Security and Monitoring X-Pack: Alerting, Graph, and Reporting Best Practices Case Study-Meetup

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...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}