采集配置
enable: true
inputs:
- Type: file_log
LogPath: /home/test-log
FilePattern: reg.log
processors:
- Type: processor_regex
SourceKey: content
Regex: (\d*-\d*-\d*)\s(.*)
Keys:
- time
- msg
flushers:
- Type: flusher_sls
Endpoint: cn-xxx.log.aliyuncs.com
ProjectName: test_project
LogstoreName: test_logstore
- Type: flusher_stdout
OnlyStdout: trueLast updated