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!

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