Last active
April 17, 2025 09:39
-
-
Save georgeOsdDev/b1f4bf640ccd20610b83f6d62929f2b1 to your computer and use it in GitHub Desktop.
My JAKH query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/microsoft/just-another-kusto-hacker/tree/main | |
datatable(codeX:string, codeY:string)[ | |
"1.0.16.0", "41.57.96.0", | |
"5.188.104.0", "41.62.0.0", | |
"2.56.160.0", "2.56.208.0", | |
"1.178.4.0", "2.24.0.0", | |
"1.36.0.0", "5.56.64.0", | |
"2.56.0.0", "2.59.96.0", | |
"1.0.128.0", "202.44.112.0", | |
"41.66.0.0", "24.152.56.0", | |
"23.88.192.0", "45.5.60.0", | |
"14.1.100.0", "2.56.4.0", | |
"102.38.248.0", "102.38.248.0", | |
"103.14.208.0", "103.14.208.0", | |
] | |
| mv-expand kind=array x=geo_info_from_ip_address(format_ipv4(codeX)), y=geo_info_from_ip_address(format_ipv4(codeY)) | |
| summarize x=tostring(make_list(x)[1]), y=tostring(make_list(y)[1]) by codeX, codeY | |
| serialize id=min_of(row_number(), 10)%10 -1 | |
| extend x=substring(tostring(x), id, 1), y=substring(tostring(y), id, 1) | |
| summarize x=make_list(x), y=make_list(y) | |
| project result=strcat(strcat_array(x,""), " ", strcat_array(y,"")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment