# Any way to make winlogbeat config case-insensitive?

**URL:** <https://discuss.elastic.co/t/any-way-to-make-winlogbeat-config-case-insensitive/273032>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [May 14, 2021, 2:25pm UTC](https://discuss.elastic.co/t/any-way-to-make-winlogbeat-config-case-insensitive/273032 "2021-05-14T14:25:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![reconluke](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@reconluke](https://discuss.elastic.co/u/reconluke)\
**Post date:** [May 14, 2021, 2:25pm UTC](https://discuss.elastic.co/t/any-way-to-make-winlogbeat-config-case-insensitive/273032/1 "2021-05-14T14:25:45Z")

</div>

The title pretty much says it all. I am trying to figure out if there is a way to make my winlogbeat config conditions case insensitive so when I want to exclude something for lets say a file path, I do not have to add a different exclusion for Windows\folder, windows\folder, WINDOWS\folder, etc..

Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [May 14, 2021, 2:53pm UTC](https://discuss.elastic.co/t/any-way-to-make-winlogbeat-config-case-insensitive/273032/2 "2021-05-14T14:53:31Z")

</div>

Do you have an example of your existing conditions that you can share? If you use a `rexexp` condition you can make it case-insensitive.

```auto
- drop_event:
    when.regexp.message: '(?i)windows'

```

---

<div class="post-metadata">

**Author:** ![reconluke](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@reconluke](https://discuss.elastic.co/u/reconluke)\
**Post date:** [May 14, 2021, 3:03pm UTC](https://discuss.elastic.co/t/any-way-to-make-winlogbeat-config-case-insensitive/273032/3 "2021-05-14T15:03:37Z")

</div>

Is there any performance impact using regex? Here is an example:

```auto
- drop_event.when.or: 
  - contains.process.command_line: 'C:\windows\scriptfolder\'

```

This works great until the command line contains C:\Windows\scriptfolder\ instead.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [May 14, 2021, 6:08pm UTC](https://discuss.elastic.co/t/any-way-to-make-winlogbeat-config-case-insensitive/273032/4 "2021-05-14T18:08:59Z")

</div>

Hard to say what the difference would be without measuring. In the overall time of processing an event the time difference is likely a minuscule slice.

---

<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:** [June 11, 2021, 8:09pm UTC](https://discuss.elastic.co/t/any-way-to-make-winlogbeat-config-case-insensitive/273032/5 "2021-06-11T20:09:21Z")

</div>

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