Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update how-to-server-logs-portal.md (Typo "flexible server"→"Flexible… #65

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions articles/mysql/flexible-server/how-to-server-logs-portal.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ ms.subservice: flexible-server
ms.topic: conceptual
---
# Enable and download server logs for Azure Database for MySQL - Flexible Server

You can use server logs to help monitor and troubleshoot an instance of Azure Database for MySQL flexible server, and to gain detailed insights into the activities that have run on your servers.
By default, the server logs feature in Azure Database for MySQL flexible server is disabled. However, after you enable the feature, an Azure Database for MySQL flexible server instance starts capturing events of the selected log type and writes them to a file. You can then use the Azure portal or the Azure CLI to download the files to assist with your troubleshooting efforts.
This article explains how to enable the server logs feature in Azure Database for MySQL flexible server and download server log files. It also provides information about how to disable the feature.
You can use server logs to help monitor and troubleshoot an instance of Azure Database for MySQL Flexible Server, and to gain detailed insights into the activities that have run on your servers.
By default, the server logs feature in Azure Database for MySQL Flexible Server is disabled. However, after you enable the feature, an Azure Database for MySQL Flexible Server instance starts capturing events of the selected log type and writes them to a file. You can then use the Azure portal or the Azure CLI to download the files to assist with your troubleshooting efforts.
This article explains how to enable the server logs feature in Azure Database for MySQL Flexible Server and download server log files. It also provides information about how to disable the feature.

In this tutorial, you'll learn how to:
- Enable the server logs feature.
Expand All @@ -22,17 +21,17 @@ In this tutorial, you'll learn how to:

## Prerequisites

To complete this tutorial, you need an existing Azure Database for MySQL flexible server instance. If you need to create a new server, see [Quickstart: Create an instance of Azure Database for MySQL with the Azure portal](quickstart-create-server-portal.md).
To complete this tutorial, you need an existing Azure Database for MySQL Flexible Server instance. If you need to create a new server, see [Quickstart: Create an instance of Azure Database for MySQL with the Azure portal](quickstart-create-server-portal.md).

## Enable Server logs

To enable the server logs feature, perform the following steps.

1. In the [Azure portal](https://portal.azure.com), select your Azure Database for MySQL flexible server instance.
1. In the [Azure portal](https://portal.azure.com), select your Azure Database for MySQL Flexible Server instance.

1. On the left pane, under **Monitoring**, select **Server logs**.

:::image type="content" source="media/how-to-server-logs-portal/1-how-to-serverlog.png" alt-text="Screenshot showing Azure Database for MySQL flexible server Server Logs.":::
:::image type="content" source="media/how-to-server-logs-portal/1-how-to-serverlog.png" alt-text="Screenshot showing Azure Database for MySQL Flexible Server Server Logs.":::

1. To enable server logs, under **Server logs**, select **Enable**.

Expand All @@ -46,7 +45,7 @@ To enable the server logs feature, perform the following steps.

:::image type="content" source="media/how-to-server-logs-portal/3-how-to-serverlog.png" alt-text="Screenshot showing select slow log - Server Logs.":::

To configure slow_logs on your Azure Database for MySQL flexible server instance, see [Tutorial: Query Performance Insight for Azure Database for MySQL - Flexible Server](tutorial-query-performance-insights.md)
To configure slow_logs on your Azure Database for MySQL Flexible Server instance, see [Tutorial: Query Performance Insight for Azure Database for MySQL - Flexible Server](tutorial-query-performance-insights.md)

## Download Server logs

Expand All @@ -58,7 +57,7 @@ To download server logs, perform the following steps.

:::image type="content" source="media/how-to-server-logs-portal/4-how-to-serverlog.png" alt-text="Screenshot showing Server Logs - Download." lightbox="media/how-to-server-logs-portal/4-how-to-serverlog.png":::

For HA enabled Azure Database for MySQL flexible server instances, server logs for standby server can be identified by another four-letter identifier after the hostname of the server as shown below.
For HA enabled Azure Database for MySQL Flexible Server instances, server logs for standby server can be identified by another four-letter identifier after the hostname of the server as shown below.

:::image type="content" source="media/how-to-server-logs-portal/5-how-to-serverlog.png" alt-text="Screenshot showing server Logs - HA logs.":::

Expand Down