Splunk Search

timechart count by what values are chosen

robertlabrie
Path Finder

If a log is generated every time a user comments on a blog

index=bloglog sourcetype=comments | timechart count by username

You'll get a great timechart with 10 (or whatever your limit is) usernames, and an other. How does Splunk decide what usernames would get shown? Can I assume that if they're visible, they had the most events in the time period?

0 Karma
1 Solution

badrinath_itrs
Communicator

Hi,

It displays the users having top count values as per default limit and the rest all users will be grouped as others . To change the limit you can use limit=0 ( all users) or some other number as per your requirement.

You can also add "useother=0" in your timechart search command to remove the other field.

Hope this helps.

View solution in original post

badrinath_itrs
Communicator

Hi,

It displays the users having top count values as per default limit and the rest all users will be grouped as others . To change the limit you can use limit=0 ( all users) or some other number as per your requirement.

You can also add "useother=0" in your timechart search command to remove the other field.

Hope this helps.

robertlabrie
Path Finder

Thanks for helping. I figured that was the logic, but wanted to confirm.
Thanks

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...