Splunk Search

Pulling data from table

AlexMcDuffMille
Communicator

hello,

I'm looking to make a panel that has 9 timechart lines on it.

I would like to graph the depth vs. time for each queue. Each log will create 1 data point for each queue. I'm thinking I need to use xmlkv or multikv or something similar to that, but can't seem to figure it out. Any ideas?

An example of the log is shown below:

> [2013.11.05-08:43:24.787]Output Response:
>     Queue:1 Depth=0; Oldest=0
>     Queue:2 Depth=0; Oldest=0
>     Queue:3 Depth=0; Oldest=0
>     Queue:4 Depth=0; Oldest=0
>     Queue:5 Depth=0; Oldest=0
>     Queue:6 Depth=0; Oldest=0
>     Queue:7 Depth=0; Oldest=0
>     Queue:8 Depth=0; Oldest=0
>     Queue:9 Depth=1; Oldest=1
Tags (2)
0 Karma
1 Solution

AlexMcDuffMille
Communicator

It doesn't appear to be in the same extracted field like that. I was able to get Splunk to just break up each line as a separate event and use the timestamp of the first line. That seems to work even though Splunk complains that each line doesn't have its own time stamp.

View solution in original post

0 Karma

AlexMcDuffMille
Communicator

It doesn't appear to be in the same extracted field like that. I was able to get Splunk to just break up each line as a separate event and use the timestamp of the first line. That seems to work even though Splunk complains that each line doesn't have its own time stamp.

0 Karma

ShaneNewman
Motivator

If all of the Queue data is in the same extracted field, i.e. Output_Response, then you will need to preform an mvexpand on that field to make it appear as though each queue is a different event. At that point, you can extract the queue number via the rex command

| rex field=Output_Response "Queue\:(?<queue>\d+)" | timechart sum(Depth) as Depth by queue

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