If the preview page is blank or the query page displays no data when you use Logtail to collect logs, perform the following steps to troubleshoot the errors:

Procedure

  1. Check whether the heartbeat status of your machine group is normal.
    View the heartbeat status of your machine group in the Log Service console. For more information, see View the status of a machine group.
  2. Check whether a Logtail configuration is created.
    • If no Logtail configuration is created, create a Logtail configuration by following the instructions that are provided in Create Logtail configurations.
    • If a Logtail configuration is created, proceed to the next step.
    Notice Make sure that the log path specified in the Logtail configuration matches the log files on the servers from which you want to collect logs.
  3. Check whether the Logtail configuration is applied to your machine group.
    On the Machine Group Settings page, check whether the Logtail configuration is applied to your machine group. For more information, see Manage machine groups.
    • If the Logtail configuration is not applied to your machine group, apply the Logtail configuration by following the instructions that are provided in Manage Logtail configurations.
    • If the Logtail configuration is applied to your machine group, proceed to the next step.
  4. View collection errors.
    Check whether new logs are generated in the log files in real time. Logtail collects only incremental logs. If the log files are not updated, Logtail does not read the log files. If the log files are updated but no results are returned when you query the updated data in Log Service, perform the following operations:
    • View collection errors.

      For more information, see How do I view Logtail collection errors?.

    • View the logs of Logtail.
      Logtail records important information and all WARNING and ERROR logs. If you want to view the details of the errors, you can access the logs of Logtail in the following paths:
      • Linux: /usr/local/ilogtail/ilogtail.LOG and /usr/local/ilogtail/logtail_plugin.LOG. The files contain logs that are collected when the Logtail configuration uses a data source such as HTTP, MySQL Binlog, or MySQL query results.
      • Windows x64: C:\Program Files (x86)\Alibaba\Logtail\logtail_*.log.
      • Windows x32: C:\Program Files\Alibaba\Logtail\logtail_*.log.
    • Check whether limits are exceeded.

      If you want to collect a large amount of log data or collect logs from a large number of files, you can modify the startup parameters of Logtail to increase the throughput for log collection. For more information, see Configure the startup parameters of Logtail.

    If the errors persist after you perform the preceding operations, submit a ticket and provide important information that you found in troubleshooting.