<?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 index W3C IISlog from a Universal forwarder in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18661#M2565</link>
    <description>&lt;P&gt;I found that the transforms for removing comments did not work on the indexer. I moved them to the forwarder and then it worked.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2013 23:09:33 GMT</pubDate>
    <dc:creator>wrangler2x</dc:creator>
    <dc:date>2013-03-11T23:09:33Z</dc:date>
    <item>
      <title>How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18652#M2556</link>
      <description>&lt;P&gt;I am new to Splunk, so please forgive me if the answer to the question is obvious....&lt;/P&gt;

&lt;P&gt;I am trying to index W3C IISlogs with splunk. First I tried to index the file locally on the Splunk server. I found a post that suggested that I should add the lines below to &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[iisw3c]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;pulldown_type = true&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;MAX_TIMESTAMP_LOOKAHEAD = 32&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;SHOULD_LINEMERGE = False&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;CHECK_FOR_HEADER = False&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;TZ = GMT&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;REPORT-iisw3cfields = iisw3cfields&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;TRANSFORMS-removecomments = removecomments&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I also added these lines to transforms.conf&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[removecomments]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;REGEX = ^#.&lt;/STRONG&gt;*&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;DEST_KEY = queue&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;FORMAT = nullQueue&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;[iisw3cfields]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;DELIMS = " "&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;FIELDS = date,time,cs-method,cs-uri-stem,cs-uri-query,c-ip,sc-status,sc-substatus,sc-win32-status,sc-bytes,cs-bytes,time-taken&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;After that it works perfectly as long as I monitor a fodler on the Splunk server and uses my newly defined sourcetype.&lt;/P&gt;

&lt;P&gt;Now I want the monitor to run on another remote server and then let the splunk server listen on a TCP port.&lt;BR /&gt;
I can easily get something back, but now it doesn't recognise the format again. Even if I tell the listener that it is iis3wc.&lt;/P&gt;

&lt;P&gt;I found a suggestion that I should add the Checkforheader = fasle on the forwarder, but I am uncertain where exactly to do it since the file structure is slightly different.&lt;/P&gt;

&lt;P&gt;Any suggestions of what I have done wrong or what is missing?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:13:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18652#M2556</guid>
      <dc:creator>meskildsen</dc:creator>
      <dc:date>2020-09-28T13:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18653#M2557</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/164361"&gt;@meskildsen&lt;/a&gt;,  All you need to do is modify your inputs.conf on the UF similar to this.&lt;/P&gt;

