日本語の半角の文字列を全角にするコマンド han2zen コマンドと全角の文字列を半角にする zen2han コマンドを提供します。
Python ライブラリmojimoji(https://github.com/studio-ousia/mojimoji) を Splunk から利用できるようにしたものです。
| han2zen input_field outfield="zenkaku_field"
outfield は省略可能で、省略した場合、zen2han では "hankaku" フィールドに、han2zen では "zenkaku" フィールドに出力されます。
カナ、数字、ASCII 文字列のうち特定の文字のみ変換対象から外したい場合、exclude オプションで変換対象から外すことができます。
| zen2han input_field outfield="hankaku_field" exclude="kana"
exclude=[kana|digit|ascii]
9.3 ではエラーで動作しないようでしたので、修正しました。機能に変更はありません。
Fixed a problem reported in 9.3. No functional changes.
Splunk Cloud recertification only
As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 10GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps from Splunk, our partners and our community. Find an app for most any data source and user need, or simply create your own with help from our developer portal.