Splunk Search

日本語を含むデータ入力の設定方法を教えて下さい

bananaman
Path Finder

取り込みたいログデータがシフトJISなどの日本語エンコーディングとなっております。
この際、データ入力時にどのような設定をすれば良いですか?

Tags (1)
0 Karma
1 Solution

bananaman
Path Finder

Splunkは基本UTF-8エンコーディングにてデータを収集しますが、ソースがUTF-8以外である場合は
ソースのエンコーディングを明示することにより、収集時にUTF-8へ変換し格納することが出来ます。

http://docs.splunk.com/Documentation/Splunk/5.0/data/Configurecharactersetencoding

UIによる設定方法は、データの追加>データプレビュー時のAdvanced mode (props.conf) に
または、props.conf の該当スタンザへ直接以下のパラメータを追記します。

※シフトJISの場合
[TestData_SJIS]
CHARSET=SHIFT-JIS

※EUC-JPの場合
[TestData_EUC]
CHARSET=EUC-JP

その他のエンコーディングについては上記KBリンクを参照してみてください。

View solution in original post

0 Karma

takashismi
New Member

UTF-8かどうかの判定は、たとえば、頭OO文字で判断、といったルールがあるのでしょうか?

0 Karma

melonman
Motivator

少し情報が古いですが、こちらが参考になるかと思います。

http://splunk-base.splunk.com/answers/6341/international-character-code-recognition

0 Karma

bananaman
Path Finder

Splunkは基本UTF-8エンコーディングにてデータを収集しますが、ソースがUTF-8以外である場合は
ソースのエンコーディングを明示することにより、収集時にUTF-8へ変換し格納することが出来ます。

http://docs.splunk.com/Documentation/Splunk/5.0/data/Configurecharactersetencoding

UIによる設定方法は、データの追加>データプレビュー時のAdvanced mode (props.conf) に
または、props.conf の該当スタンザへ直接以下のパラメータを追記します。

※シフトJISの場合
[TestData_SJIS]
CHARSET=SHIFT-JIS

※EUC-JPの場合
[TestData_EUC]
CHARSET=EUC-JP

その他のエンコーディングについては上記KBリンクを参照してみてください。

0 Karma
Get Updates on the Splunk Community!

CX Day is Coming!

Customer Experience (CX) Day is on October 7th!! We're so excited to bring back another day full of wonderful ...

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...