﻿---
title: Edn codec plugin v3.1.0
description: Plugin version: v3.1.0, Released on: 2021-08-04, Changelog. For other versions, see the overview list. To learn more about Logstash, see the Logstash...
url: https://docs-v3-preview.elastic.dev/elastic/logstash-docs-md/tree/main/vpr/v3-1-0-plugins-codecs-edn
---

# Edn codec plugin v3.1.0
- Plugin version: v3.1.0
- Released on: 2021-08-04
- [Changelog](https://github.com/logstash-plugins/logstash-codec-edn/blob/v3.1.0/CHANGELOG.md)

For other versions, see the [overview list](https://docs-v3-preview.elastic.dev/elastic/logstash-docs-md/tree/main/vpr/codec-edn-index).
To learn more about Logstash, see the [Logstash Reference](https://www.elastic.co/guide/en/logstash/current/index.html).

## Getting help

For questions about the plugin, open a topic in the [Discuss](http://discuss.elastic.co) forums. For bugs or feature requests, open an issue in [Github](https://github.com/logstash-plugins/logstash-codec-edn). For the list of Elastic supported plugins, please consult the [Elastic Support Matrix](https://www.elastic.co/support/matrix#matrix_logstash_plugins).

## Description

Reads and produces EDN format data.

## Edn Codec configuration options


| Setting                                               | Input type                                                                 | Required |
|-------------------------------------------------------|----------------------------------------------------------------------------|----------|
| [`target`](#v3.1.0-plugins-codecs-edn-target)`target` | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)string | No       |


### `target`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- There is no default value for this setting.
- The option is only relevant while decoding.

Define the target field for placing the decoded fields. If this setting is not set, data will be stored at the root (top level) of the event.
For example, if you want data to be put under the `document` field:
```
    input {
      tcp {
        port => 4242
        codec => edn {
          target => "[document]"
        }
      }
    }
```