Skip to content
Discussion options

You must be logged in to vote

Hi @tbenade, here is an example using the native proto to send multiple events in one shot:

Vector Config

sources:
  http_server:
    type: http_server
    address: "0.0.0.0:8080"
    strict_path: false
    decoding:
      codec: "native"
    framing:
      method: "bytes"


transforms:
  route:
    type: route
    inputs:
      - http_server
    reroute_unmatched: false
    route:
      logs:
        type: is_log
      metrics:
        type: is_metric
      traces:
        type: is_trace

sinks:
  console_for_metrics:
    inputs:
     - route.metrics
    type: console
    encoding:
      codec: "json"
      json:
        pretty: true

  console_for_logs:
    inputs:
      - route.logs
    

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pront
Comment options

You must be logged in to vote
3 replies
@pront
Comment options

@tbenade
Comment options

@pront
Comment options

pront Sep 3, 2025
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
source: http_server Anything `http_server` source related
2 participants