<?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: So can you use INDEXED_EXTRACTIONS = w3c with something other than the sourcetype of iis? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190485#M37921</link>
    <description>&lt;P&gt;Create a different stanzas in the props.conf and use your stanzas (sourcetype) while indexing the log &lt;/P&gt;</description>
    <pubDate>Thu, 30 Oct 2014 23:45:49 GMT</pubDate>
    <dc:creator>vasanthmss</dc:creator>
    <dc:date>2014-10-30T23:45:49Z</dc:date>
    <item>
      <title>So can you use INDEXED_EXTRACTIONS = w3c with something other than the sourcetype of iis?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190484#M37920</link>
      <description>&lt;P&gt;If I add INDEXED_EXTRACTIONS = w3c using a sourcetype other than iis, it does not work for defining the field names. Is there a .conf file that I can define a different sourcetype for this functionality? We have several groups with different IIS logs and I'd like to call the sourcetype iis_group1, iis_group2, etc. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190484#M37920</guid>
      <dc:creator>hoopydave</dc:creator>
      <dc:date>2020-09-28T18:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: So can you use INDEXED_EXTRACTIONS = w3c with something other than the sourcetype of iis?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190485#M37921</link>
      <description>&lt;P&gt;Create a different stanzas in the props.conf and use your stanzas (sourcetype) while indexing the log &lt;/P&gt;</description>
      <pubDate>Thu, 30 Oct 2014 23:45:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190485#M37921</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2014-10-30T23:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: So can you use INDEXED_EXTRACTIONS = w3c with something other than the sourcetype of iis?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190486#M37922</link>
      <description>&lt;P&gt;I have created different stanzas using different sourcetypes, but the only time I can get the field extractions to work correctly is if I use [iss] as the sourcetype. If i use something like [iss_group1], the field names do not get extracted correctly. Running the same query (index=dotnet) see the examples below:&lt;/P&gt;

&lt;P&gt;This one works using [iis] as the sourcetype:&lt;BR /&gt;
Inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    # DOTNET IIS LOGS
    [monitor://D:\Applications\*\*\W*\*.log]
    sourcetype = iis
    index = dotnet
    ignoreOlderThan = 5d
    disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    [iis]
    INDEXED_EXTRACTIONS = w3c
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    Interesting Fields
        a c_ip 1
        # cs_bytes 100+
        a cs_method 2
        a cs_uri_query 25
        a cs_uri_stem 86
        a cs_User_Agent 4
        a cs_username 3
        a date 1 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I change that sourcetype to [iis_group1] and use INDEXED_EXTRACTIONS = w3c, Splunk does not properly extract the field names:&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    # DOTNET IIS LOGS
    [monitor://D:\Applications\*\*\W*\*.log]
    sourcetype = iis_group1
    index = dotnet
    ignoreOlderThan = 5d
    disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    [iis_group1]
    INDEXED_EXTRACTIONS = w3c
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Returns&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Interesting Fields

    # date_hour 24
    # date_mday 5
    # date_minute 60
    a date_month 1
    # date_second 60
    a date_wday 5
    # date_year 1
    a date_zone 1 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190486#M37922</guid>
      <dc:creator>hoopydave</dc:creator>
      <dc:date>2020-09-28T18:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: So can you use INDEXED_EXTRACTIONS = w3c with something other than the sourcetype of iis?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190487#M37923</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[iis_group1]
pulldown_type = true 
MAX_TIMESTAMP_LOOKAHEAD = 32
SHOULD_LINEMERGE = False
INDEXED_EXTRACTIONS = w3c
detect_trailing_nulls = auto
category = Web
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[iis_group1]
pulldown_type = true 
MAX_TIMESTAMP_LOOKAHEAD = 32
SHOULD_LINEMERGE = False
FIELD_DELIMITER = whitespace
FIELD_HEADER_REGEX = ^#Fields:\\s*(.*)
MISSING_VALUE_REGEX = -
TIME_FORMAT = %Y-%m-%d %H:%M:%S
TIMESTAMP_FIELDS = date,time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Oct 2014 15:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190487#M37923</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-31T15:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: So can you use INDEXED_EXTRACTIONS = w3c with something other than the sourcetype of iis?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190488#M37924</link>
      <description>&lt;P&gt;Thanks for your response, somesoni2, &lt;BR /&gt;
As suggested, I tried:&lt;BR /&gt;
inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# DOTNET IIS LOGS
[monitor://D:\Applications\*\*\W*\*.log]
sourcetype = iis_group1
index = dotnet
ignoreOlderThan = 5d
disabled = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;        [iis_group1]
        pulldown_type = true
        MAX_TIMESTAMP_LOOKAHEAD = 32
        SHOULD_LINEMERGE = False
        INDEXED_EXTRACTIONS = w3c
        detect_trailing_nulls = auto
        category = Web
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;That makes the data look good, but it is still not pulling in the standard IIS field names; c_ip, cs_bytes, cs_method, cs_uri_query, cs_uri_stem, cs_User_Agent, cs_username, etc&lt;/P&gt;

&lt;P&gt;Results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    Interesting Fields

        a d 15
        # date_hour 1
        # date_mday 1
        # date_minute 1
        a date_month 1
        # date_second 12
        a date_wday 1 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:03:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190488#M37924</guid>
      <dc:creator>hoopydave</dc:creator>
      <dc:date>2020-09-28T18:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: So can you use INDEXED_EXTRACTIONS = w3c with something other than the sourcetype of iis?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190489#M37925</link>
      <description>&lt;P&gt;hi, this is an old topic but I just found this exact same behavior. Has anyone ever found a justification for this? If I use sourcetype=iis, the w3c fields are automatically extracted. On the other hand, if I copy the [iis] stanza into my props.conf with another name and use this as the sourcetype, the fields are not extracted anymore.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2015 13:23:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190489#M37925</guid>
      <dc:creator>jnv7</dc:creator>
      <dc:date>2015-09-08T13:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: So can you use INDEXED_EXTRACTIONS = w3c with something other than the sourcetype of iis?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190490#M37926</link>
      <description>&lt;P&gt;Well, just in case anyone bumps into this, I guess it was quite a newbie problem. I managed to do it by deploying to the forwarder (instead of the indexer) a props.conf file with a copy of the [iis] default stanza but with the different name [iis_group1] in the example. This way the w3c fields in iis_group1 should be automatically extracted.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:14:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190490#M37926</guid>
      <dc:creator>jnv7</dc:creator>
      <dc:date>2020-09-29T07:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: So can you use INDEXED_EXTRACTIONS = w3c with something other than the sourcetype of iis?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190491#M37927</link>
      <description>&lt;P&gt;Make sure you are sending a copy of your custom props.conf to the UF as well. I had the same issue but it started working when I put a copy of props.conf with my custom sourcetype on UF's. &lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2016 14:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/So-can-you-use-INDEXED-EXTRACTIONS-w3c-with-something-other-than/m-p/190491#M37927</guid>
      <dc:creator>rajbir1</dc:creator>
      <dc:date>2016-03-17T14:33:33Z</dc:date>
    </item>
  </channel>
</rss>

