Deployment Architecture

How do I bucket/cluster my results into a specific (say 4) buckets displayed as columns?

underground8
Engager

I have search results with a value "creation_time" -- format: 2012-08-22T20:59:51Z

In my search I added:

| eval age = today() - creation_time 

I thought maybe clustering with 'kmeans' would do it, so I tried the following:

| kmeans k=4 age |

But this doesn't yield any results.

Suggestions? My output should be column graph with four of them, with the bucket clustering the different ages across the creation_times.

Tags (1)
0 Karma

melonman
Motivator

Is this someting similar to what you wanted?

SOMESEARCH | eval age = now() - _time  | bucket age bins=4 | chart count by age

I think "bucket" command will do the job.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...