# New Elasticsearch installation and initial index pattern - what is it related to?

**URL:** <https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357>\
**Category:** Kibana\
**Created:** [November 20, 2017, 10:09am UTC](https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357 "2017-11-20T10:09:29Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![przemolb](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@przemolb](https://discuss.elastic.co/u/przemolb)\
**Post date:** [November 20, 2017, 10:09am UTC](https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357/1 "2017-11-20T10:09:29Z")

</div>

Hello,

I am new in Elasticsearch world so please forgive my ignorance. I have just finished new ELK installation and after logging in to Kibana it is asking me for "index pattern". If I have 10 hosts shipping their logs to ELK and I will use filebeat on 5 of them and some other solution (i.e. syslog) on the other 5 what should I put in to the "index pattern" ? Is the "index pattern" somehow related to **what** is sending the logs or **where** it is sent from ? If the former should I use "filebeat-\*" as the index pattern ? If the latter -\> "hostname-\*" as an index pattern ?

Thanks in advance  
P.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 20, 2017, 10:23am UTC](https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357/2 "2017-11-20T10:23:08Z")

</div>

FYI we’ve renamed ELK to the Elastic Stack, otherwise Beats and APM feel left out! 😉

> [@przemolb](#):
>
> should I use "filebeat-\*" as the index pattern ?

It sounds like it, yes.

You can head to Console, in Dev Tools, and then run `GET _cat/indices` and then paste the response in here for us to check if you want to be 100% sure.

---

<div class="post-metadata">

**Author:** ![przemolb](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@przemolb](https://discuss.elastic.co/u/przemolb)\
**Post date:** [November 20, 2017, 11:16am UTC](https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357/3 "2017-11-20T11:16:24Z")

</div>

But is the index pattern related to what is sending or where it is sent from ?  
Also what about the other 5 hosts (taken from the example above) which don't use filebeat ? Is the index pattern "filebeat-\*" filter them out ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 20, 2017, 7:01pm UTC](https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357/4 "2017-11-20T19:01:32Z")

</div>

> [@przemolb](#):
>
> But is the index pattern related to what is sending or where it is sent from ?

Yes.

> [@przemolb](#):
>
> Also what about the other 5 hosts (taken from the example above) which don't use filebeat ? Is the index pattern "filebeat-\*" filter them out ?

I don't know how you have that setup, so I can't comment.

---

<div class="post-metadata">

**Author:** ![przemolb](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@przemolb](https://discuss.elastic.co/u/przemolb)\
**Post date:** [November 21, 2017, 7:42am UTC](https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357/5 "2017-11-21T07:42:03Z")

</div>

> [@warkolm](#):
>
> > [@przemolb](#):
> >
> > But is the index pattern related to what is sending or where it is sent from ?
> 
> Yes.

Yes to what ? I asked two question above.

> [@warkolm](#):
>
> > [@przemolb](#):
> >
> > Also what about the other 5 hosts (taken from the example above) which don't use filebeat ? Is the index pattern "filebeat-\*" filter them out ?
> 
> I don't know how you have that setup, so I can't comment.

I have 10 hosts sending their logs to Elasticsearch. Five of them are using filebeat for that purpose, the rest 5 don't. Let's say I use index pattern "filebeat-\*". Is it kind of filter to accept logs ONLY from the first 5 hosts and refuse logs from those without filebeat ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 21, 2017, 7:45am UTC](https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357/6 "2017-11-21T07:45:08Z")

</div>

> [@przemolb](#):
>
> Is it kind of filter to accept logs ONLY from the first 5 hosts and refuse logs from those without filebeat ?

No, it's simply where filebeat defines as the source for the files.

For the others, you need to define your own index.

---

<div class="post-metadata">

**Author:** ![przemolb](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@przemolb](https://discuss.elastic.co/u/przemolb)\
**Post date:** [November 21, 2017, 1:56pm UTC](https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357/7 "2017-11-21T13:56:10Z")

</div>

Can I have the same index for both kind of servers: those with filebeat installed and those without it ?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 21, 2017, 6:51pm UTC](https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357/8 "2017-11-21T18:51:48Z")

</div>

Yes, but it's not recommend. We suggest having an index for each different data type. So put apache logs together, but system logs in another index and so on.

---

<div class="post-metadata">

**Author:** ![przemolb](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@przemolb](https://discuss.elastic.co/u/przemolb)\
**Post date:** [November 22, 2017, 8:21am UTC](https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357/9 "2017-11-22T08:21:08Z")

</div>

Thanks @warkolm. So keep related data together.  
The data (/var/log/\*) from above example comes from servers but in different way: with filebeat or without so it makes sense to keep them together anyway.  
But thanks for the hint.

---

<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:** [December 20, 2017, 8:34am UTC](https://discuss.elastic.co/t/new-elasticsearch-installation-and-initial-index-pattern-what-is-it-related-to/108357/10 "2017-12-20T08:34:42Z")

</div>

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