<?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: Have forwarder duplicating data to 2 indexes. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Have-forwarder-duplicating-data-to-2-indexes/m-p/85048#M17699</link>
    <description>&lt;P&gt;2 methods :&lt;BR /&gt;
A - Use another instance of splunk monitoring the same file and specifying a different index &lt;BR /&gt;
(by example on windows you can have 1 UF and 1 LMF/HF/indexer, on linux, as many instances as you want)&lt;/P&gt;

&lt;P&gt;B - use a symlink to the files/folders and have a secondary monitor on the symlink (with a different index destination) &lt;BR /&gt;
see screenshot for the result &lt;/P&gt;

&lt;P&gt;create a symlink &lt;BR /&gt;
example : &lt;BR /&gt;
&lt;CODE&gt;ln -s feed symlink&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and define 2 inputs one on the original, the other on the symlink &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/feed] 
disabled = false 
followTail = 0 
sourcetype = one 
index=main 

[monitor:///var/log/symlink] 
disabled = false 
followTail = 0 
sourcetype = one
 # or any other sourcetype 
crcSalt=&amp;lt; SOURCE &amp;gt;
 # required to force splunk to differentiate files based on the path/filename, write SOURCE in caps (the html formatting may hide it), and remoce the space in the tag.
index=public
 # the index of your choice 
followSymlink=true 
 # to make sure that the symlink will be followed. 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 09 Oct 2012 18:45:57 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2012-10-09T18:45:57Z</dc:date>
    <item>
      <title>Have forwarder duplicating data to 2 indexes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Have-forwarder-duplicating-data-to-2-indexes/m-p/85046#M17697</link>
      <description>&lt;P&gt;For some inputs on a forwarder, I want to send the same data to the same indexer, but duplicate it in 2 indexes (they have different permissions/retention)&lt;/P&gt;

&lt;P&gt;This is sending to the main index, I want to main and public.&lt;BR /&gt;
&lt;CODE&gt;[monitor:///var/log/feed]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
sourcetype = one&lt;BR /&gt;
index=main&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 18:42:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Have-forwarder-duplicating-data-to-2-indexes/m-p/85046#M17697</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2012-10-09T18:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Have forwarder duplicating data to 2 indexes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Have-forwarder-duplicating-data-to-2-indexes/m-p/85047#M17698</link>
      <description>&lt;P&gt;I tested with multiple groups in outputs.conf but I cannot change the index and they all go to the same index.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2012 18:42:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Have-forwarder-duplicating-data-to-2-indexes/m-p/85047#M17698</guid>
      <dc:creator>mataharry</dc:creator>
      <dc:date>2012-10-09T18:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Have forwarder duplicating data to 2 indexes.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Have-forwarder-duplicating-data-to-2-indexes/m-p/85048#M17699</link>
      <description>&lt;P&gt;2 methods :&lt;BR /&gt;
A - Use another instance of splunk monitoring the same file and specifying a different index &lt;BR /&gt;
(by example on windows you can have 1 UF and 1 LMF/HF/indexer, on linux, as many instances as you want)&lt;/P&gt;

&lt;P&gt;B - use a symlink to the files/folders and have a secondary monitor on the symlink (with a different index destination) &lt;BR /&gt;
see screenshot for the result &lt;/P&gt;

&lt;P&gt;create a symlink &lt;BR /&gt;
example : &lt;BR /&gt;
&lt;CODE&gt;ln -s feed symlink&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and define 2 inputs one on the original, the other on the symlink &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///var/log/feed] 
disabled = false 
followTail = 0 
sourcetype = one 
index=main 

[monitor:///var/log/symlink] 
disabled = false 
followTail = 0 
sourcetype = one
 # or any other sourcetype 
crcSalt=&amp;lt; SOURCE &amp;gt;
 # required to force splunk to differentiate files based on the path/filename, write SOURCE in caps (the html formatting may hide it), and remoce the space in the tag.
index=public
 # the index of your choice 
followSymlink=true 
 # to make sure that the symlink will be followed. 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Oct 2012 18:45:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Have-forwarder-duplicating-data-to-2-indexes/m-p/85048#M17699</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-10-09T18:45:57Z</dc:date>
    </item>
  </channel>
</rss>

