Merge pull request 'バージョンアップに伴い、Vectorの設定ファイルを修正' (#1) from vector-config-modification into master
Reviewed-on: #1
This commit is contained in:
commit
f2361aeee7
|
@ -1,12 +1,16 @@
|
||||||
data_dir = "/var/lib/vector"
|
data_dir = "/var/lib/vector"
|
||||||
|
|
||||||
[sources.docker]
|
[sources.docker]
|
||||||
type = "docker"
|
type = "docker_logs"
|
||||||
|
|
||||||
[transforms.docker-transform]
|
[transforms.docker-transform]
|
||||||
type = "remove_fields"
|
type = "remap"
|
||||||
inputs = ["docker"]
|
inputs = ["docker"]
|
||||||
fields = ["container_created_at", "container_id", "container_name"]
|
source = '''
|
||||||
|
del(.container_created_at)
|
||||||
|
del(.container_id)
|
||||||
|
del(.container_name)
|
||||||
|
'''
|
||||||
|
|
||||||
[sinks.docker-logs]
|
[sinks.docker-logs]
|
||||||
type = "loki"
|
type = "loki"
|
||||||
|
|
Loading…
Reference in New Issue