# Use of \* in logstash config file

**URL:** <https://discuss.elastic.co/t/use-of-in-logstash-config-file/92417>\
**Category:** Logstash\
**Created:** [July 10, 2017, 7:21am UTC](https://discuss.elastic.co/t/use-of-in-logstash-config-file/92417 "2017-07-10T07:21:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahongyun](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@ahongyun](https://discuss.elastic.co/u/ahongyun)\
**Post date:** [July 10, 2017, 7:21am UTC](https://discuss.elastic.co/t/use-of-in-logstash-config-file/92417/1 "2017-07-10T07:21:36Z")

</div>

hi all,

would like to check if the conf below works.

`if [type] == "coreservices-*" { ... }`

where the types available are

- coreservices-fs
- coreservices-xmls

thanks

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 10, 2017, 7:55am UTC](https://discuss.elastic.co/t/use-of-in-logstash-config-file/92417/2 "2017-07-10T07:55:27Z")

</div>

No, but you can use regular expression matching in conditionals.

[https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html](https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html)

---

<div class="post-metadata">

**Author:** ![ahongyun](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@ahongyun](https://discuss.elastic.co/u/ahongyun)\
**Post date:** [July 11, 2017, 6:23am UTC](https://discuss.elastic.co/t/use-of-in-logstash-config-file/92417/3 "2017-07-11T06:23:30Z")

</div>

thanks so much

got it to work ^^

---

<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:** [August 8, 2017, 6:23am UTC](https://discuss.elastic.co/t/use-of-in-logstash-config-file/92417/4 "2017-08-08T06:23:42Z")

</div>

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