# Can't able to create index in ES via filebeat

**URL:** <https://discuss.elastic.co/t/cant-able-to-create-index-in-es-via-filebeat/150227>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [September 27, 2018, 5:12pm UTC](https://discuss.elastic.co/t/cant-able-to-create-index-in-es-via-filebeat/150227 "2018-09-27T17:12:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prem\_kumar](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@prem\_kumar](https://discuss.elastic.co/u/prem_kumar)\
**Post date:** [September 27, 2018, 5:12pm UTC](https://discuss.elastic.co/t/cant-able-to-create-index-in-es-via-filebeat/150227/1 "2018-09-27T17:12:53Z")

</div>

I am new to ELK and I am trying to load logs from Filebeats to ES but index are not getting created. I have looked into lot of threads in this forum regarding this but I can't able to find a solution.  
I can able to load the data by using logstash but I want to implement it by Filebeats.  
I am trying Filebeats -\> ES  
I have attached my configuration and logs. Any idea on what I am doing wrong?

```
filebeat.prospectors:

- type: log

  enabled: true

  paths:
    #- /var/log/*.log
    - C:\logfiles\logs\*\*.*

filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml

  reload.enabled: true

setup.template.settings:
  index.number_of_shards: 3

setup.kibana:

output.elasticsearch:
  hosts: ["localhost:9200"]

```

Note : In file path, I have even tried by giving absolute file path.

 ![log](https://us1.discourse-cdn.com/elastic/original/3X/9/0/90c25ff3b5a16862680a5f4aa68877a1b4e5ee96.jpeg)

---

<div class="post-metadata">

**Author:** ![pierhugues](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierhugues/32/48383_2.png) [@pierhugues](https://discuss.elastic.co/u/pierhugues)\
**Post date:** [September 28, 2018, 1:15pm UTC](https://discuss.elastic.co/t/cant-able-to-create-index-in-es-via-filebeat/150227/2 "2018-09-28T13:15:13Z")

</div>

Hello @prem_kumar,

I do not see errors in the logs, but I think Filebeat is not finding any files. This is confirmed by looking at the metric log statement.

I haven't tested it but I believe you have to use forward slashes.

```auto
C:/LogFiles/logs/*/*.*

```

Thanks

---

<div class="post-metadata">

**Author:** ![prem\_kumar](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@prem\_kumar](https://discuss.elastic.co/u/prem_kumar)\
**Post date:** [October 3, 2018, 1:29pm UTC](https://discuss.elastic.co/t/cant-able-to-create-index-in-es-via-filebeat/150227/3 "2018-10-03T13:29:06Z")

</div>

hi @pierhugues  
Thanks for the update 🙂 . adding the file path inside a single quote solved my issue.

---

<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:** [October 31, 2018, 1:43pm UTC](https://discuss.elastic.co/t/cant-able-to-create-index-in-es-via-filebeat/150227/4 "2018-10-31T13:43:19Z")

</div>

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