Splunk Search

フィールド抽出の正規表現の使用について

cwl
Contributor

正規表現を使って、サーチ時にフィールドを抽出していますが、この正規表現では日本語を使用できますか?

1 Solution

cwl
Contributor

サーチ時フィールド抽出の正規表現では日本語を使っても問題ありませんが、以下の注意事項があります。
サーチ時フィールド抽出を定義した props.conf ファイルは、UTF-8 で保存する必要があります。
また、props.conf.spec のコメントにも記載されていますが、regex 部分は日本語を使っても良いが、
src_field 部分は英数文字(a-z, A-Z, and 0-9)しか使えません。


http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf

EXTRACT-<name> = [<regex>|<regex> in <src_field>]
...
* NOTE: <src_field> can only contain alphanumeric characters (a-z, A-Z, and 0-9).
...

View solution in original post

cwl
Contributor

サーチ時フィールド抽出の正規表現では日本語を使っても問題ありませんが、以下の注意事項があります。
サーチ時フィールド抽出を定義した props.conf ファイルは、UTF-8 で保存する必要があります。
また、props.conf.spec のコメントにも記載されていますが、regex 部分は日本語を使っても良いが、
src_field 部分は英数文字(a-z, A-Z, and 0-9)しか使えません。


http://docs.splunk.com/Documentation/Splunk/latest/Admin/Propsconf

EXTRACT-<name> = [<regex>|<regex> in <src_field>]
...
* NOTE: <src_field> can only contain alphanumeric characters (a-z, A-Z, and 0-9).
...

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...