PMLOGREDACT(1)
π PMLOGREDACT β bestie edition β¨
okay so real talk, this is the manual page for pmlogredact, and it's literally your new best friend if you've ever needed to yeet sensitive stuff out of a PCP archive before sending it somewhere. sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
pmlogredact β removes sensitive information from PCP archives π΅οΈβοΈ
π SYNOPSIS π
pmlogredact [-vx?] [-D debug] [-c config] inarch [outarch]
that's it. that's the whole vibe. no cap.
π DESCRIPTION π
so like, Performance Co-Pilot (PCP) archives can hold a whole treasure chest of info, collected from literally every corner of a system. it's giving "we know everything" energy. π
but here's the thing bestie β some of that info might be considered sensitive once it leaves the context of the original collection and you're just trying to do system performance analysis. examples of the sensitive stuff we're talking about include:
- user names
- paths to user home directories (which, lowkey, can imply user names anyway π)
- hostnames
- IP addresses
- MAC addresses
- command line arguments
- process environment variables
- etc.
pmlogredact is your girl for removing that sensitive info before archives get shipped off to another org, or stored in another geography, or used to meet regulatory or privacy compliance. the output archive outarch is literally just the redacted version of the input archive inarch. iconic behaviour. β¨
ngl, pmlogredact is a thin wrapper around pmlogrewrite(1) β so the config files for pmlogredact follow the exact same syntax as the config files for pmlogrewrite(1). same rules, different outfit. π
there's a default set of redaction rules chilling in the $PCP_VAR_DIR/config/pmlogredact/* files. these rules:
- remove some metrics
- rewrite the instance domains of some metrics
- rewrite the values of some metrics
and if you don't want the default set? the -x (or --exclude-std) option is right there β use it to not use the default rules. main character move.
want extra or alternative config files? you've got the -c (or --config) option, and you can use it one or more times, where each config is either a file or a directory (and a directory means all the files within that directory, yes ma'am).
the -v (or --verbose) option adds verbosity, and it gets passed directly to pmlogrewrite(1). no middleman.
and the -? (or --help) option? displays a usage message and exits. short, sweet, slays. π
π FILES π
$PCP_VAR_DIR/config/pmlogredact/*β the default redaction rules π
πΈ PCP ENVIRONMENT πΈ
environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. it's giving customizable. β¨
on each installation, the file /etc/pcp.conf contains the local values for these variables.
and the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5). periodt.
π¦ DEBUGGING OPTIONS π¦
the -D or --debug option enables the output of additional diagnostics on stderr to help triage problems. π
real talk though β the info is sometimes cryptic and is primarily intended to provide guidance for developers rather than for end-users. iykyk. π
debug is a comma separated list of debugging options. use pmdbg(1) with the -l option to get a list of the available debugging options and what they actually mean. go off, detective. π
π SEE ALSO π
pmlogrewrite(1), pcp.conf(5) and pcp.env(5). that's the squad. π«Ά
and that's the whole page, bestie!! π this came to you from Performance Co-Pilot (that's the PCP girlies π) β go forth and redact responsibly, mwah πβ¨π
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2023 Ken McDonell. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms