バージョンアップに伴い、Vectorの設定ファイルを修正

This commit is contained in:
Kazuhiro MUSASHI 2022-12-30 12:06:20 +09:00
parent 7b69c4d54b
commit 825fc30121
1 changed files with 7 additions and 3 deletions

View File

@ -1,12 +1,16 @@
data_dir = "/var/lib/vector"
[sources.docker]
type = "docker"
type = "docker_logs"
[transforms.docker-transform]
type = "remove_fields"
type = "remap"
inputs = ["docker"]
fields = ["container_created_at", "container_id", "container_name"]
source = '''
del(.container_created_at)
del(.container_id)
del(.container_name)
'''
[sinks.docker-logs]
type = "loki"