Vector.dev Log Shipping Pipeline Configuration (vector.toml)

# vector.toml - High-Performance Log Shipping Pipeline [sources.docker_logs] type = "docker_logs" include_units = ["app-*", "nginx-*"] [transforms.parse_json] type = "remap" inputs = ["docker_logs"] source = ''' . = parse_json(.message) ?? . .timestamp = to_timestamp!(.timestamp) ?? now() .environment = "production" ''' [sinks.loki] type = "loki" inputs = ["parse_json"] endpoint = "http://loki:3100" encoding.codec = "json" [sinks.loki.labels] service = "{{ service_name }}" level = "{{ level }}" env = "production"
Vector.dev Log Shipping Pipeline Configuration (vector.toml)
Note
Notification