<?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: extract multi lines fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175359#M50331</link>
    <description>&lt;P&gt;Any problems with breaking the log into indvidual events? Or is it only regarding the field extraction?&lt;/P&gt;</description>
    <pubDate>Wed, 11 Dec 2013 17:59:46 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-12-11T17:59:46Z</dc:date>
    <item>
      <title>extract multi lines fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175358#M50330</link>
      <description>&lt;P&gt;We are logging the following application network statistics. I want to be able to index the data into splunk so we can generate reports on it.&lt;/P&gt;

&lt;P&gt;The First line consists of the following fields:&lt;BR /&gt;
    timestamp, site name, remote server name , local server name&lt;/P&gt;

&lt;P&gt;Other lines of the same record consists of the following fields:&lt;BR /&gt;
    statistic name : message type : origin Node : statistic Value&lt;/P&gt;

&lt;P&gt;This is the actual log:&lt;/P&gt;

&lt;P&gt;1386704158913 SITE-A,remoteServer1,localhost&lt;BR /&gt;
    receivedMessages:AAA:NODE1:10&lt;BR /&gt;
    receivedMessages:BBB:NODE1:10&lt;BR /&gt;
    sentMessages:CCC:NODE2:10&lt;BR /&gt;
    discMessages:AAA:NODE1:1&lt;BR /&gt;
    discMessages:BBB:NODE2:1&lt;/P&gt;

&lt;P&gt;1386704158913 SITE-A,remoteServer2,localhost2&lt;BR /&gt;
    receivedMessages:FFF:NODE1:10&lt;BR /&gt;
    receivedMessages:GGG:NODE1:10&lt;BR /&gt;
    sentMessages:HHH:NODE2:10&lt;BR /&gt;
    discMessages:FFF:NODE1:1&lt;BR /&gt;
    discMessages:III:NODE2:1&lt;/P&gt;

&lt;P&gt;Is there a way to extract all the fields above from that log format?&lt;/P&gt;

&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2013 17:49:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175358#M50330</guid>
      <dc:creator>lgmnemesis</dc:creator>
      <dc:date>2013-12-11T17:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: extract multi lines fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175359#M50331</link>
      <description>&lt;P&gt;Any problems with breaking the log into indvidual events? Or is it only regarding the field extraction?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2013 17:59:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175359#M50331</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-12-11T17:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: extract multi lines fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175360#M50332</link>
      <description>&lt;P&gt;If i break the log/lines into individual events, wont i loos the correlation between the first line (which consists of the event time stamp and other shared fields) and the other sub lines?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2013 18:35:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175360#M50332</guid>
      <dc:creator>lgmnemesis</dc:creator>
      <dc:date>2013-12-11T18:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: extract multi lines fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175361#M50333</link>
      <description>&lt;P&gt;No, you should not break them into single-line events, for the exact reasons that you mention. My question was if you had succeeded in creating the (multi-line) events correctly in splunk.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2013 21:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175361#M50333</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-12-11T21:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: extract multi lines fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175362#M50334</link>
      <description>&lt;P&gt;You can easily do that by adjusting the line breaking in props.conf&lt;/P&gt;

&lt;P&gt;Have a play with regular expressions and the options under "Attributes that are available only when SHOULD_LINEMERGE is set to true" in&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0/Data/Indexmulti-lineevents"&gt;http://docs.splunk.com/Documentation/Splunk/6.0/Data/Indexmulti-lineevents&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 02:14:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175362#M50334</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2013-12-12T02:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: extract multi lines fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175363#M50335</link>
      <description>&lt;P&gt;Use Regext to extract the time, then MVEXPAND then you will be able to have the correlation. Then make the extractions.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2013 06:30:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/extract-multi-lines-fields/m-p/175363#M50335</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-12-12T06:30:43Z</dc:date>
    </item>
  </channel>
</rss>

