Splunk Enterprise

We have a query where we need the EndDate to be the StartDate of the previous entry for all particular values in a row

shivareddysompa
Explorer

We have a query where we need the EndDate to be the StartDate of the previous entry for all particular values in a row

 

shivareddysompa_0-1593774776072.png

 

Labels (1)
Tags (1)
0 Karma

to4kawa
Ultra Champion

| autoregress StartDate as p_StartDate
| eval EndDate=if(EndDate!="",EndDate,p_StartDate)

0 Karma

shivareddysompa
Explorer

i want like End date will be next Start date and also 

 

Startdate               Endate 

10-02-2019         07-07-2020

07-07-2020         "blank "

 

blank indicates it is running

Tags (1)
0 Karma

to4kawa
Ultra Champion

your sample is too little.

please show the table what you want.

0 Karma
Get Updates on the Splunk Community!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...