Splunk Search

作成したフィールドを時刻として取り扱うことは可能でしょうか?

Msugiyama
Path Finder

下記のように、ファイル名から日を取り出し、timechartコマンドなどで集計したいです。

source="C:\\weekly2020-08-*.csv"
| eval week=replace(substr(source,9,10),"-","/")
| table week,_raw

サーチ結果
week,_raw
2020/08/14, xxxxx
2020/08/14, xxxxx
2020/08/21, xxxxx
2020/08/28, xxxxx

 

ソースデータの前処理なしで、サーチで作成したweekを_time代わりにできればと思うのですが・・・

Labels (1)
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 ...