Contoh AWS punya banyak region, kita mau buat UX jadi lebih gampang pake variable user pilih negara, contoh Indonesia, Singapore, Hongkong dll ntar otomatis di filter ke negara tersebut

_sourceCategory=*
| if(_sourceCategory matches "tools-id", "Indonesia",
if(_sourceCategory matches "tools", "Hongkong",
if(_sourceCategory matches "Nothing", "nothing", "Others"))) as country_code
| where country_code = "{{negara}}"
| count by _sourceCategory, country_code

count_distinct pada Sumo Logic memiliki keterbatasan, maksimal 100 data agregat yang ditampilkan, yang sering tidak akurat angka yang ditampilkan. Solusi yang lebih tepat untuk ini adalah menggunakan

| count by fieldname
| count by

Leave a comment

Your email address will not be published. Required fields are marked *