<?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: Index Routing/Separation Across Multiple VPCs in Security</title>
    <link>https://community.splunk.com/t5/Security/Index-Routing-Separation-Across-Multiple-VPCs/m-p/542176#M12118</link>
    <description>&lt;P&gt;This solution worked until I needed to add more indexes to the VPC. Since the host have multiple indexes I've changed the files to go by source and am trying to indicate the prefix of the hostnames in the transforms REGEX section. My current problem and set-up is,&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="14.794007490636705%" height="47px"&gt;&lt;STRONG&gt;VPC Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="18.30524344569289%" height="47px"&gt;&lt;STRONG&gt;Hostnames Prefix per VPC&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="23.689138576779023%" height="47px"&gt;&lt;STRONG&gt;Inputs&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="43.21161048689139%" height="47px"&gt;&lt;STRONG&gt;Indexes&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.794007490636705%" height="47px"&gt;vpcX&lt;/TD&gt;&lt;TD width="18.30524344569289%" height="47px"&gt;ab-&lt;/TD&gt;&lt;TD width="23.689138576779023%" height="47px"&gt;Linux and Windows&lt;/TD&gt;&lt;TD width="43.21161048689139%" height="47px"&gt;os, windows, wineventlog, msad, perfmon&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.794007490636705%" height="47px"&gt;vpcY&lt;/TD&gt;&lt;TD width="18.30524344569289%" height="47px"&gt;cd-&lt;/TD&gt;&lt;TD width="23.689138576779023%" height="47px"&gt;Linux and Windows&lt;/TD&gt;&lt;TD width="43.21161048689139%" height="47px"&gt;os_cd, windows_cd, wineventlog_cd, msad_cd, perfmon_cd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;vpcZ&lt;/TD&gt;&lt;TD&gt;ef-&lt;/TD&gt;&lt;TD&gt;Linux and Windowws&lt;/TD&gt;&lt;TD&gt;os_ef, windows_ef, wineventlog_ef, msad_ef, perfmon_ef&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;My current props.conf for Splunk_TA_nix is,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::/var/*]
TRANSFORMS-routing = osCd
TRANSFORMS-routing = osEf

