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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...