Refine your search:

I'd like to get a bunch of data from disk configuration but its all multi-line stuff.

Data Sample below but this really is about 5000 disk. Would like to do searches for 'capacity added up for all unbound' or 'capacity for all Fibre Channel'.

What is a good way to search for this when the data is laid out in sets? I've seen the splunk documentation where is says splunk groups these together automatically but not sure what it means by that & see no evidence that there is any relationship when I do searches.

Bus 0 Enclosure 0 Disk 0

State: Unbound

Drive Type: Fibre Channel

Capacity: 375600

Bus 0 Enclosure 0 Disk 1

State: Enabled

Drive Type: Fibre Channel

Capacity: 375600

Bus 0 Enclosure 0 Disk 2

State: Enabled

Drive Type: SATA Capacity: 20000000

asked 06 Jun '11, 12:23

clintla's gravatar image

accept rate: 20%

edited 06 Jun '11, 12:25

2 Answers:


It is imperative when working with multi-line events that Splunk be given the appropriate line break settings for your data set. Once events are broken up properly you would easily be able to extract k-v pairs and search on the data. Here are some configurations to get you started.

## props.conf
## Line break on "Bus...Enclosure...Disk"
LINE_BREAKER = ([\r\n]+)Bus\s+\d+\s+Enclosure\s+\d+\s+Disk\s+\d+
## I don't see date/time in your events so we set DATETIME_CONFIG = CURRENT
## This will extract k-v pairs
KV_MODE = None
REPORT-auto_kv_for_my_sourcetype = auto_kv_for_my_sourcetype

## transforms.conf
REGEX = ^([^:]+):([^\r\n]+)
FORMAT = $1::$2
MV_ADD = True

answered 06 Jun '11, 12:45

hazekamp's gravatar image

accept rate: 38%

Nice. I'll give it a go.

Your right about the time-there is no time. (just a config file)

But say if we got the logs once a month could we track a disk over time? say if it went from UNBOUND to ENABLED at some point? (a precursor in another search for trending info)


answered 06 Jun '11, 13:31

clintla's gravatar image

accept rate: 20%

If you are batch importing data w/o date/time information it becomes very difficult to track anything over time. I would recommend either collecting this data in nearer real-time or adding date/timestamps to your events.

(06 Jun '11, 14:33) hazekamp
Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions



Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 06 Jun '11, 12:23

Seen: 907 times

Last updated: 06 Jun '11, 14:33

Copyright © 2005-2014 Splunk Inc. All rights reserved.