Splunk Search

timechart where field name and value are both in event data

kmaron
Motivator

I have a database query that runs every 5 minutes. It brings back queue names and the counts of those queues. I would like to make a timechart that would show all of the queues and their counts over time.

My data comes out like this:

2017-02-09 10:51:30 QUEUE="LIFE_UpdatePolicySecurity", LIFE_QUEUE_COUNT="5"
2017-02-09 10:51:30 QUEUE="LIFE_UpdateAnnuitySecurity", LIFE_QUEUE_COUNT="38"
2017-02-09 10:51:30 QUEUE="Policy File Document", LIFE_QUEUE_COUNT="3"
2017-02-09 10:51:30 QUEUE="Annuity File Document", LIFE_QUEUE_COUNT="25"

I would like to eventually end up with a line graph that would have a line or each queue name and show the count for each over time but I'm struggling to get the stats to line up to get it there.

0 Karma
1 Solution

richgalloway
SplunkTrust
SplunkTrust

Have you tried ... | timechart max(LIFE_QUEUE_COUNT) by QUEUE ?

---
If this reply helps you, Karma would be appreciated.

View solution in original post

richgalloway
SplunkTrust
SplunkTrust

Have you tried ... | timechart max(LIFE_QUEUE_COUNT) by QUEUE ?

---
If this reply helps you, Karma would be appreciated.

kmaron
Motivator

See I knew it was going to be something simple. I just had to flip my thinking. Thank you so much that's exactly what I wanted!!

0 Karma

somesoni2
SplunkTrust
SplunkTrust

If you've 10 or more distinct QUEUEs, then add limit=0 ( or any feasible number) so that there is a line for every queue.

0 Karma
Get Updates on the Splunk Community!

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

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...