---
title: Install log-redact on Linux | Snap Store
description: Get the latest version of log-redact for Linux - Redact IPs, hostnames,
  MACs, emails and credentials from text files
url: https://snapcraft.io/log-redact
---

# log-redact

[Marcelo Subtil Marcal (msmarcal)](https://snapcraft.io/publisher/msmarcal "View all snaps from Marcelo Subtil Marcal (msmarcal)")

* [Marcelo Subtil Marcal (msmarcal)](https://snapcraft.io/publisher/msmarcal "View all snaps from Marcelo Subtil Marcal (msmarcal)")

latest/stable 1.0.0

Install latest/stable of log-redact

---

**Install using the command line**

```
sudo snap install log-redact
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* log-redact

---

### License

* MIT

---

### Last updated

* 25 August 2026 - latest/stable
* 25 August 2026 - latest/edge

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/log-redact#report-snap-modal)

---

* [Description](https://snapcraft.io/log-redact#tab-description)
* [Security](https://snapcraft.io/log-redact#tab-security)

#### Redact IPs, hostnames, MACs, emails and credentials from text files

redact scans text files (logs, configuration files, support bundles) and
replaces sensitive data with placeholder tags before you share them
publicly - for example when opening a bug report, posting to a forum, or
attaching output to a support ticket.

Detected and redacted by default:

* IPv4 and IPv6 addresses (all common notations, including compressed
  and loopback forms)
* MAC addresses
* Email addresses
* Hostnames / FQDNs (generic TLD/suffix detection, e.g. .com, .net,
  .internal, .local, .corp, .lan, .intranet, .io, .dev, .cloud, ...)
* Credentials: AWS access keys, GitHub/Slack tokens, JWTs, Bearer
  tokens, PEM private key blocks, and password/api\_key/secret/token
  assignments in config files

You can also pass one or more --domain flags to redact client-specific
domains that aren't covered by the generic hostname detection (useful
when working across multiple client engagements with different internal
domains).

The original file is never modified - a new file with a .redacted
suffix is written next to it (or output goes to stdout with --stdout).

Usage:
redact file.log
redact \*.log config.yaml
redact file.log --domain client.example --domain internal.client.net
redact file.log --stdout

---

## Install log-redact on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/log-redact/arch)

[### CentOS](https://snapcraft.io/install/log-redact/centos)

[### Debian](https://snapcraft.io/install/log-redact/debian)

[### elementary OS](https://snapcraft.io/install/log-redact/elementary)

[### Fedora](https://snapcraft.io/install/log-redact/fedora)

[### KDE Neon](https://snapcraft.io/install/log-redact/kde-neon)

[### Kubuntu](https://snapcraft.io/install/log-redact/kubuntu)

[### Manjaro](https://snapcraft.io/install/log-redact/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/log-redact/pop)

[### openSUSE](https://snapcraft.io/install/log-redact/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/log-redact/rhel)

[### Ubuntu](https://snapcraft.io/install/log-redact/ubuntu)
