Illustration Image

Cassandra.Link

The best knowledge base on Apache Cassandra®

Helping platform leaders, architects, engineers, and operators build scalable real time data platforms.

8/21/2020

Reading time:3 min

Cassandra Lunch #14: Basic Log Diagnostics with ELK/FEK/BEK - Business Platform Team

by John Doe

In case you missed Cassandra Lunch #14, we discussed methods for finding and diagnosing issues in Cassandra clusters. Starting off with why specialized diagnostic tools are necessary, we also discussed some outside resources that are useful in the monitoring of Cassandra clusters. We then moved on to some of Anant Corporation’s own resources for analyzing the performance of a Cassandra cluster, before diving into an example setup, demonstrating how Elastic and Kibana can make finding and diagnosing issues much easier.Why Use Specialized Tools to Diagnose Issues?When we work with Cassandra clusters, we are almost always working with distributed systems. In the case of using Cassandra for real-time business platforms, we can be dealing with very large distributed systems. Because the information that we may need can come from a variety of locations, we need extra tools to aggregate, process, and analyze that data if we want to build any kind of comprehensive understanding of our issues.We need to be able to perform the monitoring and diagnosis of our Cassandra clusters easily because we want to ensure high performance. We use distributed Cassandra as part of our business platforms because we want high availability, quick writes, and quick reads. Problems in our cluster could stand in the way of getting what we want from our use of Cassandra. Different Types of MonitoringWe discuss the taxonomy of different types of monitoring that can be used to keep track of different portions of a business platform. Monitoring these various metrics on your system can help establish a baseline from which to distinguish problems or to plan for upgrades.Endpoint Metrics (User Browser / API )Logging ( Event, Error, Info, Warnings, …)Tracing (Interface, Software, Database)System Metrics (Disk, CPU, Memory, … )Performance metrics (Throughput, Latency, …)Application (Custom to Business use cases).All of these systems can produce logs, and monitoring them all by hand can be impossible. Therefore tools are used to aggregate these logs all in one place and analyze them for patterns. Tools for doing so can be found here. Keep the tools for centralizing and logging metrics in mind for later. Tools like: Splunk, ELK (Elasticsearch, Logstash/Beats, Kibana), and ELG (same but with Grafana). Our ToolsAnant Corporation maintains a collection of tools that we call Cassandra.Toolkit. (found here) This project is composed of a number of tools for building, managing, and monitoring Cassandra clusters. It contains tools like Node Analyzer, which aggregates diagnostic data for a single node and compresses it into a tarball. It runs commands like nodetool status, info, and describe cluster, among others, and dumps all of that information into a single location. Table Analyzer does a similar thing for information about individual tables. Some of our most cutting edge work is only available on the dev branch, including a project to perform log analysis with Filebeat, Elasticsearch, and Kibana.We then run through an example of this type of log analysis, details of which can be found in the slides and video below. Cassandra.LinkCassandra.Link is a knowledge base that we created for all things Apache Cassandra. Our goal with Cassandra.Link was to not only fill the gap of Planet Cassandra, but to bring the Cassandra community together. Feel free to reach out if you wish to collaborate with us on this project in any capacity.We are a technology company that specializes in building business platforms. If you have any questions about the tools discussed in this post or about any of our services, feel free to send us an email! Posted in Modern Business | Comments Off on Cassandra Lunch #14: Basic Log Diagnostics with ELK/FEK/BEK

Illustration Image

In case you missed Cassandra Lunch #14, we discussed methods for finding and diagnosing issues in Cassandra clusters. Starting off with why specialized diagnostic tools are necessary, we also discussed some outside resources that are useful in the monitoring of Cassandra clusters. We then moved on to some of Anant Corporation’s own resources for analyzing the performance of a Cassandra cluster, before diving into an example setup, demonstrating how Elastic and Kibana can make finding and diagnosing issues much easier.

Why Use Specialized Tools to Diagnose Issues?

When we work with Cassandra clusters, we are almost always working with distributed systems. In the case of using Cassandra for real-time business platforms, we can be dealing with very large distributed systems. Because the information that we may need can come from a variety of locations, we need extra tools to aggregate, process, and analyze that data if we want to build any kind of comprehensive understanding of our issues.

We need to be able to perform the monitoring and diagnosis of our Cassandra clusters easily because we want to ensure high performance. We use distributed Cassandra as part of our business platforms because we want high availability, quick writes, and quick reads. Problems in our cluster could stand in the way of getting what we want from our use of Cassandra. 

Different Types of Monitoring

We discuss the taxonomy of different types of monitoring that can be used to keep track of different portions of a business platform. Monitoring these various metrics on your system can help establish a baseline from which to distinguish problems or to plan for upgrades.

  • Endpoint Metrics (User Browser / API )
  • Logging ( Event, Error, Info, Warnings, …)
  • Tracing (Interface, Software, Database)
  • System Metrics (Disk, CPU, Memory, … )
  • Performance metrics (Throughput, Latency, …)
  • Application (Custom to Business use cases).

All of these systems can produce logs, and monitoring them all by hand can be impossible. Therefore tools are used to aggregate these logs all in one place and analyze them for patterns. Tools for doing so can be found here. Keep the tools for centralizing and logging metrics in mind for later. Tools like: Splunk, ELK (Elasticsearch, Logstash/Beats, Kibana), and ELG (same but with Grafana). 

Our Tools

Anant Corporation maintains a collection of tools that we call Cassandra.Toolkit. (found here) This project is composed of a number of tools for building, managing, and monitoring Cassandra clusters. It contains tools like Node Analyzer, which aggregates diagnostic data for a single node and compresses it into a tarball. It runs commands like nodetool status, info, and describe cluster, among others, and dumps all of that information into a single location. Table Analyzer does a similar thing for information about individual tables. Some of our most cutting edge work is only available on the dev branch, including a project to perform log analysis with Filebeat, Elasticsearch, and Kibana.

We then run through an example of this type of log analysis, details of which can be found in the slides and video below.

Cassandra.Link

Cassandra.Link is a knowledge base that we created for all things Apache Cassandra. Our goal with Cassandra.Link was to not only fill the gap of Planet Cassandra, but to bring the Cassandra community together. Feel free to reach out if you wish to collaborate with us on this project in any capacity.

We are a technology company that specializes in building business platforms. If you have any questions about the tools discussed in this post or about any of our services, feel free to send us an email!

Related Articles

mongo
nocode
elasticsearch

GitHub - ibagroup-eu/Visual-Flow: Visual-Flow main repository

ibagroup-eu

12/2/2024

elasticsearch
cassandra

Checkout Planet Cassandra

Claim Your Free Planet Cassandra Contributor T-shirt!

Make your contribution and score a FREE Planet Cassandra Contributor T-Shirt! 
We value our incredible Cassandra community, and we want to express our gratitude by sending an exclusive Planet Cassandra Contributor T-Shirt you can wear with pride.

Join Our Newsletter!

Sign up below to receive email updates and see what's going on with our company

Explore Related Topics

AllKafkaSparkScyllaSStableKubernetesApiGithubGraphQl

Explore Further

elasticsearch