# Which is more efficient, sequence or "or"?

**URL:** <https://discuss.elastic.co/t/which-is-more-efficient-sequence-or-or/213640>\
**Category:** Beats\
**Tags:** auditbeat\
**Created:** [January 3, 2020, 1:02am UTC](https://discuss.elastic.co/t/which-is-more-efficient-sequence-or-or/213640 "2020-01-03T01:02:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![barely47](https://avatars.discourse-cdn.com/v4/letter/b/858c86/32.png) [@barely47](https://discuss.elastic.co/u/barely47)\
**Post date:** [January 3, 2020, 1:02am UTC](https://discuss.elastic.co/t/which-is-more-efficient-sequence-or-or/213640/1 "2020-01-03T01:02:34Z")

</div>

```
 -
   drop_event:
     when:
       or: [{equals: {process.executable: /bin/date}}, {equals: {process.executable: /bin/df}}, {equals: {process.executable: /bin/dmesg}}]

or

-
  drop_event:
    equals: {process.executable: /bin/date}
-
  drop_event:
    equals: {process.executable: /bin/df}
-
  drop_event:
    equals: {process.executable: /bin/dmesg}

```

I have a large number of these kinds of contructs so would like them to be as efficient as possible.

---

<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 24, 2020, 1:02am UTC](https://discuss.elastic.co/t/which-is-more-efficient-sequence-or-or/213640/2 "2020-01-24T01:02:50Z")

</div>

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