Skip to content

Releases: Umupa/beats-output-http-plugin

v1.3.0 - Dynamic Path Routing with Suffix Support

Choose a tag to compare

@Umupa Umupa released this 31 Mar 09:17

Features

Dynamic Path Routing

  • Add path_prefix and path_field configuration 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_suffix configuration 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 path when 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: true

Result:

  • stream=edge_app → /litelog-new/api/log/stream/edge_app/_json
  • stream=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

v1.2.0

Choose a tag to compare

@Umupa Umupa released this 31 Oct 07:28

Full Changelog: v1.1.0...v1.2.0

v1.0.0

Choose a tag to compare

@Umupa Umupa released this 31 Oct 06:24
5386f3c

Full Changelog: v0.0.6...v1.0.0