# Full http path?

**URL:** <https://discuss.elastic.co/t/full-http-path/125648>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [March 26, 2018, 4:52pm UTC](https://discuss.elastic.co/t/full-http-path/125648 "2018-03-26T16:52:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wanderer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wanderer/32/55140_2.png) [@Wanderer](https://discuss.elastic.co/u/Wanderer)\
**Post date:** [March 26, 2018, 4:52pm UTC](https://discuss.elastic.co/t/full-http-path/125648/1 "2018-03-26T16:52:00Z")

</div>

Is it possible to have packetbeat output the full path including the domain name vs just the uri?

Example:  
Display [www.example.com/getmethispage/](http://www.example.com/getmethispage/) vs. just showing /getmethispage

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [March 26, 2018, 6:15pm UTC](https://discuss.elastic.co/t/full-http-path/125648/2 "2018-03-26T18:15:03Z")

</div>

Packetbeat doesn't generate any field with the full URL, this could be misleading in some cases depending on the requests done by clients, for example to have a full URL you might also need some parameters, apart of the valid `Host` header.

You can find the hostname used in the request in the field `http.request_headers.host`, and the full path in the `path` field.

---

<div class="post-metadata">

**Author:** ![Wanderer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wanderer/32/55140_2.png) [@Wanderer](https://discuss.elastic.co/u/Wanderer)\
**Post date:** [April 4, 2018, 12:50pm UTC](https://discuss.elastic.co/t/full-http-path/125648/3 "2018-04-04T12:50:43Z")

</div>

Thank you. If I want to collect these header fields would the line look like this in the packetbeat.yml?

send\_headers: ["from","host", "code", "link", "server", "x-pingback", "phrase"]

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [April 5, 2018, 6:22pm UTC](https://discuss.elastic.co/t/full-http-path/125648/4 "2018-04-05T18:22:55Z")

</div>

Exactly, that's it, you need to specify the list of headers you want to capture using `send_headers`. Also setting `send_all_headers` to `true` collects all headers.

---

<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:** [May 3, 2018, 6:23pm UTC](https://discuss.elastic.co/t/full-http-path/125648/5 "2018-05-03T18:23:01Z")

</div>

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