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!

OpenTelemetry for Legacy Apps? Yes, You Can!

This article is a follow-up to my previous article posted on the OpenTelemetry Blog, "Your Critical Legacy App ...

UCC Framework: Discover Developer Toolkit for Building Technology Add-ons

The Next-Gen Toolkit for Splunk Technology Add-on Development The Universal Configuration Console (UCC) ...

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...