简体   繁体   English

Packetbeat缺少一些数据

[英]Packetbeat missing some data

Is there a limit of 10 seconds for logging queries using packetbeat? 使用packetbeat记录查询是否有10秒的限制? For eg The first query in the following example got logged correctly as expected. 例如,以下示例中的第一个查询已按预期正确记录。 But the second query does not show up in elastic. 但是第二个查询不会以弹性显示。

MySQL [test]> select sleep(9.9);
+------------+
| sleep(9.9) |
+------------+
|          0 |
+------------+
1 row in set (9.91 sec)


MySQL [test]> select sleep(10);
+-----------+
| sleep(10) |
+-----------+
|         0 |
+-----------+
1 row in set (10.00 sec)

I guess it is related to refresh_topology_freq parameter that is set to 10 seconds by default. 我想这与refresh_topology_freq参数有关,该参数默认设置为10秒。 Is there any way to change this? 有什么办法可以改变吗?

I need the second query above to be logged as well. 我还需要记录上面的第二个查询。

You have to increase a transaction_timeout setting as it is set to 10s by default. 您必须增加transaction_timeout设置,因为默认情况下它设置为10s。 Your second query runs 10 secs and considers as expired, but expired transactions are no longer correlated to incoming responses and sent to Elasticsearch immediately. 您的第二个查询运行10秒,并认为已过期,但是过期的事务不再与传入的响应相关,而是立即发送到Elasticsearch。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM