<?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 can I collect events from several groups of Windows servers with separate dedicated indexes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-events-from-several-groups-of-Windows-servers/m-p/222502#M43630</link>
    <description>&lt;P&gt;Thanks, javiergn. &lt;BR /&gt;
Unfortunately, I didn't find a way to associate the serverclass with the index.&lt;/P&gt;

&lt;P&gt;The approach  Route specific events to a different index is described in &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Indexer/Setupmultipleindexes"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/Indexer/Setupmultipleindexes&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Does it work for events sent by a Forwarder? Should I have only one Server Class for all server in this case?&lt;/P&gt;

&lt;P&gt;Not clear to me to what props.conf and transforms.conf can I apply it in case of Windows Events Log.&lt;BR /&gt;
Will it overwrite the index setting in inputs.conf of the application?&lt;/P&gt;

&lt;P&gt;Is there any limitation on number of stanza's in transforms.conf? (I expect dozens of groups and dozens of server in each group)&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jan 2016 19:51:05 GMT</pubDate>
    <dc:creator>evgenyv</dc:creator>
    <dc:date>2016-01-11T19:51:05Z</dc:date>
    <item>
      <title>How can I collect events from several groups of Windows servers with separate dedicated indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-events-from-several-groups-of-Windows-servers/m-p/222500#M43628</link>
      <description>&lt;P&gt;My goal is to create a multi-tenant environment for monitoring several groups of Windows Servers.&lt;BR /&gt;
In other words, I’d like to index every group with a separate dedicated index.&lt;BR /&gt;
The Splunk Universal Forwarder is installed on every Windows Server and its output is directed to my Splunk Enterprise.&lt;/P&gt;

&lt;P&gt;My original idea was:&lt;BR /&gt;
1.  To create a Server Class for each group of servers&lt;BR /&gt;
2.  To specify a separate index to each Sever Class&lt;/P&gt;

&lt;P&gt;For the 1st group everything went ok:&lt;BR /&gt;
Windows Events Logs -&amp;gt; New -&amp;gt; &lt;BR /&gt;
Select Forwarders:  Here I selected servers for the 1st group (group1) -&amp;gt; Next&lt;BR /&gt;
Select Source:      Here I selected relevant event log channels (Application) -&amp;gt; Next&lt;BR /&gt;
Input Setting:      Here I selected an index for the 1st group (idx_group1)-&amp;gt; Review -&amp;gt; Save&lt;/P&gt;

&lt;P&gt;As a result, the new deployment application was created for the Server Class:&lt;BR /&gt;
In /opt/splunk/etc/deployment-apps/_server_app_group1/local/inputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Application]
disabled = 0
index = idx_group1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Indeed, the events from the server are indexed by idx_group1! &lt;/P&gt;

&lt;P&gt;However, when I did the same for the 2nd group, I’ve got an error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Cannot create another input for the event log "Application", one already exists.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk says “The event log monitor runs once for every event log input defined in Splunk.”&lt;/P&gt;

&lt;P&gt;So my question is – how can I collect the events from several groups of servers, when each group is indexed by a dedicated index?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:21:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-events-from-several-groups-of-Windows-servers/m-p/222500#M43628</guid>
      <dc:creator>evgenyv</dc:creator>
      <dc:date>2020-09-29T08:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I collect events from several groups of Windows servers with separate dedicated indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-events-from-several-groups-of-Windows-servers/m-p/222501#M43629</link>
      <description>&lt;P&gt;That's one of the reasons I don't like the Forwarder Management when using advanced configurations. &lt;/P&gt;

&lt;P&gt;Try editing the serverclass.conf file manually:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Updating/Useserverclass.conf"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/Updating/Useserverclass.conf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 18:11:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-events-from-several-groups-of-Windows-servers/m-p/222501#M43629</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-11T18:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I collect events from several groups of Windows servers with separate dedicated indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-events-from-several-groups-of-Windows-servers/m-p/222502#M43630</link>
      <description>&lt;P&gt;Thanks, javiergn. &lt;BR /&gt;
