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

[BUG] MySQL slow SQL logs are successfully collected, but cannot be seen on the platform #31485

Open
lhsaq2009 opened this issue Nov 26, 2024 · 0 comments

Comments

@lhsaq2009
Copy link

lhsaq2009 commented Nov 26, 2024

Agent Environment

Centos 7.9

Describe what happened:

MySQL slow SQL logs are successfully collected, but cannot be seen on the platform


  mysql
  -----
    - Type: file
      Path: /var/log/mysql/mysql_error.log
      Service: Haisen123
      Source: mysql
      Status: OK
      Inputs:
        /var/log/mysql/mysql_error.log
      Bytes Read: 0
      Pipeline Latency:
        Average Latency (ms): 0
        24h Average Latency (ms): 0
        Peak Latency (ms): 0
        24h Peak Latency (ms): 0
    - Type: file
      Path: /var/log/mysql/slow-query.log
      Service: Haisen123
      Source: mysql
      Status: OK
      Inputs:
        /var/log/mysql/slow-query.log
      Bytes Read: 5679
      Lines Combined: 113
      MultiLine matches: 15
      Pipeline Latency:
        Average Latency (ms): 0
        24h Average Latency (ms): 0
        Peak Latency (ms): 0
        24h Peak Latency (ms): 0
    - Type: file
      Path: /var/log/mysql/mysql.log
      Service: Haisen123
      Source: mysql
      Status: OK
      Inputs:
        /var/log/mysql/mysql.log
      Bytes Read: 21993
      Pipeline Latency:
        Average Latency (ms): 0
        24h Average Latency (ms): 0
        Peak Latency (ms): 0
        24h Peak Latency (ms): 0

I fixed the problem with slow-query.log not having read permission, and slow-query.log successfully logged some slow SQL, but I couldn't see any log related data on the page

Image

But on this page, it looks like my slow log has already been sent

Image

Describe what you expected:

Steps to reproduce the issue:

Additional environment details (Operating System, Cloud provider, etc):

@lhsaq2009 lhsaq2009 changed the title [BUG] [BUG] MySQL slow SQL logs are successfully collected, but cannot be seen on the platform Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants