Getting Data In

日本語を含むタイムスタンプの設定方法

msgtrk
Path Finder

以下のような日本語を含むタイムスタンプをSplunkに認識させるにはどのような設定が必要ですか?


金 3月 22 11:24:40 2013: Total time in the report period (60.000671s): 0.048412s
金 3月 22 11:25:40 2013: Total time in the report period (59.999630s): 0.000000s
金 3月 22 11:26:40 2013: Total time in the report period (59.999813s): 0.000000s

Tags (2)
0 Karma
1 Solution

melonman
Motivator

データプレビューのページで、
・タイムスタンプの直前パターン
・タイムスタンプのフォーマット
を指定することで認識させることができます。

TIME_FORMAT = %m月 %d %H:%M:%S
TIME_PREFIX = ^\W\s

alt text

実際のサーチもCLIからですが、以下のように認識されます。

alt text

別の方法ですが、datetime.xmlを用いて日付を認識させることが可能となります。
手順としては、
1.$SPLUNK_HOME/etcのdatetime.xmlをカスタマイズもしくは別の定義ファイルを作成
2.別の定義ファイルを作成した場合には、データ入力の設定時にDATETIME_CONFIGパラメータで指定。
となります。

ご参考
http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition

View solution in original post

msgtrk
Path Finder

回答ありがとうございます。
無事、認識させることができました!

0 Karma

melonman
Motivator

データプレビューのページで、
・タイムスタンプの直前パターン
・タイムスタンプのフォーマット
を指定することで認識させることができます。

TIME_FORMAT = %m月 %d %H:%M:%S
TIME_PREFIX = ^\W\s

alt text

実際のサーチもCLIからですが、以下のように認識されます。

alt text

別の方法ですが、datetime.xmlを用いて日付を認識させることが可能となります。
手順としては、
1.$SPLUNK_HOME/etcのdatetime.xmlをカスタマイズもしくは別の定義ファイルを作成
2.別の定義ファイルを作成した場合には、データ入力の設定時にDATETIME_CONFIGパラメータで指定。
となります。

ご参考
http://docs.splunk.com/Documentation/Splunk/latest/Data/Configuretimestamprecognition

melonman
Motivator

サーチはCLIではなくて、GUIからでした…失礼しました

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...