# Parsing Azure json multiline logs by filebeat

**URL:** <https://discuss.elastic.co/t/parsing-azure-json-multiline-logs-by-filebeat/76812>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 28, 2017, 3:46pm UTC](https://discuss.elastic.co/t/parsing-azure-json-multiline-logs-by-filebeat/76812 "2017-02-28T15:46:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111148](https://avatars.discourse-cdn.com/v4/letter/1/eb8c5e/32.png) [@111148](https://discuss.elastic.co/u/111148)\
**Post date:** [February 28, 2017, 3:46pm UTC](https://discuss.elastic.co/t/parsing-azure-json-multiline-logs-by-filebeat/76812/1 "2017-02-28T15:46:06Z")

</div>

Hello,  
Please advise is it possible to parse by filebeat json multiline logs with comma delimiters and send it to Elasticsearch?

Json files sctucture are the next:

{  
"time": "2017-02-28T12:04:25.7263914Z",  
"resourceId": "/SUBSCRIPTIONS/...../RESOURCEGROUPS/....",  
"operationName": "MICROSOFT.RESOURCES/SUBSCRIPTIONS/RESOURCEGROUPS/DELETE",  
"category": "Delete",  
"resultType": "Start",  
"resultSignature": "Started.",  
"durationMs": 0,  
"callerIpAddress": "....",  
"correlationId": "....",  
"identity": {"authorization":{"scope":"....}},  
"level": "Information",  
"location": "global"  
}  
,  
{  
"time": "2017-02-28T12:04:27.3201073Z",  
"resourceId": "/SUBSCRIPTIONS/.../RESOURCEGROUPS/...",  
"operationName": "MICROSOFT.RESOURCES/SUBSCRIPTIONS/RESOURCEGROUPS/DELETE",  
"category": "Delete",  
"resultType": "Accept",  
"resultSignature": "Accepted.Accepted",  
"durationMs": 1586,  
"callerIpAddress": "....",  
"correlationId": "....",  
"identity": {"authorization":{"..."}},  
"level": "Information",  
"location": "global",  
"properties": {"statusCode":"Accepted","serviceRequestId":null}  
}  
,  
ens so on.

filebeat generates an errors all the time:

2017-02-28T15:29:30Z ERR Error decoding JSON: unexpected EOF  
2017-02-28T15:29:30Z ERR Error decoding JSON: json: cannot unmarshal string into Go value of type map[string]interface {}  
2017-02-28T15:29:30Z ERR Error decoding JSON: invalid character ',' looking for beginning of value

---

<div class="post-metadata">

**Author:** ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)\
**Post date:** [March 3, 2017, 11:55am UTC](https://discuss.elastic.co/t/parsing-azure-json-multiline-logs-by-filebeat/76812/2 "2017-03-03T11:55:28Z")

</div>

The above is currently not possible in filebeat. That is why I recommended LS as here you could potentially do some more processing: [Use logstash or filebeat for sending azure JSON logs?](https://discuss.elastic.co/t/use-logstash-or-filebeat-for-sending-azure-json-logs/74456/17)

---

<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:** [March 31, 2017, 11:55am UTC](https://discuss.elastic.co/t/parsing-azure-json-multiline-logs-by-filebeat/76812/3 "2017-03-31T11:55:39Z")

</div>

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