<?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: Windows IIS logs not formatting correctly / hostname problem in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/433379#M75752</link>
    <description>&lt;P&gt;Your inputs.conf settings are fine. You'll want to take a look at the &lt;STRONG&gt;./Splunk_TA_microsoft-iis/default/props.conf&lt;/STRONG&gt; file on your search head. There's a bunch of over-ambitious FIELDALIAS commands there, and depending on exactly what fields you're logging from IIS, those FIELDALIAS commands can jack-up your field extractions.&lt;/P&gt;

&lt;P&gt;I recommend commenting out this one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FIELDALIAS-s_computername = s_computername as host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And either do a debug/refresh on your search head, or just restart the search head if that won't bum people out.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 23:44:54 GMT</pubDate>
    <dc:creator>gpullis</dc:creator>
    <dc:date>2020-09-29T23:44:54Z</dc:date>
    <item>
      <title>Windows IIS logs not formatting correctly / hostname problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/433377#M75750</link>
      <description>&lt;P&gt;So bringing in some IIS logs from a few windows servers... seemed pretty simple. Installed the add-on for Micrsoft IIS which gave me a few new sourcetypes to use.&lt;/P&gt;

&lt;P&gt;My inputs.conf reads (star.log is actually *.log):&lt;BR /&gt;
[monitor://C:\inetpub\logs\LogFiles\W3SVC1\star.log] &lt;BR /&gt;
index = iis&lt;BR /&gt;
sourcetype = ms:iis:default&lt;BR /&gt;
disabled = false&lt;/P&gt;

&lt;P&gt;Event break are all chopped up. I looked at the source data from the IIS server and it looks like this (see image)&lt;/P&gt;

&lt;P&gt;I also noticed that the hostname is coming in as "cs-method" and not the actual hostname. This server is sending in other logs from the splunk forwarder just fine, with the correct hostname.&lt;/P&gt;

&lt;P&gt;Any pointers? Struggling here.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;P&gt;Joe&lt;/P&gt;

&lt;P&gt;Splunk Enterprise v6.5.0&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 20:50:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/433377#M75750</guid>
      <dc:creator>joesrepsol</dc:creator>
      <dc:date>2018-05-31T20:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Windows IIS logs not formatting correctly / hostname problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/433378#M75751</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5107i725FDB31EA04C770/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 21:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/433378#M75751</guid>
      <dc:creator>joesrepsol</dc:creator>
      <dc:date>2018-05-31T21:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Windows IIS logs not formatting correctly / hostname problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/433379#M75752</link>
      <description>&lt;P&gt;Your inputs.conf settings are fine. You'll want to take a look at the &lt;STRONG&gt;./Splunk_TA_microsoft-iis/default/props.conf&lt;/STRONG&gt; file on your search head. There's a bunch of over-ambitious FIELDALIAS commands there, and depending on exactly what fields you're logging from IIS, those FIELDALIAS commands can jack-up your field extractions.&lt;/P&gt;

&lt;P&gt;I recommend commenting out this one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FIELDALIAS-s_computername = s_computername as host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And either do a debug/refresh on your search head, or just restart the search head if that won't bum people out.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:44:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/433379#M75752</guid>
      <dc:creator>gpullis</dc:creator>
      <dc:date>2020-09-29T23:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Windows IIS logs not formatting correctly / hostname problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/433380#M75753</link>
      <description>&lt;P&gt;Once you've figured out which FIELDALIAS commands are the problem, you can actually override them in a ./Splunk_TA_microsoft-iis/local/props.conf file by setting them equal to nothing, like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FIELDALIAS-s_computername = 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That's a better practice than making changes to the stuff in ./default.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/433380#M75753</guid>
      <dc:creator>gpullis</dc:creator>
      <dc:date>2020-09-29T23:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Windows IIS logs not formatting correctly / hostname problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/433381#M75754</link>
      <description>&lt;P&gt;I just went to the app in manage apps, viewed the objects, found the aforementioned field alias and unchecked the "Overwrite field values" box - on my search head.  Now I see the right host names associated with the events. &lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 19:12:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/433381#M75754</guid>
      <dc:creator>cjpote</dc:creator>
      <dc:date>2020-04-28T19:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Windows IIS logs not formatting correctly / hostname problem</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/517319#M87538</link>
      <description>&lt;P&gt;I am also having issues with the host field appearing when i run a search for this data. I commented out the field alias in props and for some reason the host field still does not exist in the search. When running a tstats on the index by host we see values for host. But not when we just simply search the data&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 18:25:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-IIS-logs-not-formatting-correctly-hostname-problem/m-p/517319#M87538</guid>
      <dc:creator>adobrzeniecki</dc:creator>
      <dc:date>2020-09-01T18:25:40Z</dc:date>
    </item>
  </channel>
</rss>

