<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Multline searches. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multline-searches/m-p/23304#M4140</link>
    <description>&lt;P&gt;Nice. I'll give it a go. &lt;/P&gt;

&lt;P&gt;Your right about the time-there is no time. (just a config file)&lt;/P&gt;

&lt;P&gt;But say if we got the logs once a month could we track a disk over time?&lt;BR /&gt;
say if it went from UNBOUND to ENABLED at some point? (a precursor in another&lt;BR /&gt;
search for trending info)&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2011 20:31:02 GMT</pubDate>
    <dc:creator>clintla</dc:creator>
    <dc:date>2011-06-06T20:31:02Z</dc:date>
    <item>
      <title>Multline searches.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multline-searches/m-p/23302#M4138</link>
      <description>&lt;P&gt;I'd like to get a bunch of data from disk configuration but its all multi-line stuff. &lt;/P&gt;

&lt;P&gt;Data Sample below but this really is about 5000 disk. Would like to do searches for &lt;BR /&gt;
'capacity added up for all unbound' or 'capacity for all Fibre Channel'. &lt;/P&gt;

&lt;P&gt;What is a good way to search for this when the data is laid out in sets? I've seen&lt;BR /&gt;
the splunk documentation where is says splunk groups these together automatically but&lt;BR /&gt;
not sure what it means by that &amp;amp; see no evidence that there is any relationship when&lt;BR /&gt;
I do searches. &lt;/P&gt;

&lt;P&gt;Bus 0 Enclosure 0  Disk 0&lt;/P&gt;

&lt;P&gt;State:                   Unbound&lt;/P&gt;

&lt;P&gt;Drive Type:              Fibre Channel&lt;/P&gt;

&lt;P&gt;Capacity:                375600&lt;/P&gt;

&lt;P&gt;Bus 0 Enclosure 0  Disk 1&lt;/P&gt;

&lt;P&gt;State:                   Enabled&lt;/P&gt;

&lt;P&gt;Drive Type:              Fibre Channel&lt;/P&gt;

&lt;P&gt;Capacity:                375600&lt;/P&gt;

&lt;P&gt;Bus 0 Enclosure 0  Disk 2&lt;/P&gt;

&lt;P&gt;State:                   Enabled&lt;/P&gt;

&lt;P&gt;Drive Type:              SATA&lt;BR /&gt;
Capacity:                20000000&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2011 19:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multline-searches/m-p/23302#M4138</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2011-06-06T19:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multline searches.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multline-searches/m-p/23303#M4139</link>
      <description>&lt;P&gt;clintla,&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;## props.conf
[&amp;lt;spec&amp;gt;]
## Line break on "Bus...Enclosure...Disk"
SHOULD_LINEMERGE = false
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
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
[auto_kv_for_my_sourcetype]
REGEX = ^([^:]+):([^\r\n]+)
FORMAT = $1::$2
MV_ADD = True
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Jun 2011 19:45:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multline-searches/m-p/23303#M4139</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-06-06T19:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multline searches.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multline-searches/m-p/23304#M4140</link>
      <description>&lt;P&gt;Nice. I'll give it a go. &lt;/P&gt;

&lt;P&gt;Your right about the time-there is no time. (just a config file)&lt;/P&gt;

&lt;P&gt;But say if we got the logs once a month could we track a disk over time?&lt;BR /&gt;
say if it went from UNBOUND to ENABLED at some point? (a precursor in another&lt;BR /&gt;
search for trending info)&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2011 20:31:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multline-searches/m-p/23304#M4140</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2011-06-06T20:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Multline searches.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multline-searches/m-p/23305#M4141</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2011 21:33:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multline-searches/m-p/23305#M4141</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-06-06T21:33:59Z</dc:date>
    </item>
  </channel>
</rss>

