# Why my log gets to another index

**URL:** <https://discuss.elastic.co/t/why-my-log-gets-to-another-index/160851>\
**Category:** Logstash\
**Created:** [December 14, 2018, 7:09am UTC](https://discuss.elastic.co/t/why-my-log-gets-to-another-index/160851 "2018-12-14T07:09:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![04535f91a01ed79f8d98](https://avatars.discourse-cdn.com/v4/letter/0/67e7ee/32.png) [@04535f91a01ed79f8d98](https://discuss.elastic.co/u/04535f91a01ed79f8d98)\
**Post date:** [December 14, 2018, 7:09am UTC](https://discuss.elastic.co/t/why-my-log-gets-to-another-index/160851/1 "2018-12-14T07:09:34Z")

</div>

Hi everyone, can someone tell me why my log in the "terminal" type is in the index fr- \* ?

 ![%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%20%D0%BE%D1%82%202018-12-14%2010-03-29](https://us1.discourse-cdn.com/elastic/original/3X/0/d/0de8060915a25e9cc06538f41db15efa840eef49.png)

Filebeat:  
[https://pastebin.com/zB1cefRe](https://pastebin.com/zB1cefRe)

Logstash conf files:

[https://pastebin.com/BWUBVuLy](https://pastebin.com/BWUBVuLy)  
[https://pastebin.com/hms3fMGz](https://pastebin.com/hms3fMGz)

Thank you in advance

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 17, 2018, 8:03am UTC](https://discuss.elastic.co/t/why-my-log-gets-to-another-index/160851/2 "2018-12-17T08:03:24Z")

</div>

I think `if [type] == "frinit" or "frdriver" {` should be `if [type] in ["frinit", "frdriver"] {` and that `if "ERROR" or "WARN" in [fr_log_level] {` should be changed to `if [fr_log_level] in ["ERROR", "WARN"] {`. Not sure that is the only issue, but would start by changing that.

---

<div class="post-metadata">

**Author:** ![04535f91a01ed79f8d98](https://avatars.discourse-cdn.com/v4/letter/0/67e7ee/32.png) [@04535f91a01ed79f8d98](https://discuss.elastic.co/u/04535f91a01ed79f8d98)\
**Post date:** [December 17, 2018, 8:29am UTC](https://discuss.elastic.co/t/why-my-log-gets-to-another-index/160851/3 "2018-12-17T08:29:06Z")

</div>

Thanks, this solved my problem.

---

<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:** [January 14, 2019, 8:29am UTC](https://discuss.elastic.co/t/why-my-log-gets-to-another-index/160851/4 "2019-01-14T08:29:09Z")

</div>

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