Splunk Search

Convert point in time events to timeseries with Data points

SplunkNs231
Engager

I have the following data. That I am trying to convert to a time series by Type with the last Status brought forward.

Raw data:

TimestampStatusType
10/28/2021 12:00downB
10/28/2021 12:10upA
10/28/2021 12:30upB
10/28/2021 13:10downB
10/28/2021 13:30upB

 

After transformation I need a data point every 10 minutes for each Type with the pervious Status brought forward. Note I could have 40-50 different types.

Example Transformation:

TimestampStatusType
10/28/2021 12:00downB
10/28/2021 12:10downB
10/28/2021 12:20downB
10/28/2021 12:30upB
10/28/2021 12:40upB
10/28/2021 12:50upB
10/28/2021 13:00upB
10/28/2021 13:10downB
10/28/2021 13:20downB
10/28/2021 13:30upB
10/28/2021 13:40upB

 

Any Ideas?

Labels (1)
Tags (1)
0 Karma
1 Solution

PickleRick
SplunkTrust
SplunkTrust
<your search>
| timechart span=10m last(status) by Type 
| filldown
| untable _time Type Status

Mind you that you might not get values at the beginning since you don't have any initial value.

Of course you might want to | sort at the end to your liking.

View solution in original post

0 Karma

PickleRick
SplunkTrust
SplunkTrust
<your search>
| timechart span=10m last(status) by Type 
| filldown
| untable _time Type Status

Mind you that you might not get values at the beginning since you don't have any initial value.

Of course you might want to | sort at the end to your liking.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...