Skip to content

[Backport #237] Add Netty handler to log HTTP wire traffic - #238

Merged
andsel merged 4 commits into
logstash-plugins:3.xfrom
andsel:backport_237_3.x
Aug 20, 2026
Merged

[Backport #237] Add Netty handler to log HTTP wire traffic#238
andsel merged 4 commits into
logstash-plugins:3.xfrom
andsel:backport_237_3.x

Conversation

@andsel

@andsel andsel commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Clean backport of #237 to 3.x branch.

andsel and others added 3 commits July 29, 2026 13:32
)

Change MessageProcessor to use the charset contained in Content-type header if available, else fallback on UTF-8.

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
Implements a functionality to log HTTP traffic. It's enabled by enabling debug log.

As a user that want's to debug his data flow I need to be able to track what's effectively sent to the HTTP input socket.

- Created new WireLogger Netty handler to log information about channel opening/closing and dumping read and write traffic.
- Truncate the dumped content to 4KB or can be customised by setting `logstash.httpinput.wire.dump.size` Java system property.
- Updated client channel initializer to include such handler.
- Updates Java target and source compatibility to use HttpClient provided by JDK standard library since version 11.

Co-authored-by: Cas Donoghue <cas.donoghue@gmail.com>
@andsel andsel self-assigned this Aug 20, 2026
@andsel
andsel merged commit 3814521 into logstash-plugins:3.x Aug 20, 2026
11 checks passed
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.

1 participant