# File input plugin - Delimiter property not working

**URL:** <https://discuss.elastic.co/t/file-input-plugin-delimiter-property-not-working/276650>\
**Category:** Logstash\
**Created:** [June 22, 2021, 12:30pm UTC](https://discuss.elastic.co/t/file-input-plugin-delimiter-property-not-working/276650 "2021-06-22T12:30:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![parosio](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/parosio/32/27367_2.png) [@parosio](https://discuss.elastic.co/u/parosio)\
**Post date:** [June 22, 2021, 12:30pm UTC](https://discuss.elastic.co/t/file-input-plugin-delimiter-property-not-working/276650/1 "2021-06-22T12:30:30Z")

</div>

Hello,  
I have logstash [6.7] complaining when I set "\r\n" as delimiter for the file input plugin.

The file I'd like logstash to handle is

```auto
file incident_sample.csv
incident_sample.csv: ASCII text, with very long lines, with CRLF, LF line terminators

```

It's a csv file, with some fields which are BLOBs dumps, containing LF characters. The record is actually terminated with CRLF (0x0d0x0a).

Logstash informs that cannot reach EOL, although there are more than 20 `\r\n` in sample file:

`[2021-06-22T12:03:49,625][INFO][filewatch.readmode.handlers.readfile] buffer_extract: a delimiter can't be found in current chunk, maybe there are no more delimiters or the delimiter is incorrect or the text before the delimiter, a 'line', is very large, if this message is logged often try increasing the `file_chunk_size` setting. {"delimiter"=>"\\r\\n", "read_position"=>32768, "bytes_read_count"=>28720, "last_known_file_size"=>61488, "file_path"=>"/tmp/incident_sample.csv"}`

Please note that, if I replace `\r\n` with `######` in data file and use

```auto
input {
    file {
        path => ["/tmp/incident_sample.csv"]
        sincedb_path => "/dev/null"
        mode => "read"
        delimiter => "######"
    } 
}

```

the lines are correctly recognized (and multiline fields retain their `\n`)

Besides replacing the record terminator in input files, is there any other solution for my problem?

TIA,  
Paolo

PS  
A similar unexpected handling of '\r\n' is met if I set that delimiter for the codec property:

```auto
input {
  file {
    codec => line {
        charset => "ISO-8859-1"
        delimiter => "\r\n" # does not work
    } . . . 

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 20, 2021, 12:31pm UTC](https://discuss.elastic.co/t/file-input-plugin-delimiter-property-not-working/276650/2 "2021-07-20T12:31:19Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
