<?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: Change index depending on host in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476301#M81766</link>
    <description>&lt;P&gt;1) Your transforms does not say which field you are trying to match (SOURCE_KEY).  If you don't tell it that, then it probably is checking the entire _raw, iirc.&lt;/P&gt;

&lt;P&gt;2) If you mean to match only the character &lt;CODE&gt;.&lt;/CODE&gt;, then your regex should escape the character using &lt;CODE&gt;\.&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Apr 2020 16:12:05 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2020-04-15T16:12:05Z</dc:date>
    <item>
      <title>Change index depending on host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476295#M81760</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;I'm trying to split Windows events into different indexes at index time depending on the host which is sending them. Below there are my props.conf and transforms.conf&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;props.conf:&lt;BR /&gt;
[WMI:WinEventLog:Security]&lt;BR /&gt;
TRANSFORMS-set_new_index = set_index_new&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;transforms.conf&lt;BR /&gt;
[set_index_new]&lt;BR /&gt;
REGEX = MY.HOSTNAME.12.COM&lt;BR /&gt;
FORMAT = windows-new &lt;BR /&gt;
DEST_KEY = _MetaData:Index&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I tried with different combinations on the regex but none of them worked. Can someone tell me what could be wrong? Thanks in advance.&lt;/P&gt;

&lt;P&gt;Best.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:01:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476295#M81760</guid>
      <dc:creator>pbalbasdtt</dc:creator>
      <dc:date>2020-09-30T05:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Change index depending on host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476296#M81761</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;On which splunk instance, have you configured above props.conf and transforms.conf ? It should be on first Splunk Enterprise instance from Universal Forwarder. For example: If UF sends data to Heavy Forwarder and then it goes to Indexer then you need to configure props &amp;amp; transforms on Heavy Forwarder. If UF sends data directly to Indexer then you need to configure props &amp;amp; transforms on Indexer.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 14:29:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476296#M81761</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-04-15T14:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Change index depending on host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476297#M81762</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;Thanks for your response. I have a UF sending logs to indexers. I deployed those .conf files on indexers but it's not indexing logs on the new index, and it is using the old one.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 15:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476297#M81762</guid>
      <dc:creator>pbalbasdtt</dc:creator>
      <dc:date>2020-04-15T15:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: Change index depending on host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476298#M81763</link>
      <description>&lt;P&gt;Have you restarted splunk on Indexer after adding those props/transforms ?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 15:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476298#M81763</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-04-15T15:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change index depending on host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476299#M81764</link>
      <description>&lt;P&gt;I deployed the changes via Cluster Master, so I assume no restart on IDX is required, is that right?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 15:43:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476299#M81764</guid>
      <dc:creator>pbalbasdtt</dc:creator>
      <dc:date>2020-04-15T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Change index depending on host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476300#M81765</link>
      <description>&lt;P&gt;Yes if you deployed from CM then it will automatically take care. Additionally only new data will go into new index not existing data. If that is still not working then I'll suggest to provide some sample data (Mask sensitive data)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 15:48:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476300#M81765</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2020-04-15T15:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change index depending on host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476301#M81766</link>
      <description>&lt;P&gt;1) Your transforms does not say which field you are trying to match (SOURCE_KEY).  If you don't tell it that, then it probably is checking the entire _raw, iirc.&lt;/P&gt;

&lt;P&gt;2) If you mean to match only the character &lt;CODE&gt;.&lt;/CODE&gt;, then your regex should escape the character using &lt;CODE&gt;\.&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2020 16:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476301#M81766</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2020-04-15T16:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Change index depending on host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476302#M81767</link>
      <description>&lt;P&gt;The 2nd one works!!! Thanks a lot for your answer&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 13:45:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-index-depending-on-host/m-p/476302#M81767</guid>
      <dc:creator>pbalbasdtt</dc:creator>
      <dc:date>2020-04-16T13:45:46Z</dc:date>
    </item>
  </channel>
</rss>

