<?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 How to split events from the same log into different indexes based on content? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-events-from-the-same-log-into-different-indexes/m-p/197486#M39233</link>
    <description>&lt;P&gt;I have logs that contains different customer IDs. I am intending to split different events from this log into different Splunk indexes based on the customer ID.&lt;/P&gt;

&lt;P&gt;There are hundreds of customer IDs, with new ones added frequently.&lt;/P&gt;

&lt;P&gt;I'm thinking of creating a lookup with customer ID and index to achieve this. I know I can use props and transforms to route events based on a regex, but is this possible to include a lookup here too?&lt;/P&gt;

&lt;P&gt;It would also be good if I could set a default index should the lookup fail.&lt;/P&gt;

&lt;P&gt;Can anyone give any advice on how they have (or would) approach and execute something like this. &lt;/P&gt;</description>
    <pubDate>Thu, 22 Jan 2015 15:54:46 GMT</pubDate>
    <dc:creator>himynamesdave</dc:creator>
    <dc:date>2015-01-22T15:54:46Z</dc:date>
    <item>
      <title>How to split events from the same log into different indexes based on content?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-events-from-the-same-log-into-different-indexes/m-p/197486#M39233</link>
      <description>&lt;P&gt;I have logs that contains different customer IDs. I am intending to split different events from this log into different Splunk indexes based on the customer ID.&lt;/P&gt;

&lt;P&gt;There are hundreds of customer IDs, with new ones added frequently.&lt;/P&gt;

&lt;P&gt;I'm thinking of creating a lookup with customer ID and index to achieve this. I know I can use props and transforms to route events based on a regex, but is this possible to include a lookup here too?&lt;/P&gt;

&lt;P&gt;It would also be good if I could set a default index should the lookup fail.&lt;/P&gt;

&lt;P&gt;Can anyone give any advice on how they have (or would) approach and execute something like this. &lt;/P&gt;</description>
      <pubDate>Thu, 22 Jan 2015 15:54:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-events-from-the-same-log-into-different-indexes/m-p/197486#M39233</guid>
      <dc:creator>himynamesdave</dc:creator>
      <dc:date>2015-01-22T15:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to split events from the same log into different indexes based on content?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-events-from-the-same-log-into-different-indexes/m-p/197487#M39234</link>
      <description>&lt;P&gt;You can't do lookups at index time - they are only at search time.&lt;/P&gt;

&lt;P&gt;You could probably, with some tweaking, index into a temporary index, then use a search with a lookup and the collect command, to re-index into new indexes.&lt;/P&gt;

&lt;P&gt;You could certainly set up a big ORed regex to sort data out in Splunk... but it is probably easier to split the data somehow before indexing via some other tool/script.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2015 11:56:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-events-from-the-same-log-into-different-indexes/m-p/197487#M39234</guid>
      <dc:creator>Jason</dc:creator>
      <dc:date>2015-01-23T11:56:24Z</dc:date>
    </item>
  </channel>
</rss>

