# Stderr log format

**URL:** <https://discuss.elastic.co/t/stderr-log-format/257689>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [December 4, 2020, 6:39pm UTC](https://discuss.elastic.co/t/stderr-log-format/257689 "2020-12-04T18:39:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrii](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrii/32/78646_2.png) [@Andrii](https://discuss.elastic.co/u/Andrii)\
**Post date:** [December 4, 2020, 6:39pm UTC](https://discuss.elastic.co/t/stderr-log-format/257689/1 "2020-12-04T18:39:46Z")

</div>

Hello,  
I noticed that filebeat stderr has a different format than stdout. That makes it impossible to parse filebeat logs with the same rule:  
here is an example:

```auto
{"log":"{\"level\":\"debug\",\"timestamp\":\"2020-12-04T18:25:11.858Z\",\"logger\":\"processors\",\"caller\":\"processing/processors.go:128\",\"message\":\"Fail to apply processor client{timestamp=[field=timestamp, target_field=@timestamp, timezone=UTC, layouts=[2006-01-02T15:04:05.999Z]], rename=[{From:caller To:class}]}: failed to get time field timestamp: key not found\"}\n","stream":"stderr","time":"2020-12-04T18:25:11.858448537Z"}

```

so, for stdout we have **timestamp** field, but for stderr it is **time**

is this expected?

---

<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:** [January 1, 2021, 8:39pm UTC](https://discuss.elastic.co/t/stderr-log-format/257689/2 "2021-01-01T20:39:58Z")

</div>

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