# FileBeat not Creating New Index in Elasticsearch

**URL:** <https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [June 6, 2018, 1:00pm UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807 "2018-06-06T13:00:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![83500bcd6348a4be6df4](https://avatars.discourse-cdn.com/v4/letter/8/ce73a5/32.png) [@83500bcd6348a4be6df4](https://discuss.elastic.co/u/83500bcd6348a4be6df4)\
**Post date:** [June 6, 2018, 1:00pm UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807/1 "2018-06-06T13:00:36Z")

</div>

When I'm Running FileBeat to Send the Log File from path  
- C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch.log

using the following filebeat.yml file

filebeat.prospectors:

- type: log  
enabled: false  
paths:  
filebeat.prospectors:
- type: log  
enabled: false  
paths:
  - C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch.log  
filebeat.config.modules:  
path: ${path.config}/modules.d/\*.yml  
reload.enabled: false  
setup.template.settings:  
index.number\_of\_shards: 3  
setup.kibana:  
output.elasticsearch:

# Array of hosts to connect to.
hosts: ["localhost:9200"]

No Index is Created in ElasticSearch and on Using the Packet Filtering to find where all the data was going it was sending /get request on [http://localhost:9200/.kibana/\_mappings](http://localhost:9200/.kibana/_mappings) is that normal or does that has to do anything with setup.kibana in .yml file

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [June 6, 2018, 4:37pm UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807/2 "2018-06-06T16:37:13Z")

</div>

Can you paste your configuration using the `</>` button so it's legible?

---

<div class="post-metadata">

**Author:** ![83500bcd6348a4be6df4](https://avatars.discourse-cdn.com/v4/letter/8/ce73a5/32.png) [@83500bcd6348a4be6df4](https://discuss.elastic.co/u/83500bcd6348a4be6df4)\
**Post date:** [June 7, 2018, 6:12am UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807/4 "2018-06-07T06:12:50Z")

</div>

```
filebeat.prospectors:
- type: log
  enabled: false
  paths:
    - C:\ProgramData\Elastic\Elasticsearch\logs\elasticsearch.log
filebeat.config.modules:
  path: ${path.config}/modules.d/*.yml
  reload.enabled: false
setup.template.settings:
  index.number_of_shards: 3
setup.kibana:
output.elasticsearch:
  hosts: ["localhost:9200"]
```

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [June 7, 2018, 6:31am UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807/5 "2018-06-07T06:31:33Z")

</div>

Hi,

Please set this parameter true in your config file as it will enable the prospector and try it with restart your services.

> [@](#):
>
> enabled: false

And please be ensure that your elasticsearch running on localhost or provide your elasticsearch IP in below section.

> [@](#):
>
> output.elasticsearch:  
> hosts: ["localhost:9200"]

If you still are getting error then please share filebeat logs to identify the issue.

> log file path: /var/log/filebeat/filebeat

Regards,

---

<div class="post-metadata">

**Author:** ![83500bcd6348a4be6df4](https://avatars.discourse-cdn.com/v4/letter/8/ce73a5/32.png) [@83500bcd6348a4be6df4](https://discuss.elastic.co/u/83500bcd6348a4be6df4)\
**Post date:** [June 7, 2018, 7:49am UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807/6 "2018-06-07T07:49:14Z")

</div>

Tried Using Enabled True and and checked for Hosts settings , have installed the filebeat as service in the windows services so have restarted it multiple times but the filebeat is not creating any logs

//I'm a beginner need a basic 101 example of setting up filebeat to send logs to elasticsearch any step by step tutorial on that ?

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [June 7, 2018, 8:15am UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807/7 "2018-06-07T08:15:10Z")

</div>

Could you please share the filebeat logs while starting service. it will be easy to understand your issue and help me to resolve.

Regards,

---

<div class="post-metadata">

**Author:** ![83500bcd6348a4be6df4](https://avatars.discourse-cdn.com/v4/letter/8/ce73a5/32.png) [@83500bcd6348a4be6df4](https://discuss.elastic.co/u/83500bcd6348a4be6df4)\
**Post date:** [June 7, 2018, 9:22am UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807/8 "2018-06-07T09:22:52Z")

</div>

Here is my Filebeat Log File

> <https://gist.github.com/harshityadav95/a44b3a8884476cc4d68180d33fd1369c>

---

<div class="post-metadata">

**Author:** ![harshbajaj16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harshbajaj16/32/44970_2.png) [@harshbajaj16](https://discuss.elastic.co/u/harshbajaj16)\
**Post date:** [June 7, 2018, 9:44am UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807/9 "2018-06-07T09:44:29Z")

</div>

is your elasticsearch install on same node or different node??

---

<div class="post-metadata">

**Author:** ![83500bcd6348a4be6df4](https://avatars.discourse-cdn.com/v4/letter/8/ce73a5/32.png) [@83500bcd6348a4be6df4](https://discuss.elastic.co/u/83500bcd6348a4be6df4)\
**Post date:** [June 7, 2018, 10:59am UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807/10 "2018-06-07T10:59:51Z")

</div>

Same Node (Everything is installed Locally on same System)

---

<div class="post-metadata">

**Author:** ![83500bcd6348a4be6df4](https://avatars.discourse-cdn.com/v4/letter/8/ce73a5/32.png) [@83500bcd6348a4be6df4](https://discuss.elastic.co/u/83500bcd6348a4be6df4)\
**Post date:** [June 7, 2018, 1:01pm UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807/12 "2018-06-07T13:01:03Z")

</div>

After Changing it to  
hosts: ["localhost:9200"]

From Original- without space after bracket it started working ,and also changed the location of Log Directory

```
  hosts: ["localhost:9200"]
```

---

<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:** [July 5, 2018, 1:01pm UTC](https://discuss.elastic.co/t/filebeat-not-creating-new-index-in-elasticsearch/134807/13 "2018-07-05T13:01:24Z")

</div>

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