---
title: "Logging"
date: "2024-02-14T06:18:38+00:00"
summary: "Discover real-time logging and log file management for Acquia China Managed. Learn how to access streaming logs, open SSH tunnels, and navigate log directories for efficient troubleshooting and monitoring."
image:
type: "page"
url: "/service-offerings/logging"
id: "3bbbf304-6909-430a-80d3-7b6da66ced2e"
---

Streaming log entries in real time
----------------------------------

The real time logging of Acquia China Managed is built on the Elasticsearch stack.

Important

To access the streaming logging service, create a Support ticket to get permission for streaming logging service.

Prerequisites
-------------

Since the streaming logging service is placed in a private network, you must open a SSH tunnel to access the service.

*   Make sure your SSH key has permission to access the bastion server. For more information, see [environment access](https://docs.acquia.com/service-offerings/china-managed-services/environments).
    
*   [Create a Support ticket](/service-offerings/support "Support") and provide your IP address with the CIDR notation.
    

Access the streaming logging service
------------------------------------

1.  On your local computer, open a terminal window. Open a SSH tunnel to the streaming service.
    
        ssh -i <your ssh key> -L 5601:<streaming service IP>:5601 <project key>@<bastion server IP> -N
    
2.  Open a browser and go to the following URL: `http://localhost:5601`.

Important

As a default user, anonymous users have limited permission of the Elasticsearch service. The streaming service is only accessible for a maximum of 10 days.

Downloading log files
---------------------

Logs are stored in a log directory on each server. Users can access these files at the `/mnt/logs` location.

Important

*   This path does not include the logs for the same day. Therefore, you must [create a Support ticket](/service-offerings/support#contact-acquia-support) and request the Support team to export the logs.
*   To comply with MLPS, logs are stored for a minimum of 180 days. If these logs are not available at `/mnt/logs`, [create a Support ticket](/service-offerings/support#contact-acquia-support) to have them retrieved from S3.

Log directory mapping

Directory/File

Description

`/mnt/logs/<project-key>-web-server`

Includes php-fpm access logs and the logs of Drupal watchdog

`/mnt/logs/rds/<db name of environment>/slowquery`

Includes DB slowquery logs

`/mnt/logs/rds/<db name of environment>/error`

Includes DB error logs

`/mnt/logs/<project-key>-solr`

Includes the logs of Solr instance

`/mnt/logs/<project-key>-ngnix`

Includes the logs of nginx