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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...