﻿---
title: Edn codec plugin v3.1.1
description: Plugin version: v3.1.1, Released on: 2026-08-12, 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-1-plugins-codecs-edn
products:
  - Logstash
applies_to:
  - Elastic Stack: Generally available
---

# Edn codec plugin v3.1.1
- Plugin version: v3.1.1
- Released on: 2026-08-12
- [Changelog](https://github.com/logstash-plugins/logstash-codec-edn/blob/v3.1.1/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.1-plugins-codecs-edn-target) | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#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]"
        }
      }
    }
```