[source::/etc/*]
TRANSFORMS-routing = osCd
TRANSFORMS-routing = osEf

[source::Linux*]
TRANSFORMS-routing = osCd
TRANSFORMS-routing = osEf

(etc. I've added every source found in the Splunk_TA_nix add-on)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;and transforms.conf is &lt;STRONG&gt;where the REGEX is referencing the hostname prefix&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[osCd]
SOURCE_KEY = MetaData:Source
REGEX = .+cd.+
DEST_KEY = _MetaData:Index
FORMAT = os_cd

[osEf]
SOURCE_KEY = MetaData:Source
REGEX = .+ef.+
DEST_KEY = _MetaData:Index
FORMAT = os_ef&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I writing the REGEX correctly to search on the hostname in addition to the source that is referenced in props.conf? Or is there another parameter/method to specify this?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Mar 2021 14:41:52 GMT</pubDate>
    <dc:creator>astackpole</dc:creator>
    <dc:date>2021-03-03T14:41:52Z</dc:date>
    <item>
      <title>Index Routing/Separation Across Multiple VPCs</title>
      <link>https://community.splunk.com/t5/Security/Index-Routing-Separation-Across-Multiple-VPCs/m-p/541358#M12107</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;I have an environment consisting of three VPC's (say x, y, and z). Each VPC holds Linux, Windows and AWS logs. I have successfully set-up the AWS log ingest using separate indexes (aws_vpcx, aws_vpcy, aws_vpcz). However, I'm struggling to get the Linux/Windows data to index the same way. The&amp;nbsp;unique identifier I'm using is hostnames. The following holds true for all hostnames per VPC,&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;VPC X has hostnames == vpcX***&lt;/LI&gt;&lt;LI&gt;VPC Y has hostnames == vpcY***&lt;/LI&gt;&lt;LI&gt;VPC Z has hostnames == vpcZ***&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For Linux logs I tried to add the following :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Inputs.conf currently has (index=os_vpcX) so the default is for all Linux hosts in VPC X which is why it's not in the props and transforms files below.&lt;UL&gt;&lt;LI&gt;Currently all VPCs are sending to the os_vpcX index instead of all three and I need to figure out why the below config isn't working. I'm doing this from the cluster master and pushing it to the indexer cluster.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[host::vpcY*]
TRANSFORMS-osVpcY = osVpcYTrans

[host::vpcZ*]
TRANSFORMS-osVpcZ = osVpcZTrans&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[osVpcYTrans]
REGEX = vpcX.+
DEST_KEY = _MetaData:Index
FORMAT = os_vpcy

[osVpcZTrans]
REGEX = vpcY.+
DEST_KEY = _MetaData:Index
FORMAT = os_vpcz&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;My second question is the same but for the Windows add-on..this seems more difficult with the single inputs.conf file having multiple indexes in it.&lt;/P&gt;&lt;P&gt;Is there a way for me to specify more than one 'unique' thing about the stanza? For example, this is the default windows inputs.conf containing multiple indexes...I will need the windows index to go to either windows, windows_vpcY, or windows_vpcZ depending on the host that's sending the logs..but then I will also need that same separation for the wineventlog data (wineventlog, wineventlog_vpcY, wineventlog_vpcZ).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;###### WinEventLog Inputs for DNS ######
[WinEventLog://DNS Server]
disabled = 0
renderXml=true
index = wineventlog

###### DHCP ######
[monitor://$WINDIR\System32\DHCP]
disabled = 0
whitelist = DhcpSrvLog*
crcSalt = &amp;lt;SOURCE&amp;gt;
sourcetype = DhcpSrvLog
index = windows&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Thanks in advance to anyone that can help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 15:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Index-Routing-Separation-Across-Multiple-VPCs/m-p/541358#M12107</guid>
      <dc:creator>astackpole</dc:creator>
      <dc:date>2021-02-25T15:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Index Routing/Separation Across Multiple VPCs</title>
      <link>https://community.splunk.com/t5/Security/Index-Routing-Separation-Across-Multiple-VPCs/m-p/541363#M12108</link>
      <description>&lt;P&gt;For Linux logs, you need to add the attribute &lt;STRONG&gt;SOURCE_KEY&lt;/STRONG&gt; to both stanzas in transforms.conf&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[osVpcYTrans]
SOURCE_KEY = MetaData:Host
REGEX = vpcX.+
DEST_KEY = _MetaData:Index
FORMAT = os_vpcy&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For windows, I don't have much idea. You can refer to this answer&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Getting-Data-In/How-do-I-configure-Splunk-to-index-Windows-Event-Log-data-in/m-p/10797#M421" target="_blank"&gt;https://community.splunk.com/t5/Getting-Data-In/How-do-I-configure-Splunk-to-index-Windows-Event-Log-data-in/m-p/10797#M421&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use the same transforms configurations in windows, if the host/source/sourcetype values are different&amp;nbsp;&lt;SPAN&gt;VPCs logs&lt;/SPAN&gt;&amp;nbsp;in the&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;wineventlog&lt;/STRONG&gt; index&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 15:34:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Index-Routing-Separation-Across-Multiple-VPCs/m-p/541363#M12108</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-02-25T15:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Index Routing/Separation Across Multiple VPCs</title>
      <link>https://community.splunk.com/t5/Security/Index-Routing-Separation-Across-Multiple-VPCs/m-p/542176#M12118</link>
      <description>&lt;P&gt;This solution worked until I needed to add more indexes to the VPC. Since the host have multiple indexes I've changed the files to go by source and am trying to indicate the prefix of the hostnames in the transforms REGEX section. My current problem and set-up is,&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="14.794007490636705%" height="47px"&gt;&lt;STRONG&gt;VPC Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="18.30524344569289%" height="47px"&gt;&lt;STRONG&gt;Hostnames Prefix per VPC&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="23.689138576779023%" height="47px"&gt;&lt;STRONG&gt;Inputs&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD width="43.21161048689139%" height="47px"&gt;&lt;STRONG&gt;Indexes&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.794007490636705%" height="47px"&gt;vpcX&lt;/TD&gt;&lt;TD width="18.30524344569289%" height="47px"&gt;ab-&lt;/TD&gt;&lt;TD width="23.689138576779023%" height="47px"&gt;Linux and Windows&lt;/TD&gt;&lt;TD width="43.21161048689139%" height="47px"&gt;os, windows, wineventlog, msad, perfmon&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="14.794007490636705%" height="47px"&gt;vpcY&lt;/TD&gt;&lt;TD width="18.30524344569289%" height="47px"&gt;cd-&lt;/TD&gt;&lt;TD width="23.689138576779023%" height="47px"&gt;Linux and Windows&lt;/TD&gt;&lt;TD width="43.21161048689139%" height="47px"&gt;os_cd, windows_cd, wineventlog_cd, msad_cd, perfmon_cd&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;vpcZ&lt;/TD&gt;&lt;TD&gt;ef-&lt;/TD&gt;&lt;TD&gt;Linux and Windowws&lt;/TD&gt;&lt;TD&gt;os_ef, windows_ef, wineventlog_ef, msad_ef, perfmon_ef&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;My current props.conf for Splunk_TA_nix is,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::/var/*]
TRANSFORMS-routing = osCd
TRANSFORMS-routing = osEf

[source::/etc/*]
TRANSFORMS-routing = osCd
TRANSFORMS-routing = osEf

[source::Linux*]
TRANSFORMS-routing = osCd
TRANSFORMS-routing = osEf

(etc. I've added every source found in the Splunk_TA_nix add-on)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;and transforms.conf is &lt;STRONG&gt;where the REGEX is referencing the hostname prefix&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[osCd]
SOURCE_KEY = MetaData:Source
REGEX = .+cd.+
DEST_KEY = _MetaData:Index
FORMAT = os_cd

[osEf]
SOURCE_KEY = MetaData:Source
REGEX = .+ef.+
DEST_KEY = _MetaData:Index
FORMAT = os_ef&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I writing the REGEX correctly to search on the hostname in addition to the source that is referenced in props.conf? Or is there another parameter/method to specify this?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 14:41:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Index-Routing-Separation-Across-Multiple-VPCs/m-p/542176#M12118</guid>
      <dc:creator>astackpole</dc:creator>
      <dc:date>2021-03-03T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Index Routing/Separation Across Multiple VPCs</title>
      <link>https://community.splunk.com/t5/Security/Index-Routing-Separation-Across-Multiple-VPCs/m-p/542216#M12119</link>
      <description>&lt;P&gt;You don't need multiple stanzas in &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;. In the below transform $1 is&amp;nbsp;the output of &lt;STRONG&gt;REGEX&lt;/STRONG&gt; match (&lt;STRONG&gt;cd&lt;/STRONG&gt; or &lt;STRONG&gt;ef&lt;/STRONG&gt;)&amp;nbsp;and is used in the index name.&lt;BR /&gt;&lt;BR /&gt;props.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[source::/var/*]
TRANSFORMS-routing = overrideindex&lt;/LI-CODE&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[overrideindex]
SOURCE_KEY = MetaData:Host
REGEX = (cd|ef).+
DEST_KEY = _MetaData:Index
FORMAT = os_$1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 17:12:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Index-Routing-Separation-Across-Multiple-VPCs/m-p/542216#M12119</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-03-03T17:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Index Routing/Separation Across Multiple VPCs</title>
      <link>https://community.splunk.com/t5/Security/Index-Routing-Separation-Across-Multiple-VPCs/m-p/542264#M12123</link>
      <description>&lt;P&gt;I really like that idea and am looking into it moving forward....however, with multiple apps (windows/linux) it still didn't separate the logs correctly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I ended up doing is more tedious but worked. I created the following apps and then created 6 serverclasses to break them down by OS and host.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Splunk_TA_nix&lt;/LI&gt;&lt;LI&gt;Splunk_TA_nix_cd&lt;/LI&gt;&lt;LI&gt;Splunk_TA_nix_ef&lt;/LI&gt;&lt;LI&gt;Splunk_TA_windows&lt;/LI&gt;&lt;LI&gt;Splunk_TA_windows_cd&lt;/LI&gt;&lt;LI&gt;Splunk_TA_windows_ef&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I'd like to change this in the future though if anyone using props/transforms for this scenario is willing to share alternative methods.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 22:16:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Index-Routing-Separation-Across-Multiple-VPCs/m-p/542264#M12123</guid>
      <dc:creator>astackpole</dc:creator>
      <dc:date>2021-03-03T22:16:02Z</dc:date>
    </item>
  </channel>
</rss>

