# Question regarding custom log formats

**URL:** <https://discourse.haproxy.org/t/question-regarding-custom-log-formats/2688>\
**Category:** Help!\
**Created:** [July 4, 2018, 10:53am UTC](https://discourse.haproxy.org/t/question-regarding-custom-log-formats/2688 "2018-07-04T10:53:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ularnis](https://avatars.discourse-cdn.com/v4/letter/u/43a26b/32.png) [@ularnis](https://discourse.haproxy.org/u/ularnis)\
**Post date:** [July 4, 2018, 10:53am UTC](https://discourse.haproxy.org/t/question-regarding-custom-log-formats/2688/1 "2018-07-04T10:53:02Z")

</div>

Hello all,

I have the following situation:  
We are running a haproxy 1.7.5 installation and the config has dozens of frontends and over a hundred backends. Some of those are working in TCP mode, most of them in HTTP mode. All running fine.  
We are using the respective default log formats (option httplog and option tcplog)

I now want to capture additional log information (ssl\_ciphers, ssl\_version and sni) and I understand that this is possible using the `log-format` directive, but as far as I understand I cannot set that globally in the defaults (as I still want to differentiate between tcp and http mode) and I cannot modify the “httplog” and “tcplog” default formats. Which would leave me with the only option of explicitly putting my custom format in each and every of those frontend definitions.  
This is not very flexible if I want to change the custom format again later.

Is there any better option I am not aware of?

Thanks!

---

<div class="post-metadata">

**Author:** ![Baptiste](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@Baptiste](https://discourse.haproxy.org/u/Baptiste)\
**Post date:** [July 12, 2018, 12:55pm UTC](https://discourse.haproxy.org/t/question-regarding-custom-log-formats/2688/2 "2018-07-12T12:55:45Z")

</div>

Hi,

You are unfortunately right.

---

<div class="post-metadata">

**Author:** ![ularnis](https://avatars.discourse-cdn.com/v4/letter/u/43a26b/32.png) [@ularnis](https://discourse.haproxy.org/u/ularnis)\
**Post date:** [July 13, 2018, 10:59am UTC](https://discourse.haproxy.org/t/question-regarding-custom-log-formats/2688/3 "2018-07-13T10:59:37Z")

</div>

Hi,

thanks for confirming. I take this is the same for the more recent versions and are no plans to change that?