Unfortunately, I didn't find a way to associate the serverclass with the index.&lt;/P&gt;

&lt;P&gt;The approach  Route specific events to a different index is described in &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/Indexer/Setupmultipleindexes"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/Indexer/Setupmultipleindexes&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Does it work for events sent by a Forwarder? Should I have only one Server Class for all server in this case?&lt;/P&gt;

&lt;P&gt;Not clear to me to what props.conf and transforms.conf can I apply it in case of Windows Events Log.&lt;BR /&gt;
Will it overwrite the index setting in inputs.conf of the application?&lt;/P&gt;

&lt;P&gt;Is there any limitation on number of stanza's in transforms.conf? (I expect dozens of groups and dozens of server in each group)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2016 19:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-events-from-several-groups-of-Windows-servers/m-p/222502#M43630</guid>
      <dc:creator>evgenyv</dc:creator>
      <dc:date>2016-01-11T19:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I collect events from several groups of Windows servers with separate dedicated indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-events-from-several-groups-of-Windows-servers/m-p/222503#M43631</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;It might be easier to just create one serverclass for all the windows servers and then group by app. That is, every app will go to a different group of servers based on the whitelist/blacklist regex you write in your serverclass.conf. See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.1511/Updating/Filterclients"&gt;this&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For instance (based on Example 3 from the link above):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[global]
# whitelist.0=* at the global level ensures that the machineTypesFilter attribute
# invoked later will apply.
whitelist.0=*

[serverClass:WindowsMachineTypes]
machineTypesFilter=windows-*

[serverClass:WindowsMachineTypes:app:Group1_EventLogsApp]
whitelist.0=YOURWHITELIST
blacklist.0=YOURBLACKLIST
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You need to make sure every app has its own inputs.conf and that intputs.conf uses a different index.&lt;BR /&gt;
This should work just fine providing you don't deploy several apps to the same server, that is, all the whitelists/blacklists need to be mutually exclusive.&lt;/P&gt;

&lt;P&gt;An alternative that might increase performance but will probably simplify deployment is as follows:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Create one serverclass and one app for all your Windows servers you want to monitor&lt;/LI&gt;
&lt;LI&gt;Do not specify the index name during collection. Just define a sourcetype so that you can easily filter out by that later on.&lt;/LI&gt;
&lt;LI&gt;Create a transform in your heavy forwarder/indexer (whichever is your next hop) to overwrite the index name before indexing based on whichever filter you want to use. See &lt;A href="https://answers.splunk.com/answers/246672/how-can-i-override-an-index-name-based-on-sourcety.html"&gt;this&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 12 Jan 2016 12:02:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-events-from-several-groups-of-Windows-servers/m-p/222503#M43631</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-01-12T12:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I collect events from several groups of Windows servers with separate dedicated indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-events-from-several-groups-of-Windows-servers/m-p/222504#M43632</link>
      <description>&lt;P&gt;I did this, but got the following errors:&lt;/P&gt;

&lt;P&gt;stanza=serverClass:vcpe_win:app:_server_app_group1 property=whitelist.0 reason='unsupported at this level'&lt;BR /&gt;
stanza=serverClass:vcpe_win:app:_server_app_group2 property=whitelist.0 reason='unsupported at this level'&lt;/P&gt;

&lt;P&gt;my serverclasses.conf is&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[serverClass:vcpe_win]
restartSplunkd = true

[serverClass:vcpe_win:app:_server_app_group1]
whitelist.0 = 10.20.4.213

[serverClass:vcpe_win:app:_server_app_group2]
whitelist.0 = 10.20.4.214
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:24:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-collect-events-from-several-groups-of-Windows-servers/m-p/222504#M43632</guid>
      <dc:creator>evgenyv</dc:creator>
      <dc:date>2020-09-29T08:24:48Z</dc:date>
    </item>
  </channel>
</rss>

