<?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: Field in Space Delimited Logging Source Offsetting Field Extractions in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Field-in-Space-Delimited-Logging-Source-Offsetting-Field/m-p/57039#M11136</link>
    <description>&lt;P&gt;Update -- I'm not convinced the reason for this is behavior is due to a white space in the 2nd field rather it is getting skipped altogether and being picked up by the 3rd field.  So for the following, Month = Sep and Systime =  6 (space then 6) and so on.&lt;/P&gt;

&lt;P&gt;Sep 6 12:26:39 192.168.1.68 Sep 06 12:26:39 AN_SQUID_VIP_HOST_LOG 1378484799.674 339 172.16.40.40 &lt;A href="http://www.testdomain.com" target="_blank"&gt;www.testdomain.com&lt;/A&gt; 90.90.90.90 TCP_MISS/200 45667 GET /jobs/saved?cmd=save&amp;amp;save_job=4431425 - DIRECT/172.16.40.43 -&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:43:41 GMT</pubDate>
    <dc:creator>wbordeau</dc:creator>
    <dc:date>2020-09-28T14:43:41Z</dc:date>
    <item>
      <title>Field in Space Delimited Logging Source Offsetting Field Extractions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-in-Space-Delimited-Logging-Source-Offsetting-Field/m-p/57038#M11135</link>
      <description>&lt;P&gt;Hello, I have an issue in which my searches are suddenly offset by one field.  In other words, the Action field now contains clientip and so forth.  I do not use IFE (Interactive Field Extractions) because on occasion the regex would be thrown off for a similar reason so I decided to simply handle field extractions using a static, field by field method in the transforms.conf file.  This has always worked but today I noticed the offset due to the single digit in the first month field.&lt;/P&gt;

&lt;P&gt;The SQUID syslog format on my appliance sends out data in the following manner.  The first set of date fields use MMM D HH:MM:SS and the second set of date fields use MMM DD HH:MM:SS.  For this reason, I believe the white space in the first Day field is being ignored thus offsetting the rest of the field extractions.&lt;/P&gt;

&lt;P&gt;month,day,systime,host,month,day,systime,format,time,duration,server_ip,uri_host,clientip,action,bytes,method,uri_path,username,hierarchy,content_type&lt;/P&gt;

&lt;P&gt;Here is a Sample Squid Syslog Entry (using fake/sanitized data)&lt;BR /&gt;
Sep  6 12:26:39 192.168.1.68 Sep 06 12:26:39 AN_SQUID_VIP_HOST_LOG 1378484799.674 339 172.16.40.40 &lt;A href="http://www.testdomain.com" target="_blank"&gt;www.testdomain.com&lt;/A&gt; 90.90.90.90 TCP_MISS/200 45667 GET /jobs/saved?cmd=save&amp;amp;save_job=4431425 - DIRECT/172.16.40.43 -&lt;/P&gt;

&lt;P&gt;My transforms/props on the Search Head.  I capitalized the first group to distinguish the first date fields from the second set.  Only the lower case fields get used by my Splunk for Squid app.  I have heard of using delims="/s" or delims="/t" as a way to handle white space in fields but that isn't working.  Please advise.  Thanks in advance!&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[squid]&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
REPORT-squidfields = squid_custom_fields&lt;BR /&gt;
TIME_FORMAT = %b %e %H:%M:%S&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=19&lt;BR /&gt;
KV_MODE = none&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
[squid_custom_fields]&lt;BR /&gt;
DELIMS = " "&lt;BR /&gt;
FIELDS = Month,Day,Systime,host,month,day,systime,format,time,duration,server_ip,uri_host,clientip,action,bytes,method,uri_path,username,hierarchy,content_type&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:43:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-in-Space-Delimited-Logging-Source-Offsetting-Field/m-p/57038#M11135</guid>
      <dc:creator>wbordeau</dc:creator>
      <dc:date>2020-09-28T14:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Field in Space Delimited Logging Source Offsetting Field Extractions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-in-Space-Delimited-Logging-Source-Offsetting-Field/m-p/57039#M11136</link>
      <description>&lt;P&gt;Update -- I'm not convinced the reason for this is behavior is due to a white space in the 2nd field rather it is getting skipped altogether and being picked up by the 3rd field.  So for the following, Month = Sep and Systime =  6 (space then 6) and so on.&lt;/P&gt;

&lt;P&gt;Sep 6 12:26:39 192.168.1.68 Sep 06 12:26:39 AN_SQUID_VIP_HOST_LOG 1378484799.674 339 172.16.40.40 &lt;A href="http://www.testdomain.com" target="_blank"&gt;www.testdomain.com&lt;/A&gt; 90.90.90.90 TCP_MISS/200 45667 GET /jobs/saved?cmd=save&amp;amp;save_job=4431425 - DIRECT/172.16.40.43 -&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:43:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-in-Space-Delimited-Logging-Source-Offsetting-Field/m-p/57039#M11136</guid>
      <dc:creator>wbordeau</dc:creator>
      <dc:date>2020-09-28T14:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field in Space Delimited Logging Source Offsetting Field Extractions</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Field-in-Space-Delimited-Logging-Source-Offsetting-Field/m-p/57040#M11137</link>
      <description>&lt;P&gt;I don't know why and if this will permanently resolve my issue but I fixed it by changing the transforms.conf file as follows.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Before&lt;/STRONG&gt;&lt;BR /&gt;
FIELDS = month,day,systime,host,month,day,systime,format,time,duration,server_ip,uri_host,clientip,action,bytes,method,uri_path,username,hierarchy,content_type&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;After&lt;/STRONG&gt;&lt;BR /&gt;
FIELDS = Month,Day,Day,Systime,host,month,day,systime,format,time,duration,server_ip,uri_host,clientip,action,bytes,method,uri_path,username,hierarchy,content_type&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Field-in-Space-Delimited-Logging-Source-Offsetting-Field/m-p/57040#M11137</guid>
      <dc:creator>wbordeau</dc:creator>
      <dc:date>2020-09-28T14:43:44Z</dc:date>
    </item>
  </channel>
</rss>

