# Log viewing - ELK

**URL:** <https://discuss.elastic.co/t/log-viewing-elk/268106>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 23, 2021, 2:21pm UTC](https://discuss.elastic.co/t/log-viewing-elk/268106 "2021-03-23T14:21:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [March 23, 2021, 2:21pm UTC](https://discuss.elastic.co/t/log-viewing-elk/268106/1 "2021-03-23T14:21:22Z")

</div>

Hello there,

I have set up the following configuration in filebeat config file but it is not picking up the second input. not sure why

filebeat.inputs:

- type: log  
enabled: true  
paths:
  - C:\ELK7.9.2\Logs\*.log

- type: log  
enabled: true  
paths:
  - C:\ELK7.9.2\LogsA\*.log

Can anyone please tell me if I am making any mistake here?

Thanks,  
Akhil

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [March 23, 2021, 3:31pm UTC](https://discuss.elastic.co/t/log-viewing-elk/268106/2 "2021-03-23T15:31:46Z")

</div>

Hi!

I think that `C:\ELK7.9.2\Logs*.log` path will match `C:\ELK7.9.2\LogsA*.log` too. When you say that it is not picking up the second input what do you mean, you see anything special in Filebeat's logs? (run in debug mode for more information)

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [March 23, 2021, 3:48pm UTC](https://discuss.elastic.co/t/log-viewing-elk/268106/3 "2021-03-23T15:48:21Z")

</div>

Hi Chris,

As per my understanding, following allows me to create one index pattern in Kibana and I am able to see whatever logs are there in Logs folder. so I created two inputs by giving two paths so I can create two index patterns for two different types of logs.

filebeat.inputs:

- type: log  
enabled: true  
paths:
  - C:\ELK7.9.2\Logs\*.log

and I can only create one index pattern in Kibana and it has all the data. I don't know how. I thought if I give two paths, I will be able to create two indexes.

I hope that's not confusing.

Thanks,  
Akhil

---

<div class="post-metadata">

**Author:** ![ChrsMark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chrsmark/32/55858_2.png) [@ChrsMark](https://discuss.elastic.co/u/ChrsMark)\
**Post date:** [March 24, 2021, 8:24am UTC](https://discuss.elastic.co/t/log-viewing-elk/268106/4 "2021-03-24T08:24:22Z")

</div>

I see.

Please check conditional output at [Configure the Elasticsearch output | Filebeat Reference [7.12] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/elasticsearch-output.html#indices-option-es), it should be what you are looking for.

---

<div class="post-metadata">

**Author:** ![Akhil2](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Akhil2](https://discuss.elastic.co/u/Akhil2)\
**Post date:** [March 25, 2021, 3:31pm UTC](https://discuss.elastic.co/t/log-viewing-elk/268106/5 "2021-03-25T15:31:54Z")

</div>

Thank you Chris. My issue is resolved.

---

<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 22, 2021, 5:32pm UTC](https://discuss.elastic.co/t/log-viewing-elk/268106/6 "2021-04-22T17:32:16Z")

</div>

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