# Packetbeat - external API response

**URL:** <https://discuss.elastic.co/t/packetbeat-external-api-response/182308>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [May 22, 2019, 7:08pm UTC](https://discuss.elastic.co/t/packetbeat-external-api-response/182308 "2019-05-22T19:08:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paula](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@Paula](https://discuss.elastic.co/u/Paula)\
**Post date:** [May 22, 2019, 7:08pm UTC](https://discuss.elastic.co/t/packetbeat-external-api-response/182308/1 "2019-05-22T19:08:28Z")

</div>

Quick configuration question... new to beats

Viewing json status code and bytes output for each request however not the actual response. Is there a yml flag to set in order to display?

Please advise, Thanks!

---

<div class="post-metadata">

**Author:** ![webmat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/webmat/32/46191_2.png) [@webmat](https://discuss.elastic.co/u/webmat)\
**Post date:** [May 22, 2019, 7:36pm UTC](https://discuss.elastic.co/t/packetbeat-external-api-response/182308/2 "2019-05-22T19:36:53Z")

</div>

Hello,

For all protocols, you can enable [send\_response](https://www.elastic.co/guide/en/beats/packetbeat/current/common-protocol-options.html#send-response-option) (or `send_request`). Both options are common to all protocols

Depending on the protocol you want to inspect, you may want to limit which content types you inspect like this. For example, HTTP has the options [include\_body\_for](https://www.elastic.co/guide/en/beats/packetbeat/current/packetbeat-http-options.html#_literal_include_body_for_literal). See this second link for a full configuration snippet, to do just that for the HTTP protocol.

Good luck!

Mat

---

<div class="post-metadata">

**Author:** ![Paula](https://avatars.discourse-cdn.com/v4/letter/p/8e8cbc/32.png) [@Paula](https://discuss.elastic.co/u/Paula)\
**Post date:** [May 23, 2019, 12:52pm UTC](https://discuss.elastic.co/t/packetbeat-external-api-response/182308/3 "2019-05-23T12:52:35Z")

</div>

Much thanks, now able to view both json request and response in kibana. Thanks!

---

<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:** [June 20, 2019, 1:00pm UTC](https://discuss.elastic.co/t/packetbeat-external-api-response/182308/4 "2019-06-20T13:00:28Z")

</div>

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