# Adding custom field for Haproxy filebeat module?

**URL:** <https://discuss.elastic.co/t/adding-custom-field-for-haproxy-filebeat-module/171770>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [March 11, 2019, 1:01pm UTC](https://discuss.elastic.co/t/adding-custom-field-for-haproxy-filebeat-module/171770 "2019-03-11T13:01:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![10acc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/10acc/32/96079_2.png) [@10acc](https://discuss.elastic.co/u/10acc)\
**Post date:** [March 11, 2019, 1:01pm UTC](https://discuss.elastic.co/t/adding-custom-field-for-haproxy-filebeat-module/171770/1 "2019-03-11T13:01:24Z")

</div>

Hello, I am using filebeat to ship my haproxy logs to the elastic cloud.  
But the thing I am missing in exported fields is "frontend\_port" , referred to as %fp in haproxy custom log format.

Is there a relatively easy way to add that field to be shipped?  
Thank you.

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [March 11, 2019, 2:35pm UTC](https://discuss.elastic.co/t/adding-custom-field-for-haproxy-filebeat-module/171770/2 "2019-03-11T14:35:25Z")

</div>

This looks like a duplicate 🙂

---

<div class="post-metadata">

**Author:** ![10acc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/10acc/32/96079_2.png) [@10acc](https://discuss.elastic.co/u/10acc)\
**Post date:** [March 11, 2019, 2:37pm UTC](https://discuss.elastic.co/t/adding-custom-field-for-haproxy-filebeat-module/171770/3 "2019-03-11T14:37:37Z")

</div>

It is ) the other thread got very mixed up, so i thought I would create a different one for this issue specifically. Feel free to remove it, as it's resolved. Thank you @steffens

---

<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 8, 2019, 2:37pm UTC](https://discuss.elastic.co/t/adding-custom-field-for-haproxy-filebeat-module/171770/4 "2019-04-08T14:37:41Z")

</div>

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