<?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 DELIM does not work in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/DELIM-does-not-work/m-p/101298#M26174</link>
    <description>&lt;P&gt;We can not get field extraction to work with IIS log files. Any suggestions? &lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[iisw3cfields]&lt;BR /&gt;
DELIMS = " "&lt;BR /&gt;
FIELDS = date,time,s-computername,s-ip,cs-method,cs-uri-stem,cs-uri-query,s-port,cs-username,c-ip,cs-version,cs(User-Agent),cs(Cookie),cs(Referer),cs-host,sc-status,sc-bytes,cs-bytes,time-taken&lt;/P&gt;

&lt;P&gt;props.conf (relevant part)&lt;BR /&gt;
...&lt;BR /&gt;
[iis_ex]&lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 19&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:%S&lt;BR /&gt;
TZ = GMT&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2})&lt;BR /&gt;
SHOULD_LINEMERGE = False&lt;BR /&gt;
TRUNCATE = 10000&lt;BR /&gt;
KV_MODE = None&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
REPORT-iisw3cfields = iisw3cfields&lt;/P&gt;

&lt;P&gt;Here are a few lines from our log file ... &lt;/P&gt;

&lt;H1&gt;Software: Microsoft Internet Information Services 6.0&lt;/H1&gt;

&lt;H1&gt;Version: 1.0&lt;/H1&gt;

&lt;H1&gt;Date: 2013-07-07 00:00:00&lt;/H1&gt;

&lt;H1&gt;Fields: date time s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-bytes cs-bytes time-taken&lt;/H1&gt;

&lt;P&gt;2013-07-06 23:59:59 TLOWPN29 192.168.122.82 GET /secure/EmployeeHome.aspx - 443 - 207.190.231.139 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+WOW64;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) training=true;+SessionGUID=ee81cbbf-9da8-4532-92ae-24a4e8ad6147;+StyleSheetTheme=pxxxx;+SSODeferral=true hxxx://xxxxx.xxxx.com/secure/login.aspx?alias=0414T735 xxxxxxx.xxxxx.com 200 68499 649 1109&lt;/P&gt;

&lt;H2&gt;2013-07-07 00:00:00 TLOWPN29 192.168.122.82 GET /secure/Images/exception.gif - 443 - 38.102.232.83 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) StyleSheetTheme=pxxxx;+SessionGUID=00000000-0000-0000-0000-000000000000;+training=true hxxps://xxxxxxx.xxxx.com/secure/login.aspx tixxxxxx.xxxxx.com 200 1338 597 15&lt;/H2&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:23:46 GMT</pubDate>
    <dc:creator>wsnyder2</dc:creator>
    <dc:date>2020-09-28T14:23:46Z</dc:date>
    <item>
      <title>DELIM does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DELIM-does-not-work/m-p/101298#M26174</link>
      <description>&lt;P&gt;We can not get field extraction to work with IIS log files. Any suggestions? &lt;/P&gt;

&lt;P&gt;transforms.conf&lt;BR /&gt;
[iisw3cfields]&lt;BR /&gt;
DELIMS = " "&lt;BR /&gt;
FIELDS = date,time,s-computername,s-ip,cs-method,cs-uri-stem,cs-uri-query,s-port,cs-username,c-ip,cs-version,cs(User-Agent),cs(Cookie),cs(Referer),cs-host,sc-status,sc-bytes,cs-bytes,time-taken&lt;/P&gt;

&lt;P&gt;props.conf (relevant part)&lt;BR /&gt;
...&lt;BR /&gt;
[iis_ex]&lt;BR /&gt;
TIME_PREFIX = ^&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 19&lt;BR /&gt;
TIME_FORMAT = %Y-%m-%d %H:%M:%S&lt;BR /&gt;
TZ = GMT&lt;BR /&gt;
LINE_BREAKER = ([\r\n]+)(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2})&lt;BR /&gt;
SHOULD_LINEMERGE = False&lt;BR /&gt;
TRUNCATE = 10000&lt;BR /&gt;
KV_MODE = None&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
REPORT-iisw3cfields = iisw3cfields&lt;/P&gt;

&lt;P&gt;Here are a few lines from our log file ... &lt;/P&gt;

&lt;H1&gt;Software: Microsoft Internet Information Services 6.0&lt;/H1&gt;

&lt;H1&gt;Version: 1.0&lt;/H1&gt;

&lt;H1&gt;Date: 2013-07-07 00:00:00&lt;/H1&gt;

