mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-19 23:16:26 +01:00
25 lines
614 B
Plaintext
25 lines
614 B
Plaintext
|
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 {
|
||
|
url => "http://victorialogs-1:9428/insert/jsonline?_stream_fields=host.name,stream&_msg_field=log&_time_field=time"
|
||
|
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"
|
||
|
}
|
||
|
}
|