Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4714

Regsub default vars in log-format

$
0
0

I have log-format with %hr and %r vars and I want to do regsub before logging them.
I tried %[var(req.hr),regsub(…)] and %[var(req.r),regsub(…)], but it doesn’t work. Is it possible to use default vars or I need to use captures explicitely? In this case, capture.req.header(i) returns dash for empty header instead of empty line in %hr

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4714

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>