<?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: Fix-width field extraction with multiple line value in one column in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fix-width-field-extraction-with-multiple-line-value-in-one/m-p/84215#M21486</link>
    <description>&lt;P&gt;Thanks for your answer. The event contains two lines and the field "ABCDEFGHIJKLM-" and "NOPQ" are located at separated two lines.&lt;/P&gt;

&lt;P&gt;So there are two questions in this case exactly. First, how to extract column field from multiple lines? Second, how to tell between hyphen and dash?&lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2012 11:43:15 GMT</pubDate>
    <dc:creator>Takol1</dc:creator>
    <dc:date>2012-10-09T11:43:15Z</dc:date>
    <item>
      <title>Fix-width field extraction with multiple line value in one column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fix-width-field-extraction-with-multiple-line-value-in-one/m-p/84213#M21484</link>
      <description>&lt;P&gt;Our customer has a log file with fix-width layout as below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10/4/12  18:00:00  10/4/12  18:00:31  ABCDEFGHIJKLM-   Completed
                                      NOPQ
10/4/12  18:00:01  10/4/12  18:00:22  1234567890123-   Completed
                                      456
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It expect a field, let's say "name", be extracted with value "&lt;EM&gt;ABCDEFGHIJKLNOPQ&lt;/EM&gt;" and "&lt;EM&gt;1234567890123456&lt;/EM&gt;". How do we use transform or anything else to parse it?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 08:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fix-width-field-extraction-with-multiple-line-value-in-one/m-p/84213#M21484</guid>
      <dc:creator>Takol1</dc:creator>
      <dc:date>2012-10-09T08:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Fix-width field extraction with multiple line value in one column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fix-width-field-extraction-with-multiple-line-value-in-one/m-p/84214#M21485</link>
      <description>&lt;P&gt;Are they two different events?&lt;/P&gt;

&lt;P&gt;You should be able to use something like the following to test the extraction on your data: (example using rex from search commands and piping to stats for demo)&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;* | rex field=_raw "\d+\:\d+\:\d+\s+(?P&amp;lt;name&amp;gt;\w+)\-\s+" | stats count by name&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;The easiest way for you to set up the extraction is using the IFX (Interactive Field eXtractor), please see follow:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/ExtractfieldsinteractivelywithIFX&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Or you can create field extractions in conf files, please see following:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Knowledge/Createandmaintainsearch-timefieldextractionsthroughconfigurationfiles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 09:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fix-width-field-extraction-with-multiple-line-value-in-one/m-p/84214#M21485</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-10-09T09:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fix-width field extraction with multiple line value in one column</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fix-width-field-extraction-with-multiple-line-value-in-one/m-p/84215#M21486</link>
      <description>&lt;P&gt;Thanks for your answer. The event contains two lines and the field "ABCDEFGHIJKLM-" and "NOPQ" are located at separated two lines.&lt;/P&gt;

&lt;P&gt;So there are two questions in this case exactly. First, how to extract column field from multiple lines? Second, how to tell between hyphen and dash?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 11:43:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fix-width-field-extraction-with-multiple-line-value-in-one/m-p/84215#M21486</guid>
      <dc:creator>Takol1</dc:creator>
      <dc:date>2012-10-09T11:43:15Z</dc:date>
    </item>
  </channel>
</rss>

