# Documentation is lacking, how annotation should be used?

**URL:** <https://discuss.elastic.co/t/documentation-is-lacking-how-annotation-should-be-used/275564>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 10, 2021, 12:07pm UTC](https://discuss.elastic.co/t/documentation-is-lacking-how-annotation-should-be-used/275564 "2021-06-10T12:07:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moshe\_Avni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moshe_avni/32/90121_2.png) [@Moshe\_Avni](https://discuss.elastic.co/u/Moshe_Avni)\
**Post date:** [June 10, 2021, 12:07pm UTC](https://discuss.elastic.co/t/documentation-is-lacking-how-annotation-should-be-used/275564/1 "2021-06-10T12:07:36Z")

</div>

Hi, I'm reading the hint based autodiscovery and there should be an example for EVERY annotation, not for some.

> **[Hints based autodiscover | Filebeat Reference \[7.13\] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/configuration-autodiscover-hints.html)**

This annotation:

```auto
co.elastic.logs/exclude_lines

```

is documented as a **list** of regular expressions, what is the format?  
This annotation:

```auto
metadata:
  annotations:
    co.elastic.logs/exclude_lines: '["regex1","regex2"]'
    # or
    co.elastic.logs/exclude_lines: 'regex1|regex2'

```

Often I found it frustrating administering elastic products because of poor documentations.  
Thanks.

---

<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:** [July 8, 2021, 2:07pm UTC](https://discuss.elastic.co/t/documentation-is-lacking-how-annotation-should-be-used/275564/2 "2021-07-08T14:07:41Z")

</div>

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