# Logstash Json Parse Error

**URL:** <https://discuss.elastic.co/t/logstash-json-parse-error/267058>\
**Category:** Logstash\
**Created:** [March 12, 2021, 8:44am UTC](https://discuss.elastic.co/t/logstash-json-parse-error/267058 "2021-03-12T08:44:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anu6006](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Anu6006](https://discuss.elastic.co/u/Anu6006)\
**Post date:** [March 12, 2021, 8:44am UTC](https://discuss.elastic.co/t/logstash-json-parse-error/267058/1 "2021-03-12T08:44:20Z")

</div>

Hi Team,  
I'm trying to get **NSG Flow logs** through _Azure Blob Storage_  
plugin version:  
logstash-input-azureblob (0.9.13).  
logstash-codec-json (3.0.5)

I am trying to save my Logstash output in JSON format. But it is showing me the below-given error. The input data is in **json** fromat not **json\_lines**.

 ![json](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1af0736f59ad9644687a21bcbc001c0f71c5b0cf.png)

```
[2021-03-12T06:27:49,577][ERROR][logstash.codecs.json][main][9ba2dd508408b2f59225268f9eed2aeff35794ae8ddad2e057333d07f46836d1] JSON parse error, original data now in message field {​:error=>#<LogStash::Json::ParserError: incompatible json object type=java.lang.String , only hash map or arrays are supported>, :data=>"\"time\":\"2021-03-12T06:26:43.1352426Z\",\"systemId\":\"66539bf1-15c7-4aaa-9f3c-f2e7840a8784\",\"macAddress\":\"000D3A0A6B1F\",\"category\":\"NetworkSecurityGroupFlowEvent\",\"resourceId\":\"/SUBSCRIPTIONS/XXXXXXXXXXXXXXXXXXXXXXXXXX/RESOURCEGROUPS/XXXXXXXXXXXXXXXX/PROVIDERS/MICROSOFT.NETWORK/NETWORKSECURITYGROUPS/ELKSTACK-ELASTICSEARCH-NSG\",\"operationName\":\"NetworkSecurityGroupFlowEvents\",\"properties\":{​\"Version\":2,\"flows\":[{​\"rule\":\"DefaultRule_AllowInternetOu

```

**Please help me to sort out this.**

Please guide. Thank you in advance.

---

<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:** [March 12, 2021, 3:57pm UTC](https://discuss.elastic.co/t/logstash-json-parse-error/267058/2 "2021-03-12T15:57:31Z")

</div>

I believe that is saying that the JSON does not start with {

---

<div class="post-metadata">

**Author:** ![Anu6006](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@Anu6006](https://discuss.elastic.co/u/Anu6006)\
**Post date:** [March 16, 2021, 4:30am UTC](https://discuss.elastic.co/t/logstash-json-parse-error/267058/3 "2021-03-16T04:30:36Z")

</div>

Thanks for your reply..  
Here it is a single json. It is not in the line by line fromat..and I'm not getting the output while using that..

---

<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:** [April 13, 2021, 4:30am UTC](https://discuss.elastic.co/t/logstash-json-parse-error/267058/4 "2021-04-13T04:30:49Z")

</div>

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