<?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 with transforms.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/index-routing-with-transforms-conf/m-p/158904#M32256</link>
    <description>&lt;P&gt;I was picking my brain trying to figure out how this worked. Is it because every event goes through every transform? Then the last transform it goes through is where the event will end up?&lt;/P&gt;</description>
    <pubDate>Fri, 09 May 2014 17:52:53 GMT</pubDate>
    <dc:creator>jedatt01</dc:creator>
    <dc:date>2014-05-09T17:52:53Z</dc:date>
    <item>
      <title>index routing with transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-routing-with-transforms-conf/m-p/158901#M32253</link>
      <description>&lt;P&gt;I have a single xml source that I need to go multiple indexes. To complicate things, I need multiple transforms to make sure all events get to the appropriate index. Here are my requirements:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;If any events contains the string &lt;CODE&gt;&amp;lt;LogEventTypeCode&amp;gt;SEC_EVENT&amp;lt;/LogEventTypeCode&amp;gt;&lt;/CODE&gt; it needs to be routed to an index called Security&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;All other events that do not contain &lt;CODE&gt;&amp;lt;LogEventTypeCode&amp;gt;SEC_EVENT&amp;lt;/LogEventTypeCode&amp;gt;&lt;/CODE&gt; need to be routed to appropriate index based on another field &lt;CODE&gt;&amp;lt;BusinessDomainId&amp;gt;"businessdomain"&amp;lt;/BusinessDomainId&amp;gt;&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Requirement #2 already works, and what i'm seeing that requirement #1 only works if it has value for &lt;CODE&gt;&amp;lt;BusinessDomainId&amp;gt;"businessdomain"&amp;lt;/BusinessDomainId&amp;gt;&lt;/CODE&gt; that I do not have an index created for.&lt;/P&gt;

&lt;P&gt;Props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mq]
BREAK_ONLY_BEFORE = \&amp;lt;ELLogInputMessage&amp;gt;
KV_MODE=XML
SHOULD_LINEMERGE = true
MAX_EVENTS = 50000
TIME_PREFIX = &amp;lt;LogEventDateTime&amp;gt;
pulldown_type = 1
TRANSFORMS-route = Security, BusinessDomainId
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Security]
SOURCE_KEY = _raw
DEST_KEY = _MetaData:Index
REGEX=&amp;lt;LogEventTypeCode&amp;gt;PI_EVENT&amp;lt;/LogEventTypeCode&amp;gt;
FORMAT=Security

