# Separate Index Pattern for each Windows Log

**URL:** <https://discuss.elastic.co/t/separate-index-pattern-for-each-windows-log/125757>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [March 27, 2018, 1:07pm UTC](https://discuss.elastic.co/t/separate-index-pattern-for-each-windows-log/125757 "2018-03-27T13:07:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thaneye](https://avatars.discourse-cdn.com/v4/letter/t/7ab992/32.png) [@thaneye](https://discuss.elastic.co/u/thaneye)\
**Post date:** [March 27, 2018, 1:07pm UTC](https://discuss.elastic.co/t/separate-index-pattern-for-each-windows-log/125757/1 "2018-03-27T13:07:13Z")

</div>

Hi,  
I am experimenting using Elastic and Winlogbeat to collect System, Application and Security log. How is it possible to create different Index Patterns for each one instead of the one "Winlogbeat-\*"  
Thanks

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [March 28, 2018, 5:39pm UTC](https://discuss.elastic.co/t/separate-index-pattern-for-each-windows-log/125757/2 "2018-03-28T17:39:58Z")

</div>

You just need to edit the `indices` option of elasticsearch:

For example in case of "Security" you need the following snippet:

```auto
output.elasticsearch:
 indices:
   - index: "winlogbeat-%{[beat.version]}-security-%{+yyyy.MM.dd}"
     when.equals:
       log_name: "Security"

```

---

<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:** [April 25, 2018, 5:40pm UTC](https://discuss.elastic.co/t/separate-index-pattern-for-each-windows-log/125757/3 "2018-04-25T17:40:12Z")

</div>

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