728x90
| multisearch
[ search index="log_pd_com" uri_path=/pd/install earliest=-22d@d latest=-21d@d
| eval type="install" ]
[ search index="log_pd_com" uri_path=/pd/playing earliest=-21d@d latest=-14d@d
| eval type="section_1" ]
[ search index="log_pd_com" uri_path=/pd/playing earliest=-14d@d latest=-7d@d
| eval type="section_2" ]
[ search index="log_pd_com" uri_path=/pd/playing earliest=-7d@d latest=-0d@d
| eval type="section_3" ]
| chart dc(uuid) by uuid, type
| where install>0
| stats count as total, sum(section_1) as section_1, sum(section_2) as section_2, sum(section_3) as section_3
| eval week_1 = section_1 / total * 100
| eval week_2 = section_2 / total * 100
| eval week_3 = section_3 / total * 100
| table week_1 week_2 week_3
| transpose column_name=weeks
| rename "row 1" as ratio
| 다중 검색 [ 검색 index="log_pd_com" uri_path=/pd/install early=-22d@d 최신=-21d@d | eval type="install" ] [ search index="log_pd_com" uri_path=/pd/playing early=-21d@d 최신=-14d@d | eval type="section_1" ] [ 검색 index="log_pd_com" uri_path=/pd/playing early=-14d@d 최신=-7d@d | eval type="section_2" ] [ 검색 index="log_pd_com" uri_path=/pd/playing early=-7d@d 최신=-0d@d | 평가 유형="섹션_3" ] | uuid별 차트 dc(uuid), 유형 | 설치>0 | 통계는 총계로 계산되고, 합계(섹션_1)는 섹션_1로, 합계(섹션_2)는 섹션_2로, 합계(섹션_3)는 섹션_3으로 계산됩니다. 평가주_1 = 섹션_1 / 전체 * 100 | 평가주_2 = 섹션_2 / 전체 * 100 | 평가주_3 = 섹션_3 / 전체 * 100 | 테이블 week_1 week_2 week_3 | 컬럼 이름=주 전치 | "행 1"의 이름을 비율로 바꿉니다.
728x90
'기타' 카테고리의 다른 글
맥 스케줄링으로 배치 실행 (0) | 2024.03.25 |
---|---|
스플렁크 서브서치 (1) | 2023.12.18 |
keycloak 설치 (1) | 2023.11.24 |
리눅스에서 도커 환경 구축하기 (0) | 2023.08.11 |
[홈어시스턴트] 아이폰 배터리 부족시 구글홈 미니로 알리기 (0) | 2023.01.28 |