# Awslog driver docker

**URL:** <https://discuss.elastic.co/t/awslog-driver-docker/340723>\
**Category:** Beats\
**Tags:** docker, filebeat\
**Created:** [August 14, 2023, 8:42am UTC](https://discuss.elastic.co/t/awslog-driver-docker/340723 "2023-08-14T08:42:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan5](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryan5/32/108966_2.png) [@Ryan5](https://discuss.elastic.co/u/Ryan5)\
**Post date:** [August 14, 2023, 8:42am UTC](https://discuss.elastic.co/t/awslog-driver-docker/340723/1 "2023-08-14T08:42:30Z")

</div>

We are using AWS ECS EC2 with the awslog docker driver however, the issue is that the awslog driver outputs a binary file with all the .json log lines beginning with stderr and some unicode. Beats seems to crash when there's Unicode in the log lines.

Is there anyway to parse the container-cached.log correctly or ignore the first few characters?

example log  
stderr?ї??ݼ?{"":""}

---

<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:** [September 11, 2023, 10:42am UTC](https://discuss.elastic.co/t/awslog-driver-docker/340723/2 "2023-09-11T10:42:52Z")

</div>

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