バージョンアップに伴い、Vectorの設定ファイルを修正
This commit is contained in:
parent
7b69c4d54b
commit
825fc30121
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue