<?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: Different IIS hosts logging to different indexes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493687#M84339</link>
    <description>&lt;P&gt;You can use different server classes (with associated different inputs.conf) going to IIS servers of Type A vs Type B&lt;/P&gt;

&lt;P&gt;Yes, you do need to maintain two (or more) UF apps, but you can get pretty granular on what endpoints show up in what server class&lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2019 14:54:39 GMT</pubDate>
    <dc:creator>wmyersas</dc:creator>
    <dc:date>2019-11-26T14:54:39Z</dc:date>
    <item>
      <title>Different IIS hosts logging to different indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493685#M84337</link>
      <description>&lt;P&gt;We got several IIS servers and want to index IIS logs into Splunk. However, we need to seperate some of the servers to a seperate indexer due to different needs for Access controll and retention.&lt;/P&gt;

&lt;P&gt;Is there a way to get IIS logs from some servers to one index and logs from anorther server to another index?&lt;/P&gt;

&lt;P&gt;Using universal forwarders. running Splunk 7.2.6 , Windows 2012RS, single instance.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 12:07:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493685#M84337</guid>
      <dc:creator>erikwie</dc:creator>
      <dc:date>2019-11-26T12:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Different IIS hosts logging to different indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493686#M84338</link>
      <description>&lt;P&gt;HI @erikwie,&lt;BR /&gt;
You have to override index value for some events on Indexers not on Universal Forwarders.&lt;/P&gt;

&lt;P&gt;Following the infos at &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.0/Data/Advancedsourcetypeoverrides"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.0/Data/Advancedsourcetypeoverrides&lt;/A&gt;&lt;BR /&gt;
in props.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::your_host]
TRANSFORMS-index = overrideindex
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;(a stanza for each host or you can use jolly chars)&lt;/P&gt;

&lt;P&gt;in transforms.conf &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[overrideindex]
DEST_KEY =_MetaData:Index
REGEX = .
FORMAT = my_new_index
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 12:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493686#M84338</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-11-26T12:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Different IIS hosts logging to different indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493687#M84339</link>
      <description>&lt;P&gt;You can use different server classes (with associated different inputs.conf) going to IIS servers of Type A vs Type B&lt;/P&gt;

&lt;P&gt;Yes, you do need to maintain two (or more) UF apps, but you can get pretty granular on what endpoints show up in what server class&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 14:54:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493687#M84339</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-11-26T14:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Different IIS hosts logging to different indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493688#M84340</link>
      <description>&lt;P&gt;You should not be using separate &lt;CODE&gt;indexers&lt;/CODE&gt;, you should be using separate &lt;CODE&gt;index values&lt;/CODE&gt; on the same &lt;CODE&gt;indexer&lt;/CODE&gt; and using &lt;CODE&gt;roles-based access&lt;/CODE&gt; feature to control who gets to use/see what.  Hopefully that is what you meant.  You can do it the &lt;CODE&gt;hard way&lt;/CODE&gt; at the indexers like this:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;BR /&gt;
Or you can do it the &lt;CODE&gt;easy way&lt;/CODE&gt; by either:&lt;BR /&gt;
1: creating 2 apps and deploying one with &lt;CODE&gt;index=foo&lt;/CODE&gt; to 1 class of servers and the other with &lt;CODE&gt;index=bar&lt;/CODE&gt; to the other class.&lt;BR /&gt;
2: using a single app and creating a set of universal &lt;CODE&gt;host-based&lt;/CODE&gt; stanzas to the appropriate UFs like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::foo1]
index = foo
[host::foo2]
index = foo
[host::foo3]
index = foo
[host::foo4]
index = foo
[host::bar1]
index = bar
[host::bar2]
index = bar
[host::bar3]
index = bar
[host::bar4]
index = bar
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Nov 2019 23:53:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493688#M84340</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-11-26T23:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Different IIS hosts logging to different indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493689#M84341</link>
      <description>&lt;P&gt;OP said "indexes", not "indexers"&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 23:05:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493689#M84341</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-11-27T23:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Different IIS hosts logging to different indexes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493690#M84342</link>
      <description>&lt;P&gt;I think somebody edited and fixed it.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Dec 2019 11:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Different-IIS-hosts-logging-to-different-indexes/m-p/493690#M84342</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-13T11:22:08Z</dc:date>
    </item>
  </channel>
</rss>

