# Custom logs Filebeat Index

**URL:** <https://discuss.elastic.co/t/custom-logs-filebeat-index/280454>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 4, 2021, 3:17pm UTC](https://discuss.elastic.co/t/custom-logs-filebeat-index/280454 "2021-08-04T15:17:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcosvmauri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcosvmauri/32/92540_2.png) [@marcosvmauri](https://discuss.elastic.co/u/marcosvmauri)\
**Post date:** [August 4, 2021, 3:17pm UTC](https://discuss.elastic.co/t/custom-logs-filebeat-index/280454/1 "2021-08-04T15:17:50Z")

</div>

Hi!  
I have a Filebeat server configured to capture IIS logs.  
And I would like to capture custom logs, but after parameterizing the filebeat.yaml files and placing the logs in the indicated folder, I cannot view the logs through kibana.  
I checked the index setting in the Index Patterns section and the fields are not displayed.

I'm using version 7.5.1  
Filebeat.yml

```auto
filebeat.inputs:

- type: log
  enabled: true
  paths:
    - ./log/*.log
  json.keys_under_root: true
  json.add_error_key: true    

```

logstash.conf

```auto
input {
  beats {
    port => 5044
  }
}

output {
  elasticsearch {
    hosts => ["Server1:9200", "Server2:9200", "Server3:9200"]
    index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
  }
}

```

---

<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:** [September 1, 2021, 5:18pm UTC](https://discuss.elastic.co/t/custom-logs-filebeat-index/280454/2 "2021-09-01T17:18:46Z")

</div>

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