Splunk Search

Shorter maxspan delivers more results

cmeerbeek
Path Finder

We have build a query spanning multiple source types. We try to create a simple transaction with one field.
The results are strange. When we set the maxspan to 6h we get 48 results but when we set it to 1m we get 5k results.
How is this possible? Can someone clarify this?

Tags (2)
0 Karma

somesoni2
SplunkTrust
SplunkTrust

Maxspan properties set a constraint on the maximum duration a transaction can expand. So For example data:

3/14/2013 10:00 ID=1    Status=Success
3/14/2013 10:01 ID=1    Status=Fail
3/14/2013 12:00 ID=1    Status=Success
3/14/2013 12:01 ID=1    Status=Fail
3/14/2013 15:59 ID=1    Status=Success
3/14/2013 16:00 ID=1    Status=Fail

"...| transaction ID maxspan=1m" will return 3 rows as transaction( matching filter criteria) will be considered complete after 1 min duration.
"...| transaction ID maxspan=6h" will return just 1.

0 Karma

cmeerbeek
Path Finder

Thanks for the quick reply.

The strange thing is that if the ID is 1 for the first two records and 2 for the second and third record and 3 for the fourth and fifth record I would alway expect 3 as a result right?

That is not happening here. The field used with transaction is alway unique still I get different results if the maxspan is shorter.

Any idea?

0 Karma
Get Updates on the Splunk Community!

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 ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...