Skip to content

Conversation

therandomstring
Copy link
Contributor

Added compression ability to http destination driver using partially built-in libcurl-capabilities (for accepting compressed headers) and own compression algorithm for outward compression using zlib.
Currently supported compression types are gzip and deflate.

resolves #3923

@kira-syslogng
Copy link
Contributor

This user does not have permission to start the build. Can one of the admins verify this patch and start the build?
(admin: you have the next options (make sure you checked the code):
"ok to test" to accept this pull request (and further changes) for testing
"test this please" for a one time test run
"add to whitelist" add author of a Pull Request to whitelist (globally, be careful, it means this user can trigger kira for any PR)
do nothing -> CI won't start)

1 similar comment
@kira-syslogng
Copy link
Contributor

This user does not have permission to start the build. Can one of the admins verify this patch and start the build?
(admin: you have the next options (make sure you checked the code):
"ok to test" to accept this pull request (and further changes) for testing
"test this please" for a one time test run
"add to whitelist" add author of a Pull Request to whitelist (globally, be careful, it means this user can trigger kira for any PR)
do nothing -> CI won't start)

@github-actions
Copy link
Contributor

No news file has been detected. Please write one, if applicable.

@MrAnno
Copy link
Collaborator

MrAnno commented Sep 16, 2022

@kira-syslogng add to whitelist

@MrAnno
Copy link
Collaborator

MrAnno commented Sep 16, 2022

@kira-syslogng do stresstest

@kira-syslogng
Copy link
Contributor

Kira-stress-test: Build SUCCESS

@bazsi
Copy link
Collaborator

bazsi commented Sep 16, 2022

Wow. @ryanfaircloth I think you were interested in something like this.

@MrAnno MrAnno self-requested a review September 17, 2022 12:21
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Sep 21, 2022
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Copy link
Collaborator

@alltilla alltilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a really nice feature, good job!

Unfortunately, I did not have the time to finish my review, but I will get back to it later.
In the meantime I think it is worth to share some of my findings, so you have the possibility to start working on them.

@kira-syslogng
Copy link
Contributor

Build FAILURE

1 similar comment
@kira-syslogng
Copy link
Contributor

Build FAILURE

therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Oct 5, 2022
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Oct 5, 2022
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Oct 5, 2022
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Oct 5, 2022
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Oct 5, 2022
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Oct 5, 2022
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Oct 5, 2022
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Oct 6, 2022
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Oct 6, 2022
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
@MrAnno MrAnno removed their request for review February 17, 2023 13:51
@MrAnno MrAnno marked this pull request as draft April 25, 2023 23:10
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Jul 24, 2023
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Jul 25, 2023
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
@therandomstring therandomstring changed the title WIP: http driver compression options http driver compression options Jul 25, 2023
@therandomstring therandomstring marked this pull request as ready for review July 25, 2023 07:41
@alltilla
Copy link
Collaborator

Thanks for the changes, this looks good!

Bálint Horváth added 2 commits August 1, 2023 09:23
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
…compression'

Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
therandomstring added a commit to therandomstring/syslog-ng that referenced this pull request Aug 1, 2023
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Bálint Horváth and others added 10 commits August 1, 2023 14:44
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Zlib handles gzip and deflate the same, the difference is only a magic constant. (16 needs to be added to WBITS to indicate gzip compression to Zlib. See: https://www.zlib.net/manual.html chapter VIII.)
Compressed data can be 10% larger than uncompressed (see Zlib `compress2()`) + 22 bytes are added for header/footer.

Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
…lemented compression types

Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
The specific test function is needed, because the compressed string is likely to contain null characters.

Signed-off-by: Bálint Horváth <bal.horv.98@gmail.com>
Copy link
Collaborator

@alltilla alltilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing feature, good job!

@alltilla alltilla merged commit 1d69d32 into syslog-ng:master Aug 18, 2023
fekete-robert pushed a commit to axoflow/axosyslog-core-docs that referenced this pull request Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HTTP destination driver support gzip compression
5 participants