# pt-query-digest no longer has --execute option?

**URL:** <https://forums.percona.com/t/pt-query-digest-no-longer-has-execute-option/2996>\
**Category:** Percona Toolkit\
**Created:** [October 9, 2013, 9:47am UTC](https://forums.percona.com/t/pt-query-digest-no-longer-has-execute-option/2996 "2013-10-09T09:47:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![WheresWardy](https://avatars.discourse-cdn.com/v4/letter/w/db5fbb/32.png) [@WheresWardy](https://forums.percona.com/u/WheresWardy)\
**Post date:** [October 9, 2013, 9:47am UTC](https://forums.percona.com/t/pt-query-digest-no-longer-has-execute-option/2996/1 "2013-10-09T09:47:35Z")

</div>

I was using a previous version of pt-query-digest to watch the slow log and execute SELECT queries on another server, like so:

```auto
tail -f -n0 slow-log | pt-query-digest --no-report --execute h=server,u=username,p=password --filter '$event->{fingerprint} =~ m/^select/'

```

When I try and run this with the latest version of pt-query-digest (2.2.4) I get “Unknown option: execute”. Is it still possible to replicate the behaviour I’m looking for in the latest version?

---

<div class="post-metadata">

**Author:** ![mirfan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mirfan/32/16890_2.png) [@mirfan](https://forums.percona.com/u/mirfan)\
**Post date:** [October 9, 2013, 3:29pm UTC](https://forums.percona.com/t/pt-query-digest-no-longer-has-execute-option/2996/2 "2013-10-09T15:29:04Z")

</div>

There are few options which are obsoleted in latest version of pt-query-digest tool e.g. --execute --mirror etc.  
If you still need that functionality you can use old version of pt-query-digest. or you can use [percona playback tool](http://www.percona.com/doc/percona-playback/)

---

<div class="post-metadata">

**Author:** ![WheresWardy](https://avatars.discourse-cdn.com/v4/letter/w/db5fbb/32.png) [@WheresWardy](https://forums.percona.com/u/WheresWardy)\
**Post date:** [October 9, 2013, 4:22pm UTC](https://forums.percona.com/t/pt-query-digest-no-longer-has-execute-option/2996/3 "2013-10-09T16:22:52Z")

</div>

Thanks for the update, I shall look into Percona Playback. Are you able to filter the slow log for certain queries (in this case SELECT) like you were with pt-query-digest fingerprinting?
