Merge pull request 'バージョンアップに伴い、Vectorの設定ファイルを修正' (#1) from vector-config-modification into master

Reviewed-on: #1
This commit is contained in:
Kazuhiro MUSASHI 2022-12-30 03:16:51 +00:00
commit f2361aeee7
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"