Closed LeiZhang-Hunter closed 1 year ago
pipelines: - name: local sources: - type: file enabled: false name: demo paths: - /home/zhanglei/*.log fields: "@topic": "loggie" interceptors: - type: normalize name: global processors: - addMeta: ~ - add: fields: "metadata.module": "loggie" "metadata.type": "" "metadata.version": 1.444 - rename: convert: - from: "meta.systemState.collectTime" to: "colleciton.@collectiontime" - from: "body" to: "collection.@message" - from: "meta.systemState.filename" to: "collection.@path" - from: "meta.systemState.lineNumber" to: "collection.@rownumber" - drop: targets: ["meta"] sink: # type: dev # printEvents: true # codec: # pretty: true type: router hosts: - "192.168.110.117:7070" max_client: 1
Fixes #
if globalWatcher == nil { return watcherMetrics }
fix globalWatcher is nil
Proposed Changes:
Which issue(s) this PR fixes:
Fixes #
Additional documentation: