2023-06-21 00:18:52 +02:00
|
|
|
input {
|
|
|
|
syslog {
|
|
|
|
port => 5140
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
output {
|
|
|
|
opensearch {
|
|
|
|
hosts => ["http://victorialogs:9428/insert/elasticsearch"]
|
|
|
|
custom_headers => {
|
|
|
|
"AccountID" => "0"
|
|
|
|
"ProjectID" => "0"
|
|
|
|
}
|
|
|
|
parameters => {
|
|
|
|
"_stream_fields" => "host.ip,process.name"
|
|
|
|
"_msg_field" => "message"
|
|
|
|
"_time_field" => "@timestamp"
|
|
|
|
}
|
|
|
|
}
|
2024-09-03 17:43:26 +02:00
|
|
|
http {
|
|
|
|
url => "http://victorialogs:9428/insert/jsonline?_stream_fields=host.ip,process.name&_msg_field=message&_time_field=@timestamp"
|
|
|
|
format => "json"
|
|
|
|
http_method => "post"
|
|
|
|
}
|
|
|
|
loki {
|
|
|
|
url => "http://victorialogs:9428/insert/loki/api/v1/push?_stream_fields=host.ip,process.name&_msg_field=message&_time_field=@timestamp"
|
|
|
|
}
|
|
|
|
}
|