# Delimiter error when using Logstash File Input Plugin. Files not ingested fully

**URL:** <https://discuss.elastic.co/t/delimiter-error-when-using-logstash-file-input-plugin-files-not-ingested-fully/160683>\
**Category:** Logstash\
**Created:** [December 13, 2018, 7:52am UTC](https://discuss.elastic.co/t/delimiter-error-when-using-logstash-file-input-plugin-files-not-ingested-fully/160683 "2018-12-13T07:52:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dx123](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@dx123](https://discuss.elastic.co/u/dx123)\
**Post date:** [December 13, 2018, 7:52am UTC](https://discuss.elastic.co/t/delimiter-error-when-using-logstash-file-input-plugin-files-not-ingested-fully/160683/1 "2018-12-13T07:52:08Z")

</div>

I'm using the Logstash File Input Plugin to ingest a a file but I am receiving this error:

`[[main]<file] 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"=>"\n", "read_position"=>0, "bytes_read_count"=>2661945, "last_known_file_size"=>2661945, "file_path"=>"/Desktop/test.json"}`

I'm not sure if it is due to the above error, but Logstash is hence unable to ingest all of the events in the file. I have tried many variations of the config but to no avail. Below is my config:

```
input {
	file {
		path => ["/Desktop/test.json"]
	    mode => "read"
		codec => "json"
		file_completed_action => "log"
		file_completed_log_path => "/Desktop/logstash_completed_files.txt"
		sincedb_path => "/dev/null"
		file_chunk_size => 104857600
		file_chunk_count => 100
	}
}

```

Anyone able to explain what the delimiter error means and how to fix it? Thanks!

---

<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:** [January 10, 2019, 7:52am UTC](https://discuss.elastic.co/t/delimiter-error-when-using-logstash-file-input-plugin-files-not-ingested-fully/160683/2 "2019-01-10T07:52:18Z")

</div>

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