# ECS: example of error.code, error.id?

**URL:** <https://discuss.elastic.co/t/ecs-example-of-error-code-error-id/211320>\
**Category:** Elasticsearch\
**Tags:** ecs-elastic-common-schema\
**Created:** [December 10, 2019, 2:40pm UTC](https://discuss.elastic.co/t/ecs-example-of-error-code-error-id/211320 "2019-12-10T14:40:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Petr\_Valasek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/petr_valasek/32/59123_2.png) [@Petr\_Valasek](https://discuss.elastic.co/u/Petr_Valasek)\
**Post date:** [December 10, 2019, 2:40pm UTC](https://discuss.elastic.co/t/ecs-example-of-error-code-error-id/211320/1 "2019-12-10T14:40:18Z")

</div>

Hi there,

In the ECS field reference, the `error.code` is defined as

> Error code describing the error.

and `error.id` is

> Unique identifier for the error.

Can anyone give me examples of values for these fields?

---

<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 7, 2020, 2:40pm UTC](https://discuss.elastic.co/t/ecs-example-of-error-code-error-id/211320/2 "2020-01-07T14:40:19Z")

</div>

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