Skip to content
Discussion options

You must be logged in to vote

Hi @chrisdeeming, this component doesn't support bearer strategy.

Here is a working example:

sources:
  http_logs:
    type: http_server
    address: 0.0.0.0:9000
    auth:
      strategy: "custom"
      source: |-
        .headers.authorization == "test"

transforms:
  add_hostname:
    type: remap
    inputs: [http_logs]
    source: |
      .hostname = .headers."x-server-name"[0]
      .program = "nginx"

# same as above

Or

    auth:
      strategy: basic
      username: foo
      password: xxx

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pront
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