# Show different Index for different fields

**URL:** https://discuss.elastic.co/t/show-different-index-for-different-fields/214116
**Category:** Kibana
**Created:** [January 7, 2020, 7:19pm UTC](https://discuss.elastic.co/t/show-different-index-for-different-fields/214116 "2020-01-07T19:19:02Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Mehak\_Bhargava](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mehak_bhargava/32/54750_2.png) [@Mehak\_Bhargava](https://discuss.elastic.co/u/Mehak_Bhargava)
#### Post date: [January 7, 2020, 9:29pm UTC](https://discuss.elastic.co/t/show-different-index-for-different-fields/214116/5 "2020-01-07T21:29:48Z")

</div>

@cheiligers, just applied that and it works.  
But is there a better way to separate the logs result based on fields.log\_type? I have been trying to make multiple index and even have a discussion page going on it but haven't been successful at it so thought this way of using filters, if not replicate but help with the purpose of multiple index.

> [@All files collected under on index only. Is it possible to have multiple indexes for multiple files?](https://discuss.elastic.co/t/all-files-collected-under-on-index-only-is-it-possible-to-have-multiple-indexes-for-multiple-files/212806):
>
> EVery time I search GET cat/index? in kibana, I only get one index under all files are collected. I want to get three indexes for three different log files given in filebeat. This is logstash.conf file input { beats { port =\> 5044 } } filter { if[log\_type] =="access"{ grok { match =\> {"message" =\> "%{COMBINEDAPACHELOG}"} } else if [log\_type] == "errors" { grok { match =\> { "message" =\> "%{COMBINEDAPACHELOG}" } } }else [log\_type] == "dispatcher"…

---

_[View the full topic](https://discuss.elastic.co/t/show-different-index-for-different-fields/214116)._
