-
Notifications
You must be signed in to change notification settings - Fork 262
Http Reader
Andrewei edited this page Jan 2, 2018
·
4 revisions
Http Reader 是 logkit 提供的以 http post 请求的方式接受并读取日志的形式
"reader":{
"mode": "http",
"http_service_address": "127.0.0.1:4001",
"http_service_path": "/logkit/data"
}
-
http_service_address: 必填, 监听的地址和端口(地址可以留空, 即上述示例可以只填写:4001) -
http_service_path: 选填, 请求发送的路径(上述示例中, post 请求应该发往http://127.0.0.1:4001/logkit/data)
- 该 reader 支持
gzip, 但请在请求头中添加Content-Encoding=gzip或者Content-Type=application/gzip - 默认接收 request body 中所有的数据作为要读取的日志, 限制 request body 小于 100MB
- 默认将 request body 中的数据使用
\n分割, 每行作为一条数据
快速开始 | Pandora | Readers | Parsers | Senders | Download | 七牛智能日志管理平台 | logkit-pro专业版