# I have created two indexes, but i am not sure how to store data in the index

**URL:** <https://discuss.elastic.co/t/i-have-created-two-indexes-but-i-am-not-sure-how-to-store-data-in-the-index/35225>\
**Category:** Elasticsearch\
**Created:** [November 21, 2015, 5:29pm UTC](https://discuss.elastic.co/t/i-have-created-two-indexes-but-i-am-not-sure-how-to-store-data-in-the-index/35225 "2015-11-21T17:29:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SureshSala](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@SureshSala](https://discuss.elastic.co/u/SureshSala)\
**Post date:** [November 21, 2015, 5:29pm UTC](https://discuss.elastic.co/t/i-have-created-two-indexes-but-i-am-not-sure-how-to-store-data-in-the-index/35225/1 "2015-11-21T17:29:42Z")

</div>

I am very new to elastic search and my concepts are not clear.  
I have created an two indexes one for application and other for syslogs. but i am unable to forword the logs to two different indexes.  
Where can i mention. should i have to mention at elasticsearch level or logstash/fluentd level.

---

<div class="post-metadata">

**Author:** ![Maarten\_Roosendaal](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@Maarten\_Roosendaal](https://discuss.elastic.co/u/Maarten_Roosendaal)\
**Post date:** [November 21, 2015, 6:11pm UTC](https://discuss.elastic.co/t/i-have-created-two-indexes-but-i-am-not-sure-how-to-store-data-in-the-index/35225/2 "2015-11-21T18:11:34Z")

</div>

Hi,

Could you be more specific as to what your intention/use case is? Forwards logs from where? And why to 2 different indices? Are you trying to setup the ELK-stack?

Kind regards,  
Maarten

---

<div class="post-metadata">

**Author:** ![SureshSala](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@SureshSala](https://discuss.elastic.co/u/SureshSala)\
**Post date:** [November 21, 2015, 7:18pm UTC](https://discuss.elastic.co/t/i-have-created-two-indexes-but-i-am-not-sure-how-to-store-data-in-the-index/35225/3 "2015-11-21T19:18:16Z")

</div>

Hi Maarten,

Yes, I am setting up EFK Stack. In Kibana I want to represent one index for application and one index for syslogs.

I am using fluentd for log forwarding.

syslogs --\> /var/log/messages and /var/log/secure

application --\> /var/log/application.log

---

<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, 2015, 11:03pm UTC](https://discuss.elastic.co/t/i-have-created-two-indexes-but-i-am-not-sure-how-to-store-data-in-the-index/35225/4 "2015-11-21T23:03:05Z")

</div>

I don't know fluentd, but I'd imagine you can tell it which index to send the two different sets of logs.

---

<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:** [July 5, 2017, 11:36pm UTC](https://discuss.elastic.co/t/i-have-created-two-indexes-but-i-am-not-sure-how-to-store-data-in-the-index/35225/5 "2017-07-05T23:36:44Z")

</div>

Closed on July 5, 2017, 11:36pm UTC


