# Export "Differentiated Services" (TOS) IPv4/IPv6 header field

**URL:** <https://discuss.elastic.co/t/export-differentiated-services-tos-ipv4-ipv6-header-field/172556>\
**Category:** Beats\
**Tags:** packetbeat\
**Created:** [March 15, 2019, 3:10pm UTC](https://discuss.elastic.co/t/export-differentiated-services-tos-ipv4-ipv6-header-field/172556 "2019-03-15T15:10:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![guido.lamoto](https://avatars.discourse-cdn.com/v4/letter/g/7c8e57/32.png) [@guido.lamoto](https://discuss.elastic.co/u/guido.lamoto)\
**Post date:** [March 15, 2019, 3:10pm UTC](https://discuss.elastic.co/t/export-differentiated-services-tos-ipv4-ipv6-header-field/172556/1 "2019-03-15T15:10:53Z")

</div>

It would be nice to track "Differentiated Services" field (see [RFC2474](https://tools.ietf.org/html/rfc2474)) and have it available as exported field in Packetbeat.  
It is the second bytes in the IPv4 header (the old TOS field) and bits 4 to 11 in the IPv6 header.

Currently I have 3 class of service and I'm using the `bpf_filter` options to filter at low level. But I have to run 3 Packetbeat instances, one for each class. This solution does not scale very well.

Thanks for your support.

---

<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:** [March 21, 2019, 4:06pm UTC](https://discuss.elastic.co/t/export-differentiated-services-tos-ipv4-ipv6-header-field/172556/2 "2019-03-21T16:06:37Z")

</div>

Hi,

This sounds like a useful feature to have. Do you mind creating an [Enhancement Request](https://github.com/elastic/beats/issues/new?template=feature-request.md) at the Beats repo?

---

<div class="post-metadata">

**Author:** ![guido.lamoto](https://avatars.discourse-cdn.com/v4/letter/g/7c8e57/32.png) [@guido.lamoto](https://discuss.elastic.co/u/guido.lamoto)\
**Post date:** [March 26, 2019, 8:51pm UTC](https://discuss.elastic.co/t/export-differentiated-services-tos-ipv4-ipv6-header-field/172556/3 "2019-03-26T20:51:06Z")

</div>

Done.

Thank you again for your support.

---

<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 23, 2019, 8:51pm UTC](https://discuss.elastic.co/t/export-differentiated-services-tos-ipv4-ipv6-header-field/172556/4 "2019-04-23T20:51:10Z")

</div>

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