Packetbeat missing some data

Is there a limit of 10 seconds for logging queries using packetbeat? For e.g. 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. Is there any way to change this?

I need the second query above to be logged as well.

Hi,

This must be caused by transaction_timeout being 10 seconds by default.

Try setting it to a higher value:

 - type: mysql
   ports: [3306, 3307]
   [...]
   transaction_timeout: 1m
1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.