阿里云日志服务常用图标绘制SQL语句:
* | SELECT Request_method, COUNT(*) as number GROUP BY Request_method LIMIT 10 (表格)
* | select time_series(__time__, '1m', '%H:%i:%s' ,'0') as Time, count(1) as PV, approx_distinct(IP) as UV group by Time order by Time limit 100 (线图)
* | SELECT Request_method, COUNT(*) as number GROUP BY Request_method LIMIT 10 (柱状图)
* | SELECT Request_method, COUNT(*) as number GROUP BY Request_method LIMIT 10 (条形图)
* | SELECT Request_method, COUNT(*) as number GROUP BY Request_method LIMIT 10 (饼图)
* | select time_series(__time__, '1m', '%H:%i:%s' ,'0') as Time, count(1) as PV, approx_distinct(IP) as UV group by time order by time limit 100 (面积图)
* | SELECT COUNT(*) as PV (单值图)
* | SELECT COUNT(*) as PV (进度条)
* | select time_series(__time__, '15m', '%H:%i', '0') as T, count(1) as PV group by T order by T (时间轴)
* | SELECT ip_to_province(IP) AS Province, COUNT(*) as Count GROUP BY Province ORDER BY Count DESC LIMIT 10 (中国地图)
* | SELECT ip_to_country(IP) AS Country, COUNT(*) as Count GROUP BY Country ORDER BY Count DESC LIMIT 2 (世界地图)
* | SELECT ip_to_geo(IP) AS Geo, COUNT(*) as Count GROUP BY Geo ORDER BY Count DESC LIMIT 5 (高德地图)
* | SELECT ip_to_geo(IP) AS Geo, COUNT(*) as Count GROUP BY Geo ORDER BY Count DESC LIMIT 5 (热力图)
* | SELECT time_series(__time__, '1m', '%H:%i' ,'0') AS Time, count(1) AS count , Request_method GROUP BY Time, Request_method ORDER BY Time LIMIT 1000 (流图)
* | select SourceValue, TargetValue, round(sum(StreamValue)) as StreamValue from (select SourceValue, TargetValue, StreamValue, __time__ from log group by SourceValue, TargetValue, StreamValue, __time__ order by __time__ desc) group by SourceValue, TargetValue (桑基图)
* | SELECT ip_to_province(IP) AS Province, COUNT(*) AS Count GROUP BY Province ORDER BY Count DESC LIMIT 10 (词云)
* | SELECT ip_to_province(IP) AS Province, COUNT(*) AS Count GROUP BY Province ORDER BY Count DESC LIMIT 10 (矩形树图)
* | SELECT "event.target" AS Target, count(1) AS Click_count GROUP BY Target ORDERY BY Click_count DESC (漏斗图)
* | select time_series(__time__, '1m', '%H:%i:%s' ,'0') as time, count(1) as PV, approx_distinct(IP) as UV group by time order by time limit 100 (色块图)
CacheResponseStatus=200|SELECT ClientRequestHost,COUNT(*) AS HOSTS GROUP BY ClientRequestHost
*|SELECT ClientRequestHost,COUNT(*) AS HOSTS GROUP BY ClientRequestHost
*|SELECT ClientCountry,COUNT(*) AS Country GROUP BY ClientCountry ORDER BY 2 DESC limit 10