]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: halog: exit with error when some output filters are set simultaneosly
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 16 Jul 2025 12:35:28 +0000 (14:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 17 Jul 2025 15:22:37 +0000 (17:22 +0200)
commit254e4d59f75784c237e0c51596c6e0ca8730e717
tree9db01e2120af906ab1257a3562075b9887b99d94
parent4eef300a2c565b2f0dc593e6ec0ad9a336bb611a
BUG/MINOR: halog: exit with error when some output filters are set simultaneosly

Exit with an error if multiple output filters (-ic, -srv, -st, -tc, -u*, etc.)
are used at the same time.

halog is designed to process and display output for only one filter at a time.
Using multiple filters simultaneously can cause a crash because the program is
not designed to manage multiple, separate result sets (e.g., one for
IP counts, another for URLs).

Supporting simultaneous filters would require a redesign to collect entries for
each filter in separate ebtree. This would negatively impact performance and is
not requested for the moment. This patch prevents the crash by checking filter
combinations just after the command line parsing.

This issue was reported in GitHUB #3031.
This should be backported in all stable versions.
admin/halog/halog.c