# Multiple .gz files in multiple sub directories

**URL:** <https://discuss.elastic.co/t/multiple-gz-files-in-multiple-sub-directories/278365>\
**Category:** Kibana\
**Tags:** elastic-stack-monitoring\
**Created:** [July 11, 2021, 5:56pm UTC](https://discuss.elastic.co/t/multiple-gz-files-in-multiple-sub-directories/278365 "2021-07-11T17:56:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmt605](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jmt605](https://discuss.elastic.co/u/jmt605)\
**Post date:** [July 11, 2021, 5:56pm UTC](https://discuss.elastic.co/t/multiple-gz-files-in-multiple-sub-directories/278365/1 "2021-07-11T17:56:25Z")

</div>

I am sure this has been asked before but nothing I have found during my research has solved my problem. I am using Windows Server 2019 Standard. I have installed Kibana and Elasticsearch via zip files.

I am trying to visualize log data (unknown format) held in multiple sub directories by year, month with each log file in gzipped format for each day of the month separately. (i.e. C:\logs\subdirectory\1\2021\01\2021-01-01.log.gz).

I am able to connect to the Kibana URL and select the "Add data" link and then the "kibana logs" link. I follow the steps to edit the filebeat.yml file to accept inputs as follows:  
filebeat.inputs:  
- type: log  
enabled: true  
paths:  
- C:\Log\Files\To\Ingest\logs\*\*.gz

I edit the "modules.d\kibana.yml file to accept the same path noted in the filebeat.yml file above.

I run ./filebeat setup and get no errors upon completion. I restart the filebeat and elasticsearch services. When I check the module "Check data" link there is no data being received.

I have been unsuccessful at every configuration I have tried and have created this topic as a last resort. If any one has any advice or guidance it will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [July 12, 2021, 12:55am UTC](https://discuss.elastic.co/t/multiple-gz-files-in-multiple-sub-directories/278365/2 "2021-07-12T00:55:44Z")

</div>

Hi @jmt605 Welcome to the community.

I think you should perhaps take a look at the file / path glob syntax [here](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-input-log.html#filebeat-input-log-options).

Example  
C:\logs\subdirectory\1\2021\01\2021-01-01.log.gz

```auto
filebeat.inputs:
- type: log
  enabled: true
  paths:
    - C:\logs\subdirectory\**\*.log.gz

```

> [@jmt605](#):
>
> I edit the "modules.d\kibana.yml file to accept the same path noted in the filebeat.yml file above.

Are you trying to ship Kibana Logs? otherwise you do not need to do that? If you are just trying to ship some custom application logs just use the `filebeat:inputs` above

---

<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:** [August 9, 2021, 12:55am UTC](https://discuss.elastic.co/t/multiple-gz-files-in-multiple-sub-directories/278365/3 "2021-08-09T00:55:56Z")

</div>

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