-
hello, this is my config, thanks I guess I should use parse_query_string in transforms, but I haven't used it after reading the documentation. # Receiver
sources:
http_in:
type: "http_server"
address: "127.0.0.1:5006"
method: POST
path: /api
query_parameters:
- log_type
encoding:
codec: "json"
sinks:
save_file:
type: file
encoding:
codec: "json"
compression: "gzip"
inputs:
- http_in
# This variable is not effective
path: /data/vector/{{.log_type}}-%Y-%m-%d.log.gz
# Sender
---
sinks:
https_out:
type: "http"
inputs:
- "file_logs"
uri: "https://example.com/api?log_type=kernel"
method: post
compression: "gzip"
encoding:
codec: "json"
request:
timeout_secs: 5
retry_attempts: 10 |
Beta Was this translation helpful? Give feedback.
Answered by
jszwedko
Sep 3, 2024
Replies: 1 comment 4 replies
-
I think you want |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, if that is what your events look like than
{{.log_type}}
should be right.