2024-09-09 21:33:05 +00:00
|
|
|
input {
|
|
|
|
file {
|
|
|
|
path => "/var/lib/docker/containers/*/*.log"
|
|
|
|
start_position => "beginning"
|
|
|
|
type => "docker"
|
|
|
|
sincedb_path => "/dev/null"
|
|
|
|
codec => "json"
|
|
|
|
add_field => {
|
|
|
|
"path" => "%{[@metadata][path]}"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output {
|
|
|
|
http {
|
2024-09-25 16:33:26 +00:00
|
|
|
url => "http://victorialogs:9428/insert/jsonline?_stream_fields=host.name,stream&_msg_field=log&_time_field=time"
|
2024-09-09 21:33:05 +00:00
|
|
|
format => "json"
|
|
|
|
http_method => "post"
|
|
|
|
}
|
|
|
|
http {
|
|
|
|
url => "http://victorialogs-2:9428/insert/jsonline?_stream_fields=host.name,stream&_msg_field=log&_time_field=time"
|
|
|
|
format => "json"
|
|
|
|
http_method => "post"
|
|
|
|
}
|
2024-09-25 16:33:26 +00:00
|
|
|
}
|