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
Revered Legend

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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...