# Redaction

## Objective

Effective method of eliminating sensitive event field data by either nullifying or replacing with a blank value.

## Example & DSL attributes

This DSL will replace the contents of the field with blank field.

The **obfuscation** strategy called `redactPII`, which is applied to two fields: `address` and `firstlast_name`.

1. <mark style="color:green;">**address**</mark>\
   The value for the `address` field is redacted and replaced with `null` (i.e., the address is completely removed).
2. <mark style="color:green;">**firstlast\_name**</mark>\
   The value for the `firstlast_name` field is not redacted and remains unchanged (`as null: false` means no obfuscation).

This strategy helps protect personally identifiable information (PII) by redacting sensitive data while retaining non-sensitive data.

```yaml
obfuscation:
  name: redactPII
  fields:
    address: 
      redact:
        as null: true
    firstlast_name:
      redact:
        as null: false
```

### Attributes schema

<table><thead><tr><th width="193">Attribute</th><th width="217">Description</th><th width="219">Data Type</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>as null</td><td>If set to true replace value with a null otherwise as a empty string</td><td><p>Boolean</p><p>Default: true</p></td><td>false</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fractalworks.io/joule/components/processors/transformation/obfuscation/redaction.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
