<?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: How can I fix my field extraction? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-fix-my-field-extraction/m-p/492576#M137404</link>
    <description>&lt;P&gt;You are doing it wrong; use &lt;CODE&gt;multikv&lt;/CODE&gt; which uses &lt;CODE&gt;column-alignment&lt;/CODE&gt;:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Multikv"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Multikv&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 18 Mar 2020 15:18:35 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2020-03-18T15:18:35Z</dc:date>
    <item>
      <title>How can I fix my field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-fix-my-field-extraction/m-p/492574#M137402</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I have a structured data source that puts out data in a table with headers and a footer row with a total.&lt;BR /&gt;
I got all the extractions working BUT there is a field called path that may contain spaces:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;directory DEFAULT    /abc/path/fileservers/xxxd19/acb123 Cost Estimate            No    10.00G  -     9.00G   292.14M 
directory DEFAULT    /abc/path/fileservers/xxxd19/A12                                No    120.00G -     113.00G 50.549G 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The second path works great, extracts properly. The first however truncates "Cost Estimate" because of the space then throws off the rest of the fields. &lt;/P&gt;

&lt;P&gt;The props look like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[storage:data]
DATETIME_CONFIG = CURRENT
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK =
SHOULD_LINEMERGE = false
disabled = false
pulldown_type = true
FIELD_DELIMITER = whitespace
HEADER_FIELD_LINE_NUMBER = 1
SEDCMD-removeDash = s/---------------------------------------------------------------------------------------------------------//g
SEDCMD-removeDash2 = s/^\-.*$//g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas on how to make the field include the portion of the path that includes spaces?&lt;BR /&gt;
Thanks in advance for the help!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Mar 2020 14:55:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-fix-my-field-extraction/m-p/492574#M137402</guid>
      <dc:creator>tkw03</dc:creator>
      <dc:date>2020-03-17T14:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fix my field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-fix-my-field-extraction/m-p/492575#M137403</link>
      <description>&lt;P&gt;Obviously, &lt;CODE&gt;FIELD_DELIMITER = whitespace&lt;/CODE&gt; won't work.  Let's try a regex transform.&lt;/P&gt;

&lt;P&gt;Props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[storage:data]
DATETIME_CONFIG = CURRENT
LINE_BREAKER = ([\r\n]+)
NO_BINARY_CHECK =
SHOULD_LINEMERGE = false
disabled = false
pulldown_type = true
HEADER_FIELD_LINE_NUMBER = 1
SEDCMD-removeDash = s/---------------------------------------------------------------------------------------------------------//g
SEDCMD-removeDash2 = s/^\-.*$//g
TRANSFORMS-extract = extracter
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[extracter]
REGEX = (?&amp;lt;field1&amp;gt;\S+)\s+(?&amp;lt;field2&amp;gt;\S+)\s+(?&amp;lt;path&amp;gt;.+?)\s{2,}(?&amp;lt;field4&amp;gt;\S+)\s+(?&amp;lt;field5&amp;gt;\S+)\s+(?&amp;lt;field6&amp;gt;\S+)\s+(?&amp;lt;field7&amp;gt;\S+)\s+(?&amp;lt;field8&amp;gt;\S+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Mar 2020 18:30:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-fix-my-field-extraction/m-p/492575#M137403</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-17T18:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fix my field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-fix-my-field-extraction/m-p/492576#M137404</link>
      <description>&lt;P&gt;You are doing it wrong; use &lt;CODE&gt;multikv&lt;/CODE&gt; which uses &lt;CODE&gt;column-alignment&lt;/CODE&gt;:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Multikv"&gt;https://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Multikv&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2020 15:18:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-fix-my-field-extraction/m-p/492576#M137404</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-18T15:18:35Z</dc:date>
    </item>
  </channel>
</rss>

