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).
...

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...