[BusinessDomainId]
SOURCE_KEY = _raw
DEST_KEY =_MetaData:Index
REGEX=(?m)\&amp;lt;BusinessDomainId\&amp;gt;(BusinessDomainId1|BusinessDomainId2|BusinessDomainId3)\&amp;lt;/BusinessDomainId\&amp;gt;
FORMAT=$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sample Event&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;ELLogInputMessage&amp;gt; 
        &amp;lt;Header&amp;gt; 
            &amp;lt;LogEventTypeCode&amp;gt;PI_EVENT&amp;lt;/LogEventTypeCode&amp;gt; 
            &amp;lt;LogSeverityCode&amp;gt;CRITICAL&amp;lt;/LogSeverityCode&amp;gt; 
            &amp;lt;LogEventDateTime&amp;gt;2014-05-06T23:19:59.9999999-05:00&amp;lt;/LogEventDateTime&amp;gt; 
        &amp;lt;/Header&amp;gt; 
        &amp;lt;SourceInformation&amp;gt; 
            &amp;lt;EAPMId&amp;gt;3&amp;lt;/EAPMId&amp;gt; 
            &amp;lt;HostMachineName&amp;gt;HostMachineName3&amp;lt;/HostMachineName&amp;gt; 
            &amp;lt;HostEnvironmentName&amp;gt;HostEnvironmentName3&amp;lt;/HostEnvironmentName&amp;gt; 
            &amp;lt;ComponentId&amp;gt;ComponentId3&amp;lt;/ComponentId&amp;gt; 
            &amp;lt;ComponentName&amp;gt;ComponentName3&amp;lt;/ComponentName&amp;gt; 
            &amp;lt;ApplicationEventCorrelationId&amp;gt;ApplicationEventCorrelationId3&amp;lt;/ApplicationEventCorrelationId&amp;gt; 
            &amp;lt;UserId&amp;gt;UserId33&amp;lt;/UserId&amp;gt; 
            &amp;lt;UserSrc&amp;gt;UserSrc33&amp;lt;/UserSrc&amp;gt; 
            &amp;lt;BusinessDomainId&amp;gt;BusinessDomainId33&amp;lt;/BusinessDomainId&amp;gt; 
            &amp;lt;BusinessDomainName&amp;gt;BusinessDomainName33&amp;lt;/BusinessDomainName&amp;gt; 
        &amp;lt;/SourceInformation&amp;gt; 
        &amp;lt;DataAccessInformation&amp;gt; 
            &amp;lt;DataCompId&amp;gt;DataCompId33&amp;lt;/DataCompId&amp;gt; 
            &amp;lt;TypeOfAccess&amp;gt;VIEW&amp;lt;/TypeOfAccess&amp;gt; 
            &amp;lt;SubjectOfInterest&amp;gt; 
                &amp;lt;SubjectId&amp;gt;SubjectId32&amp;lt;/SubjectId&amp;gt; 
                &amp;lt;SubjectName&amp;gt;SubjectName32&amp;lt;/SubjectName&amp;gt; 
                &amp;lt;SubjectDomainName&amp;gt;SubjectDomainName32&amp;lt;/SubjectDomainName&amp;gt; 
            &amp;lt;/SubjectOfInterest&amp;gt; 
            &amp;lt;AccessDateTime&amp;gt;2014-05-06T23:19:59.9999999-05:00&amp;lt;/AccessDateTime&amp;gt; 
        &amp;lt;/DataAccessInformation&amp;gt; 
        &amp;lt;DetailedLogInformation&amp;gt;anyType&amp;lt;/DetailedLogInformation&amp;gt;
    &amp;lt;/ELLogInputMessage&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 May 2014 15:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-routing-with-transforms-conf/m-p/158901#M32253</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2014-05-09T15:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: index routing with transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-routing-with-transforms-conf/m-p/158902#M32254</link>
      <description>&lt;P&gt;I had a thought, in my regex&lt;/P&gt;

&lt;P&gt;REGEX=(?m)&amp;lt;BusinessDomainId&amp;gt;(BusinessDomainId1|BusinessDomainId2|BusinessDomainId3)&amp;lt;/BusinessDomainId&amp;gt;&lt;/P&gt;

&lt;P&gt;is there a way to add a condition for it not to match if it sees the string SEC_EVENT in the same event?&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 15:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-routing-with-transforms-conf/m-p/158902#M32254</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2014-05-09T15:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: index routing with transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-routing-with-transforms-conf/m-p/158903#M32255</link>
      <description>&lt;P&gt;What if you put the transforms in a different order?&lt;/P&gt;

&lt;P&gt;TRANSFORMS-route =BusinessDomainId, Security&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 16:58:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-routing-with-transforms-conf/m-p/158903#M32255</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-09T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: index routing with transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-routing-with-transforms-conf/m-p/158904#M32256</link>
      <description>&lt;P&gt;I was picking my brain trying to figure out how this worked. Is it because every event goes through every transform? Then the last transform it goes through is where the event will end up?&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 17:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-routing-with-transforms-conf/m-p/158904#M32256</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2014-05-09T17:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: index routing with transforms.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/index-routing-with-transforms-conf/m-p/158905#M32257</link>
      <description>&lt;P&gt;Yes, I believe that is what is happening here!&lt;/P&gt;</description>
      <pubDate>Fri, 09 May 2014 19:05:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/index-routing-with-transforms-conf/m-p/158905#M32257</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-05-09T19:05:43Z</dc:date>
    </item>
  </channel>
</rss>

