Mysql Performance dashboard: slowest mysql queries

(Eugene Glotov) #1

Why the mysql queries is so strange in the table?

In the Packetbeat debug mode I see all normal queries. And they are absolute normal in the "Discover" tab, for example:

SELECT count(DISTINCT AS sclr_0 FROM token l0_

Can Logstash be a reason of that? It do nothing with the packets, just proxies to the Elastic Search.

(Jon Budzenski) #2

It looks like your field is analyzed, elasticsearch is tokenizing your queries and then running an aggregation on the split up chunks. If you have a query.raw field available that should give you the results you want. If not, you'll want to setup a mapping that's not_analyzed for this field. See for more info.

(Monica Sarbu) #3

If you don't have valuable data, the easiest option would be to delete all data available in your packetbeat-* index, and load the Packetbeat index template. In the newer versions of Packetbeat, the index template is loaded automatically at startup if it wasn't loaded before. What version of Packetbeat are you using?

(Eugene Glotov) #4

First, my 'query' field wasn't analysed.

Today I have deleted all my indices and reinstalled Kibana, ElasticSearch, and PacketBeat to the newest stable versions. And after this I have all new indices patterns with stars instead of "event times", like "packetbeat-*".
After reinstallation I have conflict mapping with the "client_location" field. Reindexing wasn't help. I have deleted all indices again and started from zero, but I still have the conflict mapping.

And in the MysqlDashboard I have the same problem with split queries. And yes, now the "query" field is real analysed.

  • Kibana v. 4.6.1
  • Packetbeat v.1.3.1
  • ElasticSearch v.2.4.0
  • Kibana Beats Dashboards v.1.3.1


(system) #5

This topic was automatically closed after 21 days. New replies are no longer allowed.