# Problem regarding input from a file

**URL:** <https://discuss.elastic.co/t/problem-regarding-input-from-a-file/136619>\
**Category:** Logstash\
**Created:** [June 20, 2018, 6:46am UTC](https://discuss.elastic.co/t/problem-regarding-input-from-a-file/136619 "2018-06-20T06:46:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAYESH\_PAUNIKAR](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JAYESH\_PAUNIKAR](https://discuss.elastic.co/u/JAYESH_PAUNIKAR)\
**Post date:** [June 20, 2018, 6:46am UTC](https://discuss.elastic.co/t/problem-regarding-input-from-a-file/136619/1 "2018-06-20T06:46:04Z")

</div>

i have a file which has a **single line of 53000 length** and i am trying to take input from this file in logstash, but it is not happening. What may be the issue?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 20, 2018, 6:47am UTC](https://discuss.elastic.co/t/problem-regarding-input-from-a-file/136619/2 "2018-06-20T06:47:49Z")

</div>

The line length could definitely be a problem, but there are other possibilities. What does your configuration look like?

---

<div class="post-metadata">

**Author:** ![JAYESH\_PAUNIKAR](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JAYESH\_PAUNIKAR](https://discuss.elastic.co/u/JAYESH_PAUNIKAR)\
**Post date:** [June 20, 2018, 8:03am UTC](https://discuss.elastic.co/t/problem-regarding-input-from-a-file/136619/3 "2018-06-20T08:03:59Z")

</div>

The config file is as follows:

input{

```
 file {

	path => "C:\Users\jpaunika\Programs\ELK\logstash-6.2.3\logstash-6.2.3\cuc.json"
	type => "json"
	start_position=>"beginning"
	sincedb_path =>"NUL"
	codec => json
	
}

```

}  
output{

```
elasticsearch {

	hosts => ["localhost:9200"]
	index => "jayesh"

}

stdout{}

```

}

---

<div class="post-metadata">

**Author:** ![JAYESH\_PAUNIKAR](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JAYESH\_PAUNIKAR](https://discuss.elastic.co/u/JAYESH_PAUNIKAR)\
**Post date:** [June 20, 2018, 8:06am UTC](https://discuss.elastic.co/t/problem-regarding-input-from-a-file/136619/4 "2018-06-20T08:06:01Z")

</div>

How to solve this line length problem if that is the case?

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [June 20, 2018, 9:47am UTC](https://discuss.elastic.co/t/problem-regarding-input-from-a-file/136619/5 "2018-06-20T09:47:49Z")

</div>

If that indeed is the problem (your configuration looks okay) then it's a bug/limitation in Logstash or one of its plugins. Check GitHub for existing issues and file a new one if the search turned up empty.

---

<div class="post-metadata">

**Author:** ![JAYESH\_PAUNIKAR](https://avatars.discourse-cdn.com/v4/letter/j/b3f665/32.png) [@JAYESH\_PAUNIKAR](https://discuss.elastic.co/u/JAYESH_PAUNIKAR)\
**Post date:** [June 20, 2018, 9:57am UTC](https://discuss.elastic.co/t/problem-regarding-input-from-a-file/136619/6 "2018-06-20T09:57:52Z")

</div>

okay 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:** [July 18, 2018, 9:57am UTC](https://discuss.elastic.co/t/problem-regarding-input-from-a-file/136619/7 "2018-07-18T09:57:53Z")

</div>

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