Replies: 1 comment
-
|
I merged the above into: sources:
heartbeat:
type: demo_logs
format: shuffle
lines:
- "heartbeat"
#count: 1
interval: 10 # emit every s
transforms:
enrich_heartbeat:
type: remap
inputs:
- heartbeat
source: |
del(.source_id)
.message = "heartbeat"
.heartbeat = true
.host = get_hostname!()
.hostname = .host
if is_null(.hostname) || .hostname == "" {
.hostname,err = get_env_var("HOSTNAME")
}
.source_id = .hostname
.logsource = "heartbeat" # <- make it obvious
stringstrinh = string(.message)
parsed,err = parse_json(stringstrinh)
sinks:
to_collector:
type: http
inputs: ["*"]
method: post
uri: "https://log.collector.local:8443/ingest"
encoding:
codec: json
compression: gzip
batch:
max_bytes: 1048576
timeout_secs: 1
request:
in_flight_limit: 8
timeout_secs: 30
retry_backoff_secs: 1
retry_max_duration_secs: 600And ran: Note that I added a top level This might be a Vector config loading bug related to your file organization. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hello,
I’m feeling quite stuck and would really appreciate your help.
I’ve been trying to run Vector using a directory that contains my configuration files, but I keep getting an error that I can’t make sense of. Unfortunately, I haven’t found any way to get more detailed error information.
Could you please help me figure out what’s going wrong?
My configs are organized this way:
Vector Config
Vector Logs
Beta Was this translation helpful? Give feedback.
All reactions