echo 'this is a test log' >> /home/test-log/test.log
enable: true
inputs:
- Type: file_log
LogPath: /home/test-log/
FilePattern: key_value.log
processors:
- Type: processor_add_fields
Fields:
service: A
IgnoreIfExist: false
flushers:
- Type: flusher_sls
Endpoint: cn-xxx.log.aliyuncs.com
ProjectName: test_project
LogstoreName: test_logstore
- Type: flusher_stdout
OnlyStdout: true
{
"__tag__:__path__": "/home/test_log/key_value.log",
"content": "this is a test log",
"service": "A",
"__time__": "1657354602"
}