28 lines
920 B
Markdown
28 lines
920 B
Markdown
---
|
|
layout: default
|
|
title: rename_keys
|
|
parent: Processors
|
|
grand_parent: Configuring Data Prepper
|
|
nav_order: 44
|
|
---
|
|
|
|
# rename_keys
|
|
|
|
## Overview
|
|
|
|
Rename keys in an event. `rename_keys` is part of [mutate event](https://github.com/opensearch-project/data-prepper/tree/main/data-prepper-plugins/mutate-event-processors#mutate-event-processors) processors.
|
|
|
|
Option | Required | Type | Description
|
|
:--- | :--- | :--- | :---
|
|
entries | Yes | List | List of entries. Valid values are `from_key`, `to_key`, and `overwrite_if_key_exists`. Renaming occurs in the order defined.
|
|
from_key | N/A | N/A | The key of the entry to be renamed.
|
|
to_key | N/A | N/A | The new key of the entry.
|
|
overwrite_if_to_key_exists | No | Boolean | If true, the existing value gets overwritten if `to_key` already exists in the event.
|
|
|
|
<!---## Configuration
|
|
|
|
Content will be added to this section.
|
|
|
|
## Metrics
|
|
|
|
Content will be added to this section.---> |