# Filebeat Index Variables

**URL:** <https://discuss.elastic.co/t/filebeat-index-variables/191843>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [July 23, 2019, 2:37pm UTC](https://discuss.elastic.co/t/filebeat-index-variables/191843 "2019-07-23T14:37:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![KWBrandenWagner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kwbrandenwagner/32/47159_2.png) [@KWBrandenWagner](https://discuss.elastic.co/u/KWBrandenWagner)\
**Post date:** [July 23, 2019, 2:37pm UTC](https://discuss.elastic.co/t/filebeat-index-variables/191843/1 "2019-07-23T14:37:17Z")

</div>

I'm sure this is already written somewhere, but I am obviously looking for the wrong words.

I just started using the SIEM in 7.2 and its working pretty good  
I am using Filebeat modules for Zeek and Suricata. I want each of them to go into their own index something like filebeat-{MODULE-DATE} but I can't figure out how to do that. I'm assuming there is a module variable set somewhere..  
Can this be done with filebeat? Or do i need to pass through a Logstash instance to accomplish this? Is there a list of filebeat system variables?

Thanks

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [July 25, 2019, 6:11pm UTC](https://discuss.elastic.co/t/filebeat-index-variables/191843/2 "2019-07-25T18:11:17Z")

</div>

Hello @KWBrandenWagner,

Yes all modules add data to the events and you can use them after to generate the index. If you define the index in the output using the following I believe you will get what you want.

```auto
  index: "filebeat-%{[event.module]}-%{+yyyy.MM.dd}"

```

You might have to check your index pattern in kibana after, to make sure the siem app see the data.

---

<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 22, 2019, 6:11pm UTC](https://discuss.elastic.co/t/filebeat-index-variables/191843/3 "2019-08-22T18:11:18Z")

</div>

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