Difference between revisions of "Adding items to the Haproxy log"

From EN Ikoula wiki
⧼vector-jumptonavigation⧽ ⧼vector-jumptosearch⧽
(Created page with "<span data-link_translate_fr_title="Ajouter des éléments dans le log Haproxy" data-link_translate_fr_url="Ajouter des éléments dans le log Haproxy"></span>:fr:Ajouter d...")
 
Line 1: Line 1:
 +
<span data-link_translate_es_title="Añadir elementos al registro de Haproxy"  data-link_translate_es_url="Añadir elementos al registro de Haproxy"></span>[[:es:Añadir elementos al registro de Haproxy]][[es:Añadir elementos al registro de Haproxy]]
 
<span data-link_translate_fr_title="Ajouter des éléments dans le log Haproxy"  data-link_translate_fr_url="Ajouter des éléments dans le log Haproxy"></span>[[:fr:Ajouter des éléments dans le log Haproxy]][[fr:Ajouter des éléments dans le log Haproxy]]
 
<span data-link_translate_fr_title="Ajouter des éléments dans le log Haproxy"  data-link_translate_fr_url="Ajouter des éléments dans le log Haproxy"></span>[[:fr:Ajouter des éléments dans le log Haproxy]][[fr:Ajouter des éléments dans le log Haproxy]]
 
<br />This article has been created by an automatic translation software. You can view the article source [[:fr:Ajouter des éléments dans le log Haproxy|here]].<br /><span data-translate="fr"></span><br />
 
<br />This article has been created by an automatic translation software. You can view the article source [[:fr:Ajouter des éléments dans le log Haproxy|here]].<br /><span data-translate="fr"></span><br />

Revision as of 14:36, 7 July 2021

es:Añadir elementos al registro de Haproxy fr:Ajouter des éléments dans le log Haproxy
This article has been created by an automatic translation software. You can view the article source here.

Introduction

We will see how to add items to the Haproxy log

Course

In our example we want to add the name of the called domain in the Haproxy logs (by default there is just the URI), we will add in the frontend:

capture request header Host len 50

The value len 50 represents the number of characters to capture (here 50), you can adapt this to the length of your domain names.

A second example to add the User-agent :

capture request header User-Agent len 64

You can do this with any headers you wish to display in the logs.




Cet article vous a semblé utile ?

0



You are not allowed to post comments.