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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...