# Cannot create custom filebeat index

**URL:** <https://discuss.elastic.co/t/cannot-create-custom-filebeat-index/220833>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [February 25, 2020, 10:58am UTC](https://discuss.elastic.co/t/cannot-create-custom-filebeat-index/220833 "2020-02-25T10:58:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefdami](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stefdami/32/77007_2.png) [@stefdami](https://discuss.elastic.co/u/stefdami)\
**Post date:** [February 25, 2020, 10:58am UTC](https://discuss.elastic.co/t/cannot-create-custom-filebeat-index/220833/1 "2020-02-25T10:58:41Z")

</div>

Hello guys,

I have a problem creating a new custom index for filebeat. When I used the default filebeat index it ran without issues and I could see it on kibana, but when I tried to create a new one although I had created a new pattern and index on kibana ( name access ) it doesn't seem to load any log files on es. Could it be that the index has already some docs (I had previously load some logs manually to it) but I ve tried with other index names too.

I 've searched through it a lot, debug yml file seems fine, tried also solutions for similar issues but still nothing. Any ideas what could be wrong ?

Here is my config file:

```
> filebeat.inputs:
> 
> # Each - is an input. Most options can be set at the input level, so
> # you can use different inputs for various configurations.
> # Below are the input specific configurations.
> 
> - type: log
> 
> # Change to true to enable this input configuration.
> enabled: true
> 
> # Paths that should be crawled and fetched. Glob based paths.
> paths: 
> - C:\logs\*.log
>       
> #============================= Filebeat modules ===============================
> 
> filebeat.config.modules:
> # Glob pattern for configuration loading
> path: ${path.config}/modules.d/*.yml
> 
> # Set to true to enable config reloading
> reload.enabled: false
> 
> # Period on which files under path should be checked for changes
> #reload.period: 10s
> 
> #==================== Elasticsearch template setting ==========================
> 
> setup.template.settings:
> index.number_of_shards: 1
> #index.codec: best_compression
> #_source.enabled: false
> 
> setup.kibana:
> # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
> host: "localhost:5601"
> setup.dashboards.index : "NEW_INDEX-*"
> 
> #-------------------------- Elasticsearch output ------------------------------
> output.elasticsearch:
> # Array of hosts to connect to.
> hosts: ["localhost:9200"]  
> index: "access-%{+yyyy.MM.dd}"                    
> #"access-%{+yyyy.MM.dd}"                               
> # Optional protocol and basic auth credentials.
> #protocol: "https"
> username: "elastic"
> password: "psgtKIPvJSdx7R8onFtv4STn"
> setup.kibana:
> host: "localhost:5601"
> 
>       
> setup.template:
> name: "access"
> pattern: "access-*"
> enabled: true
> setup.ilm.enabled: false
> 
> #================================ Processors =====================================
> 
> # Configure processors to enhance or manipulate events generated by the beat.
> 
> processors:
> - decode_json_fields:
> fields: ["log"]
> target: ""
> overwrite_keys: true
> - add_docker_metadata: ~
> indent preformatted text by 4 spaces

```

Thanks a lot!

---

<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:** [March 24, 2020, 10:58am UTC](https://discuss.elastic.co/t/cannot-create-custom-filebeat-index/220833/2 "2020-03-24T10:58:52Z")

</div>

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