pt-query-digest slowlog output format looses query cache hit information?
0
votes
1
answer
127
views
I'm using pt-query-digest (v2.2.20) slowlog output format to filter out queries based on their timestamp, to run further digests on the filtered slowlog :
ptqd 11-21.slow.log --output slowlog --no-report --filter '($event->{timestamp} > 1483957800) && ($event->{timestamp} 11-21.halfhour.log
The point is my source log 11-21.slow.log has query cache hit info, for instance :
# Time: 170109 12:08:43
# User@Host: pidf_user[pidf_user] @ [10.226.13.132]
# Thread_id: 32829731 Schema: webmbpidf QC_hit: No
# Query_time: 0.015387 Lock_time: 0.000038 Rows_sent: 0 Rows_examined: 0
Whereas the filtered output 11-21.halfhour.log doesn't :
# Time: 170109 11:59:59
# User@Host: pest_user[pest_user] @ 10.226.13.13 []
# Thread_id: 32805954
# Query_time: 0.000221 Lock_time: 0.000000 Rows_sent: 0 Rows_examined: 0
l lose schema information as well but it's less a problem in my situation.
Is there a way to keep the query cache info in the slowlog output ?
Any help would me much appreciated.
Asked by Tom Desp
(527 rep)
Jan 12, 2017, 02:12 PM
Last activity: May 21, 2017, 08:15 AM
Last activity: May 21, 2017, 08:15 AM