# LogV2 filtering on custom fields

**URL:** <https://community.dynatrace.com/t/logv2-filtering-on-custom-fields/35972>\
**Category:** Logs\
**Tags:** log-monitoring-class\
**Created:** [July 25, 2022, 9:14am UTC](https://community.dynatrace.com/t/logv2-filtering-on-custom-fields/35972 "2022-07-25T09:14:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bert\_VanderHeyd](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bert_vanderheyd/32/162_2.png) [@Bert\_VanderHeyd](https://community.dynatrace.com/u/Bert_VanderHeyd)\
**Post date:** [July 25, 2022, 9:14am UTC](https://community.dynatrace.com/t/logv2-filtering-on-custom-fields/35972/1 "2022-07-25T09:14:27Z")

</div>

We use Logv2 to stream in logs via LogStash using the API and the logstash output plugin. This approach works well but there is a lot of usefull info stored as custom fields.

Although you can see them event per event in the log view screens, it’s impossible to filter on them. It looks like only a list of specific predefined fields are searchable.

Is this normal? Am I missing something here? Are there plans to improve this?

---

<div class="post-metadata">

**Author:** ![sia\_h](https://avatars.discourse-cdn.com/v4/letter/s/f14d63/32.png) [@sia\_h](https://community.dynatrace.com/u/sia_h)\
**Post date:** [July 25, 2022, 9:25am UTC](https://community.dynatrace.com/t/logv2-filtering-on-custom-fields/35972/2 "2022-07-25T09:25:26Z")

</div>

Hi Bert,

You have to add them as [custom attributes](https://www.dynatrace.com/support/help/how-to-use-dynatrace/log-monitoring/analyze-log-data/log-custom-attributes). Then, they will be available as a filter.

E.g.

 ![siavash_h_0-1658741209345.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/a/7a6e766a823c0a3d14eb892aef2b2a8d7f35ab24.png)

 ![siavash_h_1-1658741256877.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/3/2300fa7a6eace44bdfe1009ee4686c5550361801.png)

Sia

---

<div class="post-metadata">

**Author:** ![Bert\_VanderHeyd](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/bert_vanderheyd/32/162_2.png) [@Bert\_VanderHeyd](https://community.dynatrace.com/u/Bert_VanderHeyd)\
**Post date:** [July 25, 2022, 9:36am UTC](https://community.dynatrace.com/t/logv2-filtering-on-custom-fields/35972/3 "2022-07-25T09:36:40Z")

</div>

Many thanks. Easy as cake and makes a lot of sense 😉
