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!

Splunk Cloud | Empowering Splunk Administrators with Admin Config Service (ACS)

Greetings, Splunk Cloud Admins and Splunk enthusiasts! The Admin Configuration Service (ACS) team is excited ...

Tech Talk | One Log to Rule Them All

One log to rule them all: how you can centralize your troubleshooting with Splunk logs We know how important ...

Splunk Security Content for Threat Detection & Response, Q1 Roundup

Join Principal Threat Researcher, Michael Haag, as he walks through: An introduction to the Splunk Threat ...