Getting Data In

timestampに日本語を含む日時を指定する方法

haruka_saito
Explorer

timestamp下記のような日付を指定したいのですが、Splunkでうまく取り込めません。
タイムスタンプ形式で指定すればよいのだと思うのですが、日本語の曜日を含んでいるため指定方法がわかりません。
どのように指定すればよいのでしょうか?


送信日時:2016年6月21日火曜日 23:29

Tags (3)

Suda
Communicator

私自身は試していませんが、datetime.xmlをカスタマイズする事で対応できそうです。
具体的な設定方法は、こちらのAnswer「日時情報の抽出方法について」をご参照ください。
日本語の曜日に相当部分周辺は、「(?:.曜日)」のように設定します。
「?:」を使って正規表現のインデックスから除外することで、strftimeフォーマットで対応が難しい形式に対応できるようになると思います。
お試しください。

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