Evaluate your SIEM
Get the guideComplete visibility for DevSecOps
Reduce downtime and move from reactive to proactive monitoring.
December 17, 2020
Aurora, a hosted relational database service available on the Amazon cloud, is a popular solution for teams that want to be able to work with tooling that is compatible with MySQL and PostgreSQL without running an actual MySQL or PostgreSQL database.
In order to leverage Aurora’s benefits fully, it’s critical to log and analyze the various types of monitoring data that are available from an Aurora environment. Because Aurora generates multiple categories of log data and makes it available in different locations, you must have a comprehensive logging and monitoring strategy in place to keep track of all aspects of Aurora performance and availability.
In this article, we walk through the steps required to log and monitor Amazon Aurora as well as discuss several best practices for getting the most value out of Aurora log data.
Amazon Aurora is a cloud service that allows users to store data within a relational database format. It is part of Amazon’s RDS service.
One of the main features of Aurora is that it is compatible with MySQL and PostgreSQL. This doesn’t mean that Aurora databases are simply MySQL or PostgreSQL databases, though; Aurora is a proprietary solution and is different from MySQL or PostgreSQL. However, because Aurora is compatible with both MySQL and PostgreSQL, users can manage Aurora databases using the same tools (such as the mysql CLI client or graphical MySQL management interfaces like Workbench) that they would use when working with a traditional MySQL or PostgreSQL database.
Aurora offers additional features that distinguish it from a stock cloud-based MySQL or PostgreSQL database service. It automatically increases storage allocations as databases grow, which eliminates the need for users to manage capacity planning on their own. It also automatically replicates data across multiple Amazon availability zones to provide high availability. And, according to Amazon, Aurora can achieve performance rates up to five times faster than those of generic MySQL and three times faster than PostgreSQL.
You can create genuine MySQL and PostgreSQL databases on Amazon RDS if you wish, but Aurora may be a better choice for some users based on the capacity planning, availability, and performance benefits described above.
Although Aurora is designed to offer enhanced performance and availability compared to other types of databases, it is by no means immune to potential problems. Your Aurora databases could be disrupted by external failures, such as a DDoS attack that disrupts the availability of the Aurora service. Or, you could suffer from internal problems within your Aurora environment, like data corruption that makes parts of your database unusable or a configuration issue that leads to poor performance.
To safeguard against these risks, monitoring and logging all available data from both the Aurora service and your individual Aurora databases is crucial. Logging and monitoring will help you identify problems before they turn into serious disruptions. They may also give you insight into optimizations you can make to increase the availability and performance of your Aurora databases.
There are multiple monitoring and logging streams associated with Aurora environments and databases. Each one lets you log or monitor different types of information.
The main logging and monitoring streams for Aurora include:
There are additional ways to collect and use monitoring data from Aurora environments, such as using the Amazon Simple Notification Service to configure additional types of alerts. For a comprehensive description of the Aurora monitoring and logging streams that are available, see the Amazon documentation.
Because there are multiple logging and monitoring streams available in Aurora, there is no singular way to monitor an Aurora database using native Amazon tools. Instead, the best approach will combine multiple monitoring paths and tools.
Consider the following best practices for Aurora monitoring:
If you don’t want the hassle of having to juggle multiple native and third-party monitoring tools and data streams in order to manage Aurora logs, an alternative approach is to use a unified logging and metrics (ULM) solution like Sumo Logic.
Sumo Logic automatically collects metrics from across your Aurora environment, consolidates them in a single location, and gives you analytics tools for interpreting the data. This approach eliminates the need to collect data through multiple individual tools like CloudWatch and CloudTrail. It also helps you to correlate relevant events and performance indicators across different logging streams in ways that would be very difficult to achieve if you were analyzing the data manually.
And, because Sumo Logic offers full support for both MySQL- and PostgreSQL-compatible Aurora databases, you can use the same log collection and monitoring solution no matter which types of databases you decide to run on Aurora.
To see for yourself how Sumo Logic can simplify Aurora logging and monitoring, sign up for a free trial.
Reduce downtime and move from reactive to proactive monitoring.
Build, run, and secure modern applications and cloud infrastructures.
Start free trial