适配日志:
ssh 192.168.2.38
cd /data/logs/120.1/aspire-mcloud/aspire/mcloud
cd /data/logs/120.2/aspire-mcloud/aspire/mcloud
zcat *2018-10-22-16* | grep ‘contact\\/count‘ | grep --color -E ‘16:16:|16:17:‘ | grep --color ‘\-32034‘
zcat *2018-10-22-16* | grep ‘contact\\/count‘ | grep --color ‘16:16:\|16:17:‘ | grep --color ‘\-32034‘
2018-10-22 16:16:27 117.136.104.119 {"id":"748666946-1850583504","jsonrpc":"2.0","params":{"session":"","from":"mcontact_sdk_huawei","version":"3.1.6"},"method":"contact\/count"} {"id":"748666946-1850583504","jsonrpc":"2.0","error":{"code":"-32034","message":"\u8eab\u4efd\u9a8c\u8bc1\u5931\u8d25,\u8bf7\u6ce8\u9500\u5e10\u53f7\u540e\u91cd\u65b0\u767b\u5f55"}} Dalvik/2.1.0 (Linux; U; Android 5.0; SM-N9008V Build/LRX21V)
auth日志;
ssh 192.168.2.38
cd /data1/logs/12.55
cd /data1/logs/12.56
zcat mcloud_cas_access.20181022.log.gz |grep --color ‘16:16:‘|grep --color ‘\"error_code\":\"1005\"‘|grep --color ‘\"st\":\"null\"‘
正常情况下,st有传且有效的情况下,下面命令在auth可以查到日志记录,st没传或无效的情况下,就不能根据手机号码查询到数据了
zcat mcloud_cas_access.20181022.log.gz |grep --color ‘16:16:‘|grep --color ‘\"error_code\":\"0\"‘|grep -v --color ‘\"st\":\"null\"‘|grep --color ‘18803959896‘