# How to check if a string is in an array element's property - no ruby

**URL:** <https://discuss.elastic.co/t/how-to-check-if-a-string-is-in-an-array-elements-property-no-ruby/355907>\
**Category:** Logstash\
**Created:** [March 21, 2024, 1:33pm UTC](https://discuss.elastic.co/t/how-to-check-if-a-string-is-in-an-array-elements-property-no-ruby/355907 "2024-03-21T13:33:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richfish](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@richfish](https://discuss.elastic.co/u/richfish)\
**Post date:** [March 21, 2024, 1:33pm UTC](https://discuss.elastic.co/t/how-to-check-if-a-string-is-in-an-array-elements-property-no-ruby/355907/1 "2024-03-21T13:33:39Z")

</div>

Without Ruby, I would like to find if a string is in a particular property of any of the elements of an array. Is there any way to do this without using Ruby?

Let's say an array contains objects each with a 'name' property and a 'value' property. I would like to find if any of the elements contain a 'name' property of 'CorrelationId'.

---

<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:** [April 18, 2024, 1:34pm UTC](https://discuss.elastic.co/t/how-to-check-if-a-string-is-in-an-array-elements-property-no-ruby/355907/2 "2024-04-18T13:34:38Z")

</div>

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