&lt;H1&gt;Fields: date time s-computername s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs(User-Agent) cs(Cookie) cs(Referer) cs-host sc-status sc-bytes cs-bytes time-taken&lt;/H1&gt;

&lt;P&gt;2013-07-06 23:59:59 TLOWPN29 192.168.122.82 GET /secure/EmployeeHome.aspx - 443 - 207.190.231.139 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+5.2;+WOW64;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729) training=true;+SessionGUID=ee81cbbf-9da8-4532-92ae-24a4e8ad6147;+StyleSheetTheme=pxxxx;+SSODeferral=true hxxx://xxxxx.xxxx.com/secure/login.aspx?alias=0414T735 xxxxxxx.xxxxx.com 200 68499 649 1109&lt;/P&gt;

&lt;H2&gt;2013-07-07 00:00:00 TLOWPN29 192.168.122.82 GET /secure/Images/exception.gif - 443 - 38.102.232.83 Mozilla/4.0+(compatible;+MSIE+8.0;+Windows+NT+5.1;+Trident/4.0;+.NET+CLR+1.1.4322;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.4506.2152;+.NET+CLR+3.5.30729;+.NET4.0C;+.NET4.0E) StyleSheetTheme=pxxxx;+SessionGUID=00000000-0000-0000-0000-000000000000;+training=true hxxps://xxxxxxx.xxxx.com/secure/login.aspx tixxxxxx.xxxxx.com 200 1338 597 15&lt;/H2&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:23:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DELIM-does-not-work/m-p/101298#M26174</guid>
      <dc:creator>wsnyder2</dc:creator>
      <dc:date>2020-09-28T14:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: DELIM does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DELIM-does-not-work/m-p/101299#M26175</link>
      <description>&lt;P&gt;i think it's overcooked. Let it flow into splunk. Splunk should be able to get the events divided whereever it finds time at the start. After that, do the field extraction on the UI, which is easier, where you can actually see the matching. If the time is not correct, set the Props.conf for time recognition. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 21:05:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DELIM-does-not-work/m-p/101299#M26175</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2013-07-19T21:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: DELIM does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DELIM-does-not-work/m-p/101300#M26176</link>
      <description>&lt;P&gt;I seen this problem before.  The problem is not with your delim, but with your field names in &lt;STRONG&gt;FIELDS&lt;/STRONG&gt;.  Change your "&lt;STRONG&gt;-&lt;/STRONG&gt;" to "&lt;STRONG&gt;_&lt;/STRONG&gt;" or remove "&lt;STRONG&gt;-&lt;/STRONG&gt;" entirely.  Splunk tends to not like the dash when naming fields.&lt;/P&gt;

&lt;P&gt;Example changes:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;cs-host to cs_host&lt;/LI&gt;
&lt;LI&gt;cs(User-Agent) to cs_userAgent . Personally I typically use all lower case.&lt;/LI&gt;
&lt;LI&gt;cs(Referer) to cs_referer&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Doing this should fix your problem.  &lt;/P&gt;

&lt;P&gt;Also this simplified props file that works.&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
[iis_ex]&lt;BR /&gt;
pulldown_type=true&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD=19&lt;BR /&gt;
TIME_FORMAT=%Y-%m-%d %H:%M:%S&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;BR /&gt;
CHECK_FOR_HEADER=false&lt;BR /&gt;
TZ=GMT&lt;BR /&gt;
REPORT-iisw3cfields=iisw3cfields&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Hope this help or gets you started cheers.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2013 21:37:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DELIM-does-not-work/m-p/101300#M26176</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-07-19T21:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: DELIM does not work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/DELIM-does-not-work/m-p/101301#M26177</link>
      <description>&lt;P&gt;If you are using Splunk 6 on both Forwarder and Indexer (or just ingesting logs locally on the indexer) set &lt;CODE&gt;sourcetype=iis&lt;/CODE&gt; in your inputs.conf.&lt;/P&gt;

&lt;P&gt;Under the covers, this is using &lt;CODE&gt;INDEXED_EXTRACTIONS=W3C&lt;/CODE&gt; in props.conf and will automatically pick up the header and use it for field mappings so you don't have to mess with props and transforms.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2014 20:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/DELIM-does-not-work/m-p/101301#M26177</guid>
      <dc:creator>ogdin</dc:creator>
      <dc:date>2014-02-13T20:32:30Z</dc:date>
    </item>
  </channel>
</rss>

