Sha256: 54d3d13b2800878c8ef0f173bea3343b4a95af0ad2b75ab805e90d8a6dbb6e78

Contents?: true

Size: 1.01 KB

Versions: 7

Compression:

Stored size: 1.01 KB

Contents

# fluentd-plugin-maskrx

A simple Fluentd filter plugin to mask string events using a regex.

### Configurations

| Block | Config  | Default | Desc |
| ----- | ------  | ------- | ---- |
| mask  | keys    | nil     | (Array)  Keys to perform mask on, if none than all keys are filtered. |
| mask  | pattern | nil     | (Regexp) REQUIRED: Ruby Regexp matching one or more strings within a record key. |
| mask  | mask    | \*\*\*\*\*\*\*\* | (String) The mask string to be used in replacing the matched strings within the record. |

#### Example configuration

```
<filter **>
  @type maskrx

  <mask>
    pattern /password=([.[^ ]]+)(?: |$)/
    mask    xxxxx
  </mask>
  <mask>
    keys token, accesskey
    pattern /^.+$/
  </mask>
</filter>
```

##### Example record
```
{
    "message":"This is a password=foobarbah",
    "password":"password=foobarbah",
    "token": "some-token"
}
```

##### Example output
```
{
    "message":"This is a password=xxxxx",
    "password":"password=foobarbah",
    "token": "some-token"
}
```

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fluent-plugin-maskrx-0.0.1.beta7 README.md
fluent-plugin-maskrx-0.0.1.beta6 README.md
fluent-plugin-maskrx-0.0.1.beta5 README.md
fluent-plugin-maskrx-0.0.1.beta4 README.md
fluent-plugin-maskrx-0.0.1.beta3 README.md
fluent-plugin-maskrx-0.0.1.beta2 README.md
fluent-plugin-maskrx-0.0.1.beta1 README.md