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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...