# Case Insensitive

**URL:** <https://discuss.elastic.co/t/case-insensitive/97798>\
**Category:** Logstash\
**Created:** [August 21, 2017, 4:21pm UTC](https://discuss.elastic.co/t/case-insensitive/97798 "2017-08-21T16:21:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ltwarner](https://avatars.discourse-cdn.com/v4/letter/l/51bf81/32.png) [@ltwarner](https://discuss.elastic.co/u/ltwarner)\
**Post date:** [August 21, 2017, 4:21pm UTC](https://discuss.elastic.co/t/case-insensitive/97798/1 "2017-08-21T16:21:53Z")

</div>

Need to be able to look for a source using any type of case

I am a bit unsure of the syntax, this command works as long as the source is exactly as this, but ideally I want it to search for any type of case as path can be LogFiles or Logfiles

if [source] =~ "C:\Windows\System32\LogFiles\Firewall\*.log"

Advice is greatly appreciated.

---

<div class="post-metadata">

**Author:** ![ltwarner](https://avatars.discourse-cdn.com/v4/letter/l/51bf81/32.png) [@ltwarner](https://discuss.elastic.co/u/ltwarner)\
**Post date:** [August 22, 2017, 10:42am UTC](https://discuss.elastic.co/t/case-insensitive/97798/2 "2017-08-22T10:42:22Z")

</div>

have added a mutate before the source and changed slightly what I am monitoring, works with no issues  
mutate {  
lowercase =\> ["source"]  
}

---

<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:** [September 19, 2017, 10:42am UTC](https://discuss.elastic.co/t/case-insensitive/97798/3 "2017-09-19T10:42:27Z")

</div>

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