# \-httpprof host:port gets me a tcp listen, but always a 404

**URL:** <https://discuss.elastic.co/t/httpprof-host-port-gets-me-a-tcp-listen-but-always-a-404/49917>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [May 12, 2016, 3:48pm UTC](https://discuss.elastic.co/t/httpprof-host-port-gets-me-a-tcp-listen-but-always-a-404/49917 "2016-05-12T15:48:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwmullet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kwmullet/32/9381_2.png) [@kwmullet](https://discuss.elastic.co/u/kwmullet)\
**Post date:** [May 12, 2016, 3:48pm UTC](https://discuss.elastic.co/t/httpprof-host-port-gets-me-a-tcp-listen-but-always-a-404/49917/1 "2016-05-12T15:48:18Z")

</div>

What page do I request to get the profiling information?

I'm using filebeat, but as I understand it, the -httpprof switch is available to all the beats.

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [May 12, 2016, 5:01pm UTC](https://discuss.elastic.co/t/httpprof-host-port-gets-me-a-tcp-listen-but-always-a-404/49917/2 "2016-05-12T17:01:40Z")

</div>

The `-httpprof` exposes the standard Golang http endpoint (`/debug/pprof`) so you can use their documentation to find more information about how to profile Golang apps. These are the primary profiling docs:

- [https://golang.org/pkg/net/http/pprof/](https://golang.org/pkg/net/http/pprof/)
- [https://blog.golang.org/profiling-go-programs](https://blog.golang.org/profiling-go-programs)

Also as a side effect of running `-httpprof` it also exposes some metrics at `/debug/vars`. These are mostly provided by the Go [expvar package](https://golang.org/pkg/expvar/) but there are a few metrics from libbeat.

---

<div class="post-metadata">

**Author:** ![kwmullet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kwmullet/32/9381_2.png) [@kwmullet](https://discuss.elastic.co/u/kwmullet)\
**Post date:** [May 12, 2016, 8:45pm UTC](https://discuss.elastic.co/t/httpprof-host-port-gets-me-a-tcp-listen-but-always-a-404/49917/3 "2016-05-12T20:45:05Z")

</div>

Andrew,

Thanks for the outstanding reply. That was just what I needed.

Thanks very much!

-KwM-

---

<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, 2017, 9:52pm UTC](https://discuss.elastic.co/t/httpprof-host-port-gets-me-a-tcp-listen-but-always-a-404/49917/4 "2017-07-05T21:52:03Z")

</div>


