# Multiple string match to create index in filebeat

**URL:** <https://discuss.elastic.co/t/multiple-string-match-to-create-index-in-filebeat/275549>\
**Category:** Beats\
**Tags:** beats-module, filebeat\
**Created:** [June 10, 2021, 9:40am UTC](https://discuss.elastic.co/t/multiple-string-match-to-create-index-in-filebeat/275549 "2021-06-10T09:40:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahul30](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rahul30/32/81354_2.png) [@rahul30](https://discuss.elastic.co/u/rahul30)\
**Post date:** [June 10, 2021, 9:40am UTC](https://discuss.elastic.co/t/multiple-string-match-to-create-index-in-filebeat/275549/1 "2021-06-10T09:40:29Z")

</div>

I want to create multiple index in filebeat by string in message

```auto
        - indices:
        - index: "billingproxy-%{+yyyy.MM.dd}"
          regexp:
                 message: '(billingproxy & \(squid-1\))'

    - index: "proxyauditlog-%(+yyyy.MM.dd)"
          regexp:
                 message: '(billingproxy & tag_audit_log)'

```

but index is not created.  
I think syntax for regexp is wrong.

---

<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:** [July 8, 2021, 11:40am UTC](https://discuss.elastic.co/t/multiple-string-match-to-create-index-in-filebeat/275549/2 "2021-07-08T11:40:39Z")

</div>

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