# Win environment, parse failure, unexpected end-of-input

**URL:** <https://discuss.elastic.co/t/win-environment-parse-failure-unexpected-end-of-input/43114>\
**Category:** Logstash\
**Created:** [March 1, 2016, 12:02pm UTC](https://discuss.elastic.co/t/win-environment-parse-failure-unexpected-end-of-input/43114 "2016-03-01T12:02:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bongo\_zg](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@bongo\_zg](https://discuss.elastic.co/u/bongo_zg)\
**Post date:** [March 1, 2016, 12:02pm UTC](https://discuss.elastic.co/t/win-environment-parse-failure-unexpected-end-of-input/43114/1 "2016-03-01T12:02:51Z")

</div>

Logstash 2.2.1 on windows with config file:

> input {  
> file {  
> path =\> "c:/oracle\_output2/my\_log\*.log"  
> start\_position =\> beginning  
> sincedb\_path =\> "c:/oracle\_output2/my\_log.db"  
> codec =\> "json"  
> }  
> }  
> output {  
> stdout { codec =\> rubydebug }  
> elasticsearch{  
> hosts =\> ["192.168.1.1:9200"]  
> index =\> "my\_index"  
> document\_type =\> "my\_log"  
> }   
> }

trying to load json file like:

> {  
> "object\_id": 191211,  
> "id\_type": 4004,  
> "id\_number": "6784375",  
> "country\_of\_origin": 196,  
> "date\_of\_issue": "20.12.2015",  
> "expiry\_date": "20.12.2018",  
> "country\_of\_issue": 196,  
> "seq\_id": 100088  
> }

but, getting error like this:  
←[31mJSON parse failure. Falling back to plain-text {:error=\>#\<LogStash::Json::ParserError: Unexpected end-of-input: expected close marker for OBJECT (from [Source: [B@14811b95; line: 1, column: 0])  
at [Source: [B@14811b95; line: 10, column: 194]\>, :data=\>"{\r"object\_id": 191211,\r"id\_type": 4004,\r"id\_number": "6784375",\r"country\_of\_origin": 196,\r"date\_of\_issue": "20.12.2015",  
r"expiry\_date": "20.12.2018",\r"country\_of\_issue": 196,\r"seq\_id": 100088\r", :level=\>:error}←[0m

I tried to google, change some params, check json file, but still the same.

does anyone know?

tnx

---

<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 6, 2017, 5:09am UTC](https://discuss.elastic.co/t/win-environment-parse-failure-unexpected-end-of-input/43114/2 "2017-07-06T05:09:09Z")

</div>


