Splunk Search

How to plot count of distinct values over time?

monojetski
New Member

How do I count the occurrences of each distinct requestId and plot it over time? First time the requestId was found will be fine for a datetime.

With this search, I can plot count of each distinct requestId vs requestId, but I need it over time, not requestId.

| stats count by requestId

e.g. search result event

2016-02-19 16:49:14,335 INFO  [requestId=c4c6f44b-d28f-4cae-b679-2b1589584a06] [pool-48946-thread-1] 
0 Karma
1 Solution

javiergn
SplunkTrust
SplunkTrust

Use chart (or timechart) instead:

| timechart span=1d count by requestId

View solution in original post

0 Karma

javiergn
SplunkTrust
SplunkTrust

Use chart (or timechart) instead:

| timechart span=1d count by requestId
0 Karma

monojetski
New Member

Thanks, that was it, then I added | sort - Time .. To sort it by time otherwise it was sorted by the requestId.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...