<?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 IIS Status Field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/IIS-Status-Field/m-p/33419#M178289</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am having trouble getting Splunk to read the status field from my logs.  I have put the following in my props.conf and restarted Splunk:&lt;/P&gt;

&lt;P&gt;[iis]&lt;BR /&gt;
TZ = GMT&lt;BR /&gt;
CHECK_FOR_HEADER = true&lt;BR /&gt;
FIELDALIAS-status = "sc-status" AS status&lt;/P&gt;

&lt;P&gt;If I search for eventtype=web-traffic, I see results.  But, when I search eventtype=web-traffic status=200, I get 0 results.&lt;/P&gt;

&lt;P&gt;My indexer in on Linux, forwarder on Windows.  Can anyone help me?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:42:29 GMT</pubDate>
    <dc:creator>rcovert</dc:creator>
    <dc:date>2020-09-28T11:42:29Z</dc:date>
    <item>
      <title>IIS Status Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IIS-Status-Field/m-p/33419#M178289</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am having trouble getting Splunk to read the status field from my logs.  I have put the following in my props.conf and restarted Splunk:&lt;/P&gt;

&lt;P&gt;[iis]&lt;BR /&gt;
TZ = GMT&lt;BR /&gt;
CHECK_FOR_HEADER = true&lt;BR /&gt;
FIELDALIAS-status = "sc-status" AS status&lt;/P&gt;

&lt;P&gt;If I search for eventtype=web-traffic, I see results.  But, when I search eventtype=web-traffic status=200, I get 0 results.&lt;/P&gt;

&lt;P&gt;My indexer in on Linux, forwarder on Windows.  Can anyone help me?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:42:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IIS-Status-Field/m-p/33419#M178289</guid>
      <dc:creator>rcovert</dc:creator>
      <dc:date>2020-09-28T11:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: IIS Status Field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/IIS-Status-Field/m-p/33420#M178290</link>
      <description>&lt;P&gt;Well, I figured it out on my own.  In case anyone else has the same problem, this is what I did.  First, I put this in my props.conf:&lt;/P&gt;

&lt;P&gt;[iis]&lt;BR /&gt;
TZ = GMT&lt;BR /&gt;
CHECK_FOR_HEADER = true&lt;BR /&gt;
REPORT-AutoHeader = AutoHeader-1&lt;BR /&gt;
FIELDALIAS-status = c_ip AS clientip cs_Referer_ AS referer_domain cs_User_Agent_ AS useragent cs_host AS host cs_method AS method cs_uri_query AS q cs_uri_stem AS uri sc_status AS status&lt;/P&gt;

&lt;P&gt;and this in transforms.conf:&lt;BR /&gt;
[AutoHeader-1]&lt;BR /&gt;
DELIMS = " "&lt;BR /&gt;
FIELDS = "date", "time", "s-ip", "cs-method", "cs-uri-stem", "cs-uri-query", "s-port", "cs-username", "c-ip", "cs(User-Agent)", "sc-status", "sc-substatus", "sc-win32-status", "time-taken"&lt;/P&gt;

&lt;P&gt;I'm not sure why the field aliases use a "_" instead of "-", but it works!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:42:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/IIS-Status-Field/m-p/33420#M178290</guid>
      <dc:creator>rcovert</dc:creator>
      <dc:date>2020-09-28T11:42:34Z</dc:date>
    </item>
  </channel>
</rss>

