# How to use Event Property in Event API?

**URL:** <https://community.dynatrace.com/t/how-to-use-event-property-in-event-api/39035>\
**Category:** Dynatrace API\
**Tags:** dynatrace-api\
**Created:** [March 28, 2023, 12:16am UTC](https://community.dynatrace.com/t/how-to-use-event-property-in-event-api/39035 "2023-03-28T00:16:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [March 28, 2023, 12:16am UTC](https://community.dynatrace.com/t/how-to-use-event-property-in-event-api/39035/1 "2023-03-28T00:16:26Z")

</div>

I’m trying to filter events in the Event API, using the eventSelector.

I’m using, according to the documentation:

- property.myownevent(“MyOwn event”)

I get the following reply.

```markup
{
  "error": {
    "code": 400,
    "message": "Constraints violated.",
    "constraintViolations": [
      {
        "path": "eventSelector",
        "message": "Parse error: Unknown filter predicate found. Found near 1-based column range [1,35).",
        "parameterLocation": "QUERY",
        "location": null
      }
    ]
  }
}

```

Tried other combinations, but didn’t work. For reference, what the API says:

 ![AntonioSousa_0-1679962506473.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/4/34219f6a128834eb97ec4ad12260447e8d641fb3.png)

Any idea?

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [March 28, 2023, 11:39am UTC](https://community.dynatrace.com/t/how-to-use-event-property-in-event-api/39035/2 "2023-03-28T11:39:43Z")

</div>

Hello [@AntonioSousa](https://community.dynatrace.com/user/17213). Same behaviour here

{  
“error”: {  
“code”: 400,  
“message”: “Constraints violated.”,  
“constraintViolations”: [  
{  
“path”: “eventSelector”,  
“message”: “Parse error: Unknown filter predicate found. Found near 1-based column range [45,75).”,  
“parameterLocation”: “QUERY”,  
“location”: null  
}  
]  
}  
}

---

<div class="post-metadata">

**Author:** ![adam\_gardner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adam_gardner/32/20087_2.png) [@adam\_gardner](https://community.dynatrace.com/u/adam_gardner)\
**Post date:** [March 28, 2023, 8:46pm UTC](https://community.dynatrace.com/t/how-to-use-event-property-in-event-api/39035/3 "2023-03-28T20:46:35Z")

</div>

I have a ticket open for this. I will report back when I know more.

---

<div class="post-metadata">

**Author:** ![paolo\_fumanelli](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/paolo_fumanelli/32/1037_2.png) [@paolo\_fumanelli](https://community.dynatrace.com/u/paolo_fumanelli)\
**Post date:** [March 30, 2023, 10:45am UTC](https://community.dynatrace.com/t/how-to-use-event-property-in-event-api/39035/4 "2023-03-30T10:45:39Z")

</div>

Following this topic

---

<div class="post-metadata">

**Author:** ![tibebe\_m\_digafe](https://avatars.discourse-cdn.com/v4/letter/t/c0e974/32.png) [@tibebe\_m\_digafe](https://community.dynatrace.com/u/tibebe_m_digafe)\
**Post date:** [March 30, 2023, 9:45pm UTC](https://community.dynatrace.com/t/how-to-use-event-property-in-event-api/39035/5 "2023-03-30T21:45:38Z")

</div>

Looks like only accepts “ **event properties** ”, no other properties (e.g. entity properties).

This did work for me:

_property.dt.event.group\_label(Created)_

---

<div class="post-metadata">

**Author:** ![adam\_gardner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/adam_gardner/32/20087_2.png) [@adam\_gardner](https://community.dynatrace.com/u/adam_gardner)\
**Post date:** [March 31, 2023, 5:50am UTC](https://community.dynatrace.com/t/how-to-use-event-property-in-event-api/39035/6 "2023-03-31T05:50:35Z")

</div>

I have word back from the dev team. The following fields are (currently) searchable: description, source, title, allow\_davis\_merge, is\_rootcause\_relevant, release\_version, group\_label.

They now have a backlog item to:

- Improve the docs for this

- Investigate what (if any) additional fields can be “made searchable”

I will continue to provide feedback here whenever I hear anything.

---

<div class="post-metadata">

**Author:** ![axel\_tapia](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@axel\_tapia](https://community.dynatrace.com/u/axel_tapia)\
**Post date:** [April 17, 2026, 4:34pm UTC](https://community.dynatrace.com/t/how-to-use-event-property-in-event-api/39035/7 "2026-04-17T16:34:12Z")

</div>

Do anyone know if this will be improved? I want a partial match for the event title and I don’t know if is possible a contains or startsWith matcher in the event selector, right now only literal match is allowed…

I am trying to filter all events for Total available space for any D drive regardless its threshold.

The propety is searchable:

property.dt.event.description(The total available space on disk D:\ is lower than 3 %)

However if I add some contain, contains or startsWith it is not a valid filter

```auto
/api/v2/events?eventSelector=property.dt.event.description.startsWith%28The%20total%20available%20space%20on%20disk%20D%3A%5C%20is%20lower%20than%203%20%25%29

```

```auto
{ "error": { "code": 400, "message": "Constraints violated.", "constraintViolations": [ {
        "path": "eventSelector", "message": "Parse error: Unknown filter predicate found. Found near 1-based column range [1,98).", "parameterLocation": "QUERY", "location": null
      }
    ]
  }
}

```
