<?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 to change DELIMS in transforms.conf to use multiple white space? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-DELIMS-in-transforms-conf-to-use-multiple-white/m-p/212367#M41768</link>
    <description>&lt;P&gt;Hi DeronJensen,&lt;/P&gt;

&lt;P&gt;I tested DELIMS with &lt;CODE&gt;\s+&lt;/CODE&gt; and confirmed it will not work. You'd need to use REGEX instead to use &lt;CODE&gt;\s+&lt;/CODE&gt; notation but then FIELDS will not work.  A simpler way would be to normalise the incoming data so that multi-whitespaces become one.  You can easily do this using the SEDCMD in props.conf.  In this case the following should work,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourectype]
...
SEDCMD-single-whitepace = s/\s\s*/ /g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will only work on new data.  Hope this helps.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2015 03:30:47 GMT</pubDate>
    <dc:creator>gcato</dc:creator>
    <dc:date>2015-11-04T03:30:47Z</dc:date>
    <item>
      <title>How to change DELIMS in transforms.conf to use multiple white space?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-DELIMS-in-transforms-conf-to-use-multiple-white/m-p/212366#M41767</link>
      <description>&lt;P&gt;We have a system that sends logs with extra white space, causing everything to be off by 1.    When the day of month changes from 1 digit to 2 digits, the proxy device sends the log with:&lt;/P&gt;

&lt;P&gt;The first example has 2 spaces: &lt;CODE&gt;Nov  3&lt;/CODE&gt; and the second has 1 space: &lt;CODE&gt;Oct 31&lt;/CODE&gt;.   When there are 2 spaces between the month and day, all of the fields are off by one.   &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Nov  3 16:27:47 10.1.126.214.100 2015-11-03 16:27:47 15 10.2.172.212 404 ...
Oct 31 23:59:59 10.1.126.99.100 2015-10-31 23:59:59 227 10.2.189.178 407 ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My transforms.conf is as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;DELIMS = " "
FIELDS = month,date,time,dvc,date1,time-taken,duration,src,status,...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was thinking about changing to a REGEX, but this seems to be a little more trouble.  Is there an easy way to do this?  I would like to do:  &lt;CODE&gt;DELIMS = "\s+"&lt;/CODE&gt; or possibly do something to say "skip empty values". I do not know if this is possible, or is there a simple REGEX that will work?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Nov 2015 16:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-DELIMS-in-transforms-conf-to-use-multiple-white/m-p/212366#M41767</guid>
      <dc:creator>DeronJensen</dc:creator>
      <dc:date>2015-11-03T16:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to change DELIMS in transforms.conf to use multiple white space?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-change-DELIMS-in-transforms-conf-to-use-multiple-white/m-p/212367#M41768</link>
      <description>&lt;P&gt;Hi DeronJensen,&lt;/P&gt;

&lt;P&gt;I tested DELIMS with &lt;CODE&gt;\s+&lt;/CODE&gt; and confirmed it will not work. You'd need to use REGEX instead to use &lt;CODE&gt;\s+&lt;/CODE&gt; notation but then FIELDS will not work.  A simpler way would be to normalise the incoming data so that multi-whitespaces become one.  You can easily do this using the SEDCMD in props.conf.  In this case the following should work,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourectype]
...
SEDCMD-single-whitepace = s/\s\s*/ /g
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will only work on new data.  Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2015 03:30:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-change-DELIMS-in-transforms-conf-to-use-multiple-white/m-p/212367#M41768</guid>
      <dc:creator>gcato</dc:creator>
      <dc:date>2015-11-04T03:30:47Z</dc:date>
    </item>
  </channel>
</rss>

