Repository navigation
Releases: Umupa/beats-output-http-plugin
Releases · Umupa/beats-output-http-plugin
Release list
v1.3.0 - Dynamic Path Routing with Suffix Support
Features
Dynamic Path Routing
- Add
path_prefixandpath_fieldconfiguration for dynamic stream routing - Events are routed to different paths based on field values
- Routing field is excluded from request body to avoid duplication
Path Suffix Support
- Add
path_suffixconfiguration to append fixed suffix (e.g.,/_json) - Enables compatibility with APIs requiring specific path formats
Batch Optimization
- Events in batch mode are automatically grouped by resolved target URL
- Each group is sent in a separate HTTP request for efficiency
Fallback Mechanism
- Falls back to static
pathwhen dynamic field is missing - Prevents accidental posting to host root with safety checks
Configuration Examples
Dynamic routing with suffix
output.http:
hosts: ["http://litelog:12100"]
path_prefix: /litelog-new/api/log/stream
path_field: stream
path_suffix: /_json
batch_publish: trueResult:
stream=edge_app→/litelog-new/api/log/stream/edge_app/_jsonstream=edge_k3s→/litelog-new/api/log/stream/edge_k3s/_json
Testing
- Comprehensive test coverage for all routing scenarios
- All tests passing ✅
Backward Compatibility
- Fully backward compatible with existing static path configurations
- No breaking changes