PT-SIFT(1)
π pt-sift β like, the manual page, bestie
okay so this is a page from the User Contributed Perl Documentation collection, and the tool is called pt-sift. Think of it as the little tour guide that walks you through everything pt-stalk captured while your MySQL server was having a whole meltdown. π«Ά
β¨ NAME β¨
pt-sift β it browses the files created by pt-stalk. that's it, that's the job. π
πΈ SYNOPSIS πΈ
Usage: pt-sift FILE|PREFIX|DIRECTORY
So pt-sift browses files that pt-stalk made. Here's the vibe check on how it picks what to look at:
- no options at all? it browses all the pt-stalk files in
/var/lib/pt-stalkβ but only if that directory actually exists. if it doesn't, it just uses the current working directory instead. lowkey convenient. β¨ - you gave it a
FILE? it browses files with the same prefix, in that file's directory. π¦ - you gave it a
PREFIX? it browses files in/var/lib/pt-stalk(or the current working directory) that share that prefix. π - you gave it a
DIRECTORY? it browses all the pt-stalk files in there. periodt. π
π RISKS π
ngl, Percona Toolkit is mature, proven in the real world, and well tested β but like, all database tools can pose a risk to your system and your database server. that's just the truth. so before you use this tool, please, for the love of everything:
- Read the tool's documentation π
- Review the tool's known BUGS (they're right down there, bestie)
- Test the tool on a non-production server π
- Backup your production server and verify the backups β verifying is the whole point, don't skip it π
π¦ DESCRIPTION π¦
okay so here's what actually happens. pt-sift downloads other tools that it might need β like pt-diskstats β and then it makes a list of the unique timestamp prefixes of all the files in the directory, as written by the pt-stalk tool. iconic behavior honestly. π
Then:
- if you specified a timestamp on the command line, it starts with that sample of data π
- otherwise it starts by showing you a list of the timestamps and prompting you to pick one β
and after that? it displays a summary of the selected sample, and you get to navigate and inspect with keystrokes. main character energy. π
β¨οΈ the keystroke commands β¨οΈ
dβ sets the action to start thept-diskstatstool on the sample's disk performance statistics. πΎiβ sets the action to view the firstINNODB STATUSsample inless.mβ displays the first 4 samples ofSHOW STATUScounters side by side with thept-mexttool. four whole samples, side by side, slay.nβ summarizes the first sample of netstat data in two ways: by originating host, and by connection state. two ways!! multitasking icon. π§jβ select the next timestamp as the active sample. β‘οΈkβ select the previous timestamp as the active sample. β¬ οΈqβ quit the program. bye bestie π1β sets the action for each sample to the default, which is to view a summary of the sample.- (this one has no key printed in the manual, bestie, i'm just reporting what it says) β sets the action to just list the files in the sample. π
*β sets the action to view all of the sample's files in thelessprogram. all of them. every single one. π
π OPTIONS π
so few options, we love a low-maintenance king:
--helpβ show help and exit. π«Ά--versionβ show version and exit. β¨
π ENVIRONMENT π
this tool does not use any environment variables. like, none. zero. a clean slate. π§
β SYSTEM REQUIREMENTS β
this tool requires Bash v3 and the following programs: pt-diskstats, pt-pmp, pt-mext, and pt-align.
and if these programs are not in your PATH, they will be fetched from the Internet if curl is available. yes, it'll go get them itself. resourceful. π
π BUGS π
for a list of known bugs, see <https://jira.percona.com/projects/PT/issues>.
please report bugs at <https://jira.percona.com/projects/PT>. and include the following info in your bug report, otherwise the maintainers are gonna be like "???" π
- Complete command-line used to run the tool
- Tool
--version - MySQL version of all servers involved
- Output from the tool including STDERR
- Input files (log/dump/config files, etc.)
if possible, include debugging output by running the tool with PTDEBUG; see ENVIRONMENT. π
π ATTENTION π
Using PTDEBUG might expose passwords. When debug is enabled, all command line parameters are shown in the output.
fr fr, be careful with that one. don't paste your debug output into the group chat. π
π₯ DOWNLOADING π₯
visit <http://www.percona.com/software/percona-toolkit/> to download the latest release of Percona Toolkit. or, get the latest release from the command line:
wget percona.com/get/percona-toolkit.tar.gz
wget percona.com/get/percona-toolkit.rpm
wget percona.com/get/percona-toolkit.deb
you can also get individual tools from the latest release:
wget percona.com/get/TOOL
replace TOOL with the name of any tool. any of them. go wild. πΈ
π AUTHORS π
Baron Schwartz
π ABOUT PERCONA TOOLKIT π
this tool is part of Percona Toolkit, a collection of advanced command-line tools for MySQL developed by Percona. Percona Toolkit was forked from two projects in June, 2011: Maatkit and Aspersa. those projects were created by Baron Schwartz and primarily developed by him and Daniel Nichter.
visit <http://www.percona.com/software/> to learn about other free, open-source software from Percona. π«Ά
πΈ COPYRIGHT, LICENSE, AND WARRANTY πΈ
This program is copyright 2011-2026 Percona LLC and/or its affiliates, 2010-2011 Baron Schwartz.
THIS PROGRAM IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
like, no promises, bestie. π
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2; OR the Perl Artistic License. On UNIX and similar systems, you can issue man perlgpl or man perlartistic to read these licenses.
You should have received a copy of the GNU General Public License, version 2 along with this program; if not, see <https://www.gnu.org/licenses/>.
π¦ VERSION π¦
pt-sift 3.7.1-4
and that's the whole page, bestie!! this beauty is pt-sift version 3.7.1-4, living in the Percona Toolkit docs, generated with perl v5.42.2 and dated 2026-09-01. go forth and sift π
β¨π
π¦ where this page comes from
- arch rolling: percona-toolkit 3.7.1_4-1 Β· GPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms