﻿---
title: Cef codec plugin v4.1.3
description: Plugin version: v4.1.3, Released on: 2017-06-23, 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/v4-1-3-plugins-codecs-cef
---

# Cef codec plugin v4.1.3
- Plugin version: v4.1.3
- Released on: 2017-06-23
- [Changelog](https://github.com/logstash-plugins/logstash-codec-cef/blob/v4.1.3/CHANGELOG.md)

For other versions, see the [overview list](https://docs-v3-preview.elastic.dev/elastic/logstash-docs-md/tree/main/vpr/codec-cef-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-cef). For the list of Elastic supported plugins, please consult the [Elastic Support Matrix](https://www.elastic.co/support/matrix#matrix_logstash_plugins).

## Description

Implementation of a Logstash codec for the ArcSight Common Event Format (CEF) Based on Revision 20 of Implementing ArcSight CEF, dated from June 05, 2013 
If this codec receives a payload from an input that is not a valid CEF message, then it will produce an event with the payload as the *message* field and a *_cefparsefailure* tag.

## Cef Codec Configuration Options


| Setting                                                        | Input type                                                                 | Required |
|----------------------------------------------------------------|----------------------------------------------------------------------------|----------|
| [`delimiter`](#v4.1.3-plugins-codecs-cef-delimiter)`delimiter` | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)string | No       |
| [`fields`](#v4.1.3-plugins-codecs-cef-fields)`fields`          | [array](/elastic/logstash-docs-md/tree/main/lsr/value-types#array)array    | No       |
| [`name`](#v4.1.3-plugins-codecs-cef-name)`name`                | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)string | No       |
| [`product`](#v4.1.3-plugins-codecs-cef-product)`product`       | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)string | No       |
| [`severity`](#v4.1.3-plugins-codecs-cef-severity)`severity`    | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)string | No       |
| [`signature`](#v4.1.3-plugins-codecs-cef-signature)`signature` | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)string | No       |
| [`vendor`](#v4.1.3-plugins-codecs-cef-vendor)`vendor`          | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)string | No       |
| [`version`](#v4.1.3-plugins-codecs-cef-version)`version`       | [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)string | No       |


### `delimiter`

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

If your input puts a delimiter between each CEF event, you’ll want to set this to be that delimiter.
For example, with the TCP input, you probably want to put this:
```
input {
  tcp {
    codec => cef { delimiter => "\r\n" }
    # ...
  }
}
```

This setting allows the following character sequences to have special meaning:
- `\r` (backslash "r") - means carriage return (ASCII 0x0D)
- `\n` (backslash "n") - means newline (ASCII 0x0A)


### `deprecated_v1_fields` (DEPRECATED)

- DEPRECATED WARNING: This configuration item is deprecated and may not be available in future versions.
- Value type is [boolean](/elastic/logstash-docs-md/tree/main/lsr/value-types#boolean)
- There is no default value for this setting.

Set this flag if you want to have both v1 and v2 fields indexed at the same time. Note that this option will increase the index size and data stored in outputs like Elasticsearch This option is available to ease transition to new schema

### `fields`

- Value type is [array](/elastic/logstash-docs-md/tree/main/lsr/value-types#array)
- Default value is `[]`

Fields to be included in CEV extension part as key/value pairs

### `name`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- Default value is `"Logstash"`

Name field in CEF header. The new value can include `%{foo}` strings to help you build a new value from other parts of the event.

### `product`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- Default value is `"Logstash"`

Device product field in CEF header. The new value can include `%{foo}` strings to help you build a new value from other parts of the event.

### `sev` (DEPRECATED)

- DEPRECATED WARNING: This configuration item is deprecated and may not be available in future versions.
- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- There is no default value for this setting.

Deprecated severity field for CEF header. The new value can include `%{foo}` strings to help you build a new value from other parts of the event.
This field is used only if :severity is unchanged set to the default value.
Defined as field of type string to allow sprintf. The value will be validated to be an integer in the range from 0 to 10 (including). All invalid values will be mapped to the default of 6.

### `severity`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- Default value is `"6"`

Severity field in CEF header. The new value can include `%{foo}` strings to help you build a new value from other parts of the event.
Defined as field of type string to allow sprintf. The value will be validated to be an integer in the range from 0 to 10 (including). All invalid values will be mapped to the default of 6.

### `signature`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- Default value is `"Logstash"`

Signature ID field in CEF header. The new value can include `%{foo}` strings to help you build a new value from other parts of the event.

### `vendor`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- Default value is `"Elasticsearch"`

Device vendor field in CEF header. The new value can include `%{foo}` strings to help you build a new value from other parts of the event.

### `version`

- Value type is [string](/elastic/logstash-docs-md/tree/main/lsr/value-types#string)
- Default value is `"1.0"`

Device version field in CEF header. The new value can include `%{foo}` strings to help you build a new value from other parts of the event.