splunk - 在 splunk 中将国旗表情符号注释到 3166 个国家/地区代码
问题描述
给定一堆countrycode
/percent
结果,用每个国家的国旗装饰一个饼图。
解决方案
splunk 中似乎还没有为此内置任何东西,但这是我构建我的方法,基于已经有大写countrycode
输入,如US
, DE
,AU
等,供我自己将来参考:
… | eval flag = printf("%c%c", 127452 + tonumber(substr(countrycode,1,1), 36),
127452 + tonumber(substr(countrycode,2,1), 36)),
country=countrycode+" ("+percent+"%) "+flag
推荐阅读
- linux - EPOLLONESHOT 是否保证只唤醒一个线程?
- php - 如何使用 PHP 远程访问在 Windows Server 上运行的 localhost 应用程序?
- android - PubNub - 消息以推送和实时方式接收 [Android]
- flutter - 使用下拉菜单时我无法更改文本值 - 颤动
- arduino - 程序中的arduino pro微流浪'`'
- wpf - WPF,改变 ControlTemplate 中元素的样式
- github - lfs gif 文件停止在 GitHub 上显示
- php - 如何获取此代码以更新 zoho 中的记录
- ios - 为什么在 iOS14(或至少 iOS14.4)中,keyboardWillShowNotification 被触发两次,而在 iOS13 中只有一次?
- sql - 选择匹配 C 条件的最后 N 行 (PostgreSQL)