Last updated
echo '{"ip": "10.**.**.**", "method": "POST", "brower": "aliyun-sdk-java"}' >> /home/test-log/proccessor-rate-limit.log
echo '{"ip": "10.**.**.**", "method": "POST", "brower": "aliyun-sdk-java"}' >> /home/test-log/proccessor-rate-limit.log
echo '{"ip": "10.**.**.**", "method": "POST", "brower": "aliyun-sdk-java"}' >> /home/test-log/proccessor-rate-limit.logenable: true
inputs:
- Type: input_file
FilePaths:
- /home/test-log/*.log
processors:
- Type: processor_json
SourceKey: content
KeepSource: false
ExpandDepth: 1
ExpandConnector: ""
- Type: processor_rate_limit
Fields:
- "ip"
Limit: "1/s"
flushers:
- Type: flusher_stdout
OnlyStdout: true{
"__tag__:__path__": "/home/test-log/proccessor-rate-limit.log",
"__time__": "1658837955",
"brower": "aliyun-sdk-java",
"ip": "10.**.**.**",
"method": "POST"
}