# Unable to access filebeat stats over HTTP

**URL:** <https://discuss.elastic.co/t/unable-to-access-filebeat-stats-over-http/171273>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 7, 2019, 10:33am UTC](https://discuss.elastic.co/t/unable-to-access-filebeat-stats-over-http/171273 "2019-03-07T10:33:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nitish\_Raj](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Nitish\_Raj](https://discuss.elastic.co/u/Nitish_Raj)\
**Post date:** [March 7, 2019, 10:33am UTC](https://discuss.elastic.co/t/unable-to-access-filebeat-stats-over-http/171273/1 "2019-03-07T10:33:48Z")

</div>

Hi I am trying to access [http://localhost:5066/stats](http://localhost:5066/stats) URL to see statistics of filebeat events but it is not reachable. I am using windows machine.

This is my configuration in filebeat.yml file :

================================ HTTP Endpoint ======================================  
Each beat can expose internal metrics through a HTTP endpoint. For security  
reasons the endpoint is disabled by default. This feature is currently experimental.  
Stats can be access through [http://localhost:5066/stats](http://localhost:5066/stats) . For pretty JSON output  
append ?pretty to the URL.

# Defines if the HTTP endpoint is enabled.

http.enabled: true

# The HTTP endpoint will bind to this hostname or IP address. It is recommended to use only localhost.

http.host: localhost

# Port on which the HTTP endpoint will bind. Default is 5066.

http.port: 5066

And i am running filebeat through following command :

bin\> filebeat.exe -c customLogs.yml -e -d "\*"

---

<div class="post-metadata">

**Author:** ![Nitish\_Raj](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Nitish\_Raj](https://discuss.elastic.co/u/Nitish_Raj)\
**Post date:** [March 7, 2019, 10:50am UTC](https://discuss.elastic.co/t/unable-to-access-filebeat-stats-over-http/171273/2 "2019-03-07T10:50:55Z")

</div>

It has worked by running

bin\> filebeat.exe -c filebeat.yml -e -d "\*"

or we need to add same http configuration inside customLogs.yml file and then run :

bin\> filebeat.exe -c customLogs.yml -e -d "\*"

---

<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:** [April 4, 2019, 10:51am UTC](https://discuss.elastic.co/t/unable-to-access-filebeat-stats-over-http/171273/3 "2019-04-04T10:51:02Z")

</div>

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