最近更新时间:2022-01-12 11:52:59
GET /v1/WsConsumer?Token={token}&ProjectName={ProjectName}&LogPoolName={LogPoolName}&Keyword={MatchKeyword} HTTP/1.1
Host:klog.console.ksyun.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: x3JJHMbDL1EzLkh9GBhXDw==
Sec-WebSocket-Protocol: chat, superchat
Sec-WebSocket-Version: 13
http://klog.console.ksyun.com
参数详情具体如下表。
参数名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
Token | String | 是 | Token的获取方式见内嵌Token |
ProjectName | String | 是 | 工程名称 |
LogPoolName | String | 是 | 日志池名称 |
Keyword | String | 否 | 匹配字符串 |
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: HSmrc0sMlYUkAGmm5OPpG2HaGWk=
Sec-WebSocket-Protocol: chat
GET /v1/WsConsumer?Token=Bearer eyJhbGciOiJIUzI1xxxxnR5cCI6IkpXVCJ9.eybbHAiOjE2NDE5NTkzNDIsInN1YiI6IntcIlVzZXJJZFwiOlwiMjAwMDAwMzQ4NVwifSJ9.Zt3V9pPQB6VOOyBuLtvL8xW9_Jai7eKQfd13GOMgvyE&ProjectName=MyProject&LogPoolName=MylogPool HTTP/1.1
Host:klog.console.ksyun.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: x3JJHMbDL1EzLkh9GBhXDw==
Sec-WebSocket-Protocol: chat, superchat
Sec-WebSocket-Version: 13
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: HSmrc0sMlYUkAGmm5OPpG2HaGWk=
Sec-WebSocket-Protocol: chat
纯净模式