<?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: Setting the index in props.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23376#M3680</link>
    <description>&lt;P&gt;Thanks, I will play around with this solution.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Nov 2012 07:30:45 GMT</pubDate>
    <dc:creator>las</dc:creator>
    <dc:date>2012-11-06T07:30:45Z</dc:date>
    <item>
      <title>Setting the index in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23369#M3673</link>
      <description>&lt;P&gt;I have a configuration with a log root with several log files, most of these are harmless, but one file contains confidential information.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;logroot\loga.log
logroot\logb.log  
logroot\secure.log  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my inputs.conf monitors logroot.&lt;BR /&gt;&lt;BR /&gt;
I then use props.conf to set the sourcetype, but I would like to be able to route the secure.log to a different index.&lt;BR /&gt;&lt;BR /&gt;
Do I have to use a transform, and use ressources on my indexer, or could I specify this in either props og inputs.conf and do the selection on the universalForwarder?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 14:54:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23369#M3673</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2012-11-05T14:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the index in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23370#M3674</link>
      <description>&lt;P&gt;Why are you using props.conf to set sourcetype? The easiest is to do this directly in inputs.conf. Same goes for index.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 15:42:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23370#M3674</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-05T15:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the index in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23371#M3675</link>
      <description>&lt;P&gt;2 remarks :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;The Universal Forwarder cannot parse events. Any filtering has to happend at index time, therefore it has to be setup on the indexers or on a heavy forwarder. &lt;/LI&gt;
&lt;LI&gt;if you already use a filter to change the sourcetype, you can add a new transforms to change the meta fiel "index"
You will need  :  props.conf, transforms.conf
see &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Indexer/Setupmultipleindexes#Route_specific_events_to_a_different_index"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Indexer/Setupmultipleindexes#Route_specific_events_to_a_different_index&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 05 Nov 2012 15:55:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23371#M3675</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-11-05T15:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the index in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23372#M3676</link>
      <description>&lt;P&gt;An easier alternative is to define a special inputs on your specific file that will setup the destination index.&lt;BR /&gt;
A stanza that has an exact path will have precedence over one with a wilcard.&lt;/P&gt;

&lt;PRE&gt;[monitor://logroot\*.log]
sourcetype=mygenericsourcetype
index=mygenericindex

[monitor://logroot\secure.log]
sourcetype=myspecificsourcetype
index=myspecificindex
&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Nov 2012 15:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23372#M3676</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2012-11-05T15:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the index in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23373#M3677</link>
      <description>&lt;P&gt;I would add a blacklist your generic monitor.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
[monitor://logroot\*.log]&lt;BR /&gt;
sourcetype=mygenericsourcetype&lt;BR /&gt;
blacklist = secure.log$&lt;BR /&gt;
index=mygenericindex&lt;BR /&gt;
\&lt;BR /&gt;
[monitor://logroot\secure.log]&lt;BR /&gt;
sourcetype=myspecificsourcetype&lt;BR /&gt;
index=myspecificindex&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Nov 2012 16:40:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23373#M3677</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2012-11-05T16:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the index in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23374#M3678</link>
      <description>&lt;P&gt;The files in the directory has different sourcetypes, so I need to set it on a per file basis.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2012 07:27:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23374#M3678</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2012-11-06T07:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the index in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23375#M3679</link>
      <description>&lt;P&gt;Yes, that is why, I wondered if it was possible to do it earlier in the process, as it is not a per event filtering, but a per file.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2012 07:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23375#M3679</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2012-11-06T07:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the index in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23376#M3680</link>
      <description>&lt;P&gt;Thanks, I will play around with this solution.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Nov 2012 07:30:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23376#M3680</guid>
      <dc:creator>las</dc:creator>
      <dc:date>2012-11-06T07:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Setting the index in props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23377#M3681</link>
      <description>&lt;P&gt;Just FYI the generic with a blacklist and then a more specific monitor does not work in Splunk 6.  Support has said it was never officially supported but the rules were a bit lose and have been tightened in 6.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2014 14:24:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Setting-the-index-in-props-conf/m-p/23377#M3681</guid>
      <dc:creator>triest</dc:creator>
      <dc:date>2014-03-04T14:24:09Z</dc:date>
    </item>
  </channel>
</rss>