&lt;P&gt;UF inputs.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
[monitor://D:\Logs\Web\...\*.log]&lt;BR /&gt;
ignoreOlderThan = 3d&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
index = &amp;lt;YourIndex&amp;gt;&lt;BR /&gt;
sourcetype = iisw3c&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;UF outputs.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
[tcpout]&lt;BR /&gt;
defaultGroup = default-group&lt;BR /&gt;
[tcpout:default-group]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
server =  &amp;lt;YourIndexer&amp;gt;:9999&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;indexer inputs.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
[tcp://:9997]&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;indexer props.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
[iisw3c]&lt;BR /&gt;
pulldown_type = true&lt;BR /&gt;
MAX_TIMESTAMP_LOOKAHEAD = 32&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;
TRANSFORMS-removecomments = removecomments&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Indexer transforms.conf&lt;BR /&gt;
&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
[removecomments]&lt;BR /&gt;
REGEX = ^#.*&lt;BR /&gt;
DEST_KEY = queue&lt;BR /&gt;
FORMAT = nullQueue&lt;BR /&gt;
[iisw3cfields]&lt;BR /&gt;
DELIMS = " "&lt;BR /&gt;
FIELDS = date,time,cs-method,cs-uri-stem,cs-uri-query,c-ip,sc-status,sc-substatus,sc-win32-status,sc-bytes,cs-bytes,time-taken&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;The indexer will pickup the iisw3c sourcetype and apply the settings defined in your props.conf file on your indexer.  You will need to configure your outputs.conf to forward the data to your indexer if you haven't already.&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;

&lt;P&gt;Also I would recommend reading &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Indexer/Howindexingworks" target="_blank"&gt;Howindexingworks&lt;/A&gt; and &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/WhatSplunkcanmonitor" target="_blank"&gt;GettingDataIn&lt;/A&gt; this will give you a greater understanding on where you should be modifing your .conf files.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18653#M2557</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2020-09-28T13:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18654#M2558</link>
      <description>&lt;P&gt;what does your inputs.conf look like on the forwarder?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 17:49:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18654#M2558</guid>
      <dc:creator>okrabbe_splunk</dc:creator>
      <dc:date>2013-02-04T17:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18655#M2559</link>
      <description>&lt;P&gt;I didn't succeed in my first try, but guess there is something I might have misunderstood. &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;I have to refer my index on the Universal Forwarder?&lt;/LI&gt;
&lt;LI&gt;Do I have to define the sourcetype on the forwarder?&lt;/LI&gt;
&lt;LI&gt;I am uncertain of what an where (forwarder / server), to change in the outputs.conf?&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;BTW. I am also uncertain if it is the correct place I am change the conf files. Where is the preferred location?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 21:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18655#M2559</guid>
      <dc:creator>meskildsen</dc:creator>
      <dc:date>2013-02-04T21:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18656#M2560</link>
      <description>&lt;P&gt;You should set index and sourcetype on the forwarder. There are somewhat involved ways to do it on-the-fly on the indexer instead, but why would you want to?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 22:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18656#M2560</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-02-04T22:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18657#M2561</link>
      <description>&lt;P&gt;I found the answer to my third question.&lt;BR /&gt;
outputs.conf is specific to forwarders. &lt;/P&gt;

&lt;P&gt;I have defined a tcp forwarder in outputs.conf:&lt;/P&gt;

&lt;P&gt;[tcpout-server://SERVERNAME:9999]&lt;/P&gt;

&lt;P&gt;This will forward data to the server SERVERNAME and use port 9999. Is that configuration sufficient?&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 22:44:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18657#M2561</guid>
      <dc:creator>meskildsen</dc:creator>
      <dc:date>2013-02-04T22:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18658#M2562</link>
      <description>&lt;P&gt;@meskildsen,  Pending you dont have any firewall issues the update to my answer will work.  Also read &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Wheretofindtheconfigurationfiles"&gt;http://docs.splunk.com/Documentation/Splunk/latest/admin/Wheretofindtheconfigurationfiles&lt;/A&gt; you should learn about conf file precedence.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2013 23:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18658#M2562</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2013-02-04T23:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18659#M2563</link>
      <description>&lt;P&gt;I have tried to reinstall and both Splunk Indexer and Universal Forwarder with no success.&lt;BR /&gt;
Then I have tried to install a Splunk Indexer instance instead of the Universal Forwarder and configured it as a Heavy Forwarder. This setup was successfull parsed at the Splunk Indexer. &lt;BR /&gt;
Since I am doing a POC on Splunk the Heavy Forwarder is OK for now.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2013 21:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18659#M2563</guid>
      <dc:creator>meskildsen</dc:creator>
      <dc:date>2013-02-05T21:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18660#M2564</link>
      <description>&lt;P&gt;On our instance we are taking logs from the fields given above don't exactly match what we have. Also, we found that the system puts a header at the top of each new daily log file and the header names the fields. Using this, we have this FIELDS statement in our transforms.conf:&lt;/P&gt;

&lt;P&gt;FIELDS = date,time,s-ip,cs-method,cs-uri-stem,cs-uri-query,s-port,cs-username,c-ip,c-useragent, sc-status,sc-substatus,sc-win32-status,time-taken&lt;/P&gt;

&lt;P&gt;This is working fine.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2013 21:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18660#M2564</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2013-03-07T21:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18661#M2565</link>
      <description>&lt;P&gt;I found that the transforms for removing comments did not work on the indexer. I moved them to the forwarder and then it worked.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2013 23:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18661#M2565</guid>
      <dc:creator>wrangler2x</dc:creator>
      <dc:date>2013-03-11T23:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18662#M2566</link>
      <description>&lt;P&gt;on the UF inputs.conf , how does this differe from&lt;/P&gt;

&lt;P&gt;alwaysOpenFile = true&lt;/P&gt;

&lt;P&gt;??&lt;BR /&gt;
is it the same as "FollowTail" ?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 18:46:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18662#M2566</guid>
      <dc:creator>GArienti</dc:creator>
      <dc:date>2017-01-30T18:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to index W3C IISlog from a Universal forwarder</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18663#M2567</link>
      <description>&lt;P&gt;I looked at the splunk page and answered my own question, thank you anyway&lt;/P&gt;

&lt;P&gt;followTail = [0|1]&lt;BR /&gt;
* WARNING: Use of followTail should be considered an advanced administrative&lt;BR /&gt;
  action.&lt;BR /&gt;
* Treat this setting as an 'action':&lt;BR /&gt;
  * Enable this setting and start the Splunk software.&lt;BR /&gt;
  * Wait enough time for the input to identify the related files.&lt;BR /&gt;
  * Disable the setting and restart.&lt;BR /&gt;
* DO NOT leave followTail enabled in an ongoing fashion.&lt;BR /&gt;
* Do not use followTail for rolling log files (log files that get renamed as&lt;BR /&gt;
  they age), or files whose names or paths vary.&lt;BR /&gt;
* You can use this to force the input to skip past all current data for a&lt;BR /&gt;
  given stanza.&lt;BR /&gt;
  * In more detail: this is intended to mean that if you start the monitor&lt;BR /&gt;
    with a stanza configured this way, all data in the file at the time it is&lt;BR /&gt;
    first encountered will not be read. Only data that arrives after the first&lt;BR /&gt;
    encounter time will be read.&lt;BR /&gt;
  * This can be used to "skip over" data from old log files, or old portions of&lt;BR /&gt;
    log files, to get started on current data right away.&lt;BR /&gt;
* If set to 1, monitoring starts at the end of the file (like tail -f).&lt;BR /&gt;
* If set to 0, monitoring starts at the beginning of the file.&lt;BR /&gt;
* Defaults to 0.&lt;/P&gt;

&lt;P&gt;alwaysOpenFile = [0|1]&lt;BR /&gt;
* Opens a file to check whether it has already been indexed, by skipping the&lt;BR /&gt;
  modification time/size checks.&lt;BR /&gt;
* Only useful for files that do not update modification time or size.&lt;BR /&gt;
* Only known to be needed when monitoring files on Windows, mostly for&lt;BR /&gt;
  Internet Information Server logs.&lt;BR /&gt;
* This flag should only be used as a last resort, as it increases load and&lt;BR /&gt;
  slows down indexing.&lt;BR /&gt;
* Defaults to 0.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 18:49:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-index-W3C-IISlog-from-a-Universal-forwarder/m-p/18663#M2567</guid>
      <dc:creator>GArienti</dc:creator>
      <dc:date>2017-01-30T18:49:03Z</dc:date>
    </item>
  </channel>
</rss>

