TiDB Log Collection in Kubernetes

    The TiDB components deployed by TiDB Operator output the logs in the and of the container by default. For Kubernetes, these logs are stored in the host’s directory, and the file name contains information such as the Pod name and the container name. For this reason, you can collect the logs of the application in the container directly on the host.

    Common open source tools that can be used to collect Kubernetes logs are:

    Some cloud service providers or specialized performance monitoring service providers also have their own free or charged log collection options that you can choose from.

    Collect system logs

    All of the common log collection tools mentioned above support collecting system logs. Some cloud service providers or specialized performance monitoring service providers also have their own free or charged log collection options that you can choose from.