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!

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