# Logstash error

**URL:** https://discuss.elastic.co/t/logstash-error/329706
**Category:** Logstash
**Created:** [April 11, 2023, 5:31am UTC](https://discuss.elastic.co/t/logstash-error/329706 "2023-04-11T05:31:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sks](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@sks](https://discuss.elastic.co/u/sks)
#### Post date: [April 11, 2023, 5:31am UTC](https://discuss.elastic.co/t/logstash-error/329706/1 "2023-04-11T05:31:31Z")

</div>

Dear sir ;  
i want to send a json log file from my local pc to Elasticsearch  
my sample json file is  
{  
"people" : [  
{  
"firstName": "Joe",  
"lastName": "Jackson",  
"gender": "male",  
"age": 28,  
"number": "7349282382"  
},  
{  
"firstName": "James",  
"lastName": "Smith",  
"gender": "male",  
"age": 32,  
"number": "5678568567"  
},  
{  
"firstName": "Emily",  
"lastName": "Jones",  
"gender": "female",  
"age": 24,  
"number": "456754675"  
}  
]  
}

my configuration file  
input {  
file{  
path=\>"/home/mtech4/Downloads/sample4.json"  
start\_position =\> "beginning"  
sincedb\_path =\> "NUL"  
codec =\> json

}  
}  
output {  
elasticsearch{hosts =\>["[https://localhost:9200](https://localhost:9200)" ]  
ssl\_certificate\_verification=\>false  
user =\>"elastic"  
password =\> "my pass" }  
}

i got this error pls help  
supported", :exception=\>LogStash::Json::ParserError, :data=\>" "number": "456754675""}  
[ERROR] 2023-04-11 16:16:37.718 [[main]\<file] json - JSON parse error, original data now in message field {:message=\>"Unexpected close marker '}': expected ']' (for root starting at [Source: (String)" }"; line: 1, column: 0])\n at [Source: (String)" }"; line: 1, column: 6]", :exception=\>LogStash::Json::ParserError, :data=\>" }"}  
[ERROR] 2023-04-11 16:16:37.719 [[main]\<file] json - JSON parse error, original data now in message field {:message=\>"Unexpected close marker ']': expected '}' (for root starting at [Source: (String)"]"; line: 1, column: 0])\n at [Source: (String)"]"; line: 1, column: 4]", :exception=\>LogStash::Json::ParserError, :data=\>" ]"}  
/usr/share/logstash/vendor/bundle/jruby/2.6.0/gems/manticore-0.9.1-java/lib/manticore/client.rb:284: warning: already initialized constant Manticore::Client::HttpPost

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [April 11, 2023, 3:16pm UTC](https://discuss.elastic.co/t/logstash-error/329706/2 "2023-04-11T15:16:08Z")

</div>

If your JSON is pretty-printed then you will need a multiline codec. See [this](https://discuss.elastic.co/t/exception-logstash-unexpected-character-code-58-expected-a-valid-value-number-string-array-object-true-false-or-null/241198/2) thread.

---

<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: [May 9, 2023, 3:16pm UTC](https://discuss.elastic.co/t/logstash-error/329706/3 "2023-05-09T15:16:44Z")

</div>

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