Splunk Search

how to move a value into adjacent row

crmarley20
Explorer

Hello,

I have a condition when the variable new_tag of the previous row is equal to 1 and the variable test_tag of the current row is equal to 1 I must subtract the start value of the previous row with the start value of the current row.

I want the result of the subtraction to be written in the previous row in the result column.

Unfortunately I could only get this subtraction to be written to the current row in the result column.

Please could someone help me, thank you very much.

crmarley20_0-1643716867622.png

 

Labels (7)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| reverse
| streamstats window=2 first(result) as result
| reverse

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| reverse
| streamstats window=2 first(result) as result
| reverse
0 Karma

crmarley20
Explorer

Thank you very much!

0 Karma
Get Updates on the Splunk Community!

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...