<?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 index the same file to different indexes? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-the-same-file-to-different-indexes/m-p/11447#M591</link>
    <description>&lt;P&gt;Let us consider that you have a very common log file (/var/log/messages) that gets indexed to an index called operations.  Your environment has hundreds of machines that send this information to Splunk via a common forwarder configuration.  Now, what if I have a few machines where I want this log to be shared with another group that should not have access to the operations index.  Well, I could create a role filter for this other group and grant access to this index.  For my case, I don't want multiple filters and would like to silo my data.&lt;/P&gt;</description>
    <pubDate>Thu, 15 Apr 2010 00:21:20 GMT</pubDate>
    <dc:creator>Simeon</dc:creator>
    <dc:date>2010-04-15T00:21:20Z</dc:date>
    <item>
      <title>How can I index the same file to different indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-the-same-file-to-different-indexes/m-p/11443#M587</link>
      <description>&lt;P&gt;I have a file that I need to index twice.  Specifically, I need it sent/indexed to two different indexes.   How could I have a single file get indexed to two separate indexes?  &lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 05:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-the-same-file-to-different-indexes/m-p/11443#M587</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-04-14T05:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I index the same file to different indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-the-same-file-to-different-indexes/m-p/11444#M588</link>
      <description>&lt;P&gt;I'm interested in understanding why you would like to do this. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 05:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-the-same-file-to-different-indexes/m-p/11444#M588</guid>
      <dc:creator>hulahoop</dc:creator>
      <dc:date>2010-04-14T05:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I index the same file to different indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-the-same-file-to-different-indexes/m-p/11445#M589</link>
      <description>&lt;P&gt;You can use the combination of crcSalt and a symlink.  Consider the following example:&lt;/P&gt;

&lt;P&gt;I have two indexes, index1 and index2.
The file I want to index is called error_log and resides in /var/log/httpd/.&lt;/P&gt;

&lt;P&gt;By symlinking log_file to another location, and using crcSalt, Splunk will be able to index this file twice and send it to another index.  First, symbolically link the error_log file to another location:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt;cd /var/log/httpd/dir
&amp;gt;ln -s /var/log/httpd/error_log .
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The previous commands will create a soft link pointing to /var/log/httpd/dir/error_log.  Here is the exact configuration in inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/httpd/error_log]
index=index1
sourcetype=apache_error
crcSalt = &amp;lt;SOURCE&amp;gt;

[monitor:///var/log/httpd/dir/error_log]
index=index2
sourcetype=apache_error
crcSalt = &amp;lt;SOURCE&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Apr 2010 05:59:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-the-same-file-to-different-indexes/m-p/11445#M589</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-04-14T05:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I index the same file to different indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-the-same-file-to-different-indexes/m-p/11446#M590</link>
      <description>&lt;P&gt;There's a few use cases: apps that overlap in the data they want but are developed entirely independently; multi-tenant environments where you want different splunk groups to operate relatively independently; a case similar to summary indexing where you want sparse data in a special index, but you also want it available in a general, easily accessible index.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Apr 2010 07:25:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-the-same-file-to-different-indexes/m-p/11446#M590</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2010-04-14T07:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: How can I index the same file to different indexes?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-the-same-file-to-different-indexes/m-p/11447#M591</link>
      <description>&lt;P&gt;Let us consider that you have a very common log file (/var/log/messages) that gets indexed to an index called operations.  Your environment has hundreds of machines that send this information to Splunk via a common forwarder configuration.  Now, what if I have a few machines where I want this log to be shared with another group that should not have access to the operations index.  Well, I could create a role filter for this other group and grant access to this index.  For my case, I don't want multiple filters and would like to silo my data.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Apr 2010 00:21:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-can-I-index-the-same-file-to-different-indexes/m-p/11447#M591</guid>
      <dc:creator>Simeon</dc:creator>
      <dc:date>2010-04-15T00:21:20Z</dc:date>
    </item>
  </channel>
</rss>

