Skip to content

Commit

Permalink
batch vector logs (#1605)
Browse files Browse the repository at this point in the history
  • Loading branch information
goastler authored Jan 8, 2025
1 parent 588df9a commit 4a4ed33
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker/images/vector/vector.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ compression = "gzip"
encoding.codec = "json"
encoding.timestamp_format = "rfc3339"
healthcheck.enabled = false
batch.timeout_secs = 10 # time to wait before sending a batch
batch.max_bytes = 10485760 # 10mb, max number of bytes per batch
batch.max_events = 100000 # max number of events per batch

# listen to docker events for containers starting+ending
[sources.docker]
Expand Down Expand Up @@ -100,6 +103,9 @@ compression = "gzip"
encoding.codec = "json"
encoding.timestamp_format = "rfc3339"
healthcheck.enabled = false
batch.timeout_secs = 10 # time to wait before sending a batch
batch.max_bytes = 10485760 # 10mb, max number of bytes per batch
batch.max_events = 100000 # max number of events per batch

[sources.caddy]
type = "docker_logs"
Expand Down Expand Up @@ -135,6 +141,9 @@ compression = "gzip"
encoding.codec = "json"
encoding.timestamp_format = "rfc3339"
healthcheck.enabled = false
batch.timeout_secs = 10 # time to wait before sending a batch
batch.max_bytes = 10485760 # 10mb, max number of bytes per batch
batch.max_events = 100000 # max number of events per batch

[sources.watchtower]
type = "docker_logs"
Expand Down Expand Up @@ -163,3 +172,6 @@ compression = "gzip"
encoding.codec = "json"
encoding.timestamp_format = "rfc3339"
healthcheck.enabled = false
batch.timeout_secs = 10 # time to wait before sending a batch
batch.max_bytes = 10485760 # 10mb, max number of bytes per batch
batch.max_events = 100000 # max number of events per batch

0 comments on commit 4a4ed33

Please sign in to comment.