I am trying to do something like this:
| stats limit=10 min(Speed) by customer
or
| sort customer, speed
| head(10) by customer
to4kawa, your solution seems to only one speed per customer, but what I want is the 10 lowest speed per customer. I have found that this solution si working well even if it is not beautiful :
| sort customer, Speed
| streamstats count as row by customer
| search row <= 5
| fields customer, Speed
to4kawa, your solution seems to only one speed per customer, but what I want is the 10 lowest speed per customer. I have found that this solution si working well even if it is not beautiful :
| sort customer, Speed
| streamstats count as row by customer
| search row <= 5
| fields customer, Speed
Hi @alexandrerichard,
Thanks for asking a question! If you were able to resolve this issue, please click “Accept” directly below the answer to resolve the post.
stats
does not have limit
and head
does not have by
.
see reference.
Rather than describe the problem in terms of SPL (which may not describe the problem at all), can you describe it in natural language?
What do you want the results to look like?