# Two seprate log files to put in separate index

**URL:** <https://discuss.elastic.co/t/two-seprate-log-files-to-put-in-separate-index/327626>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 14, 2023, 5:30am UTC](https://discuss.elastic.co/t/two-seprate-log-files-to-put-in-separate-index/327626 "2023-03-14T05:30:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek1111](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@abhishek1111](https://discuss.elastic.co/u/abhishek1111)\
**Post date:** [March 14, 2023, 5:30am UTC](https://discuss.elastic.co/t/two-seprate-log-files-to-put-in-separate-index/327626/1 "2023-03-14T05:30:52Z")

</div>

Hello Experts 🙂

Need your assistance on below use case of mine where filebeat is running as kubernetes daemon set.

I have two log files under same folder in which i want to parse and push data to separate index.

for Eg.

logfile-1.log --\> Index-1  
somelog-1.log --\> Index-2

Kindly let me know if we can achieve this via filebeat.

Regards,  
Abhi

---

<div class="post-metadata">

**Author:** ![abhishek1111](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@abhishek1111](https://discuss.elastic.co/u/abhishek1111)\
**Post date:** [March 23, 2023, 4:36am UTC](https://discuss.elastic.co/t/two-seprate-log-files-to-put-in-separate-index/327626/2 "2023-03-23T04:36:12Z")

</div>

Hello All 😀  
Got the solution, used logstash to achieve this.

Filebeat --\> Logstash --\> Elasticsearch --\> Kibana.

Regards,  
Abhi

---

<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:** [April 20, 2023, 6:37am UTC](https://discuss.elastic.co/t/two-seprate-log-files-to-put-in-separate-index/327626/3 "2023-04-20T06:37:12Z")

</div>

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