<?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 Index all but one input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Index-all-but-one-input/m-p/354520#M64832</link>
    <description>&lt;P&gt;Guys-&lt;/P&gt;

&lt;P&gt;I'm facing an (apparantely) challenging task:&lt;BR /&gt;
I have a standalon splunk test instance which serves as a first point of ingestion for new inputs- however, what i want to achieve is the following:&lt;BR /&gt;
As this instance runs on a windows server i want to have the configured os inputs (eventlog, perfmon) to be forwarded to our production instance and keep the rest local indexed.&lt;/P&gt;

&lt;P&gt;What I have tried so far:&lt;/P&gt;

&lt;P&gt;Easiest approach from my pov:&lt;BR /&gt;
Created an outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:fwd_to_prod]
server = t800.skynet.net:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And a referring input in inputs.conf as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Application]
_TCP_ROUTING = fwd_to_prod
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result: EVERYTHING is going to be forwarded to my production instance, including all internal stuff&lt;/P&gt;

&lt;P&gt;After some research i tried it with the more complicated way, using a transforms to do so:&lt;BR /&gt;
I had the same outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:fwd_to_prod]
server = t800.skynet.net:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Added the following transforms stanza in transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#forward win events to prod splunk
[forward_prod]
DEST_KEY = _TCP_ROUTING
FORMAT = fwd_to_prod
REGEX = .
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then i referred to my transforms in my props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Application]
TRANSFORMS-App = forward_prod
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result: EVERYTHING is going to be forwarded to my production instance, including all internal stuff&lt;/P&gt;

&lt;P&gt;Its weird somehow - &lt;BR /&gt;
Yes i did read the docs, and yes, i'm aware that forwardandIndex and selectiveIndex is a way but it the docs all refer to the other way round, indexing one type and forward everything else! I don't want to set "_INDEX_AND_FORWARD_ROUTING" on all my inputs expect the windows one as you might understand. &lt;/P&gt;

&lt;P&gt;I even tried to add a dummy tcp output group as default group in my outputs.conf with no effect - adding the "localhost" as the default target group resulted in no forwarding or indexing at all.&lt;/P&gt;

&lt;P&gt;Any help is appreciated&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 13:13:38 GMT</pubDate>
    <dc:creator>claudio_manig</dc:creator>
    <dc:date>2020-09-29T13:13:38Z</dc:date>
    <item>
      <title>Index all but one input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-all-but-one-input/m-p/354520#M64832</link>
      <description>&lt;P&gt;Guys-&lt;/P&gt;

&lt;P&gt;I'm facing an (apparantely) challenging task:&lt;BR /&gt;
I have a standalon splunk test instance which serves as a first point of ingestion for new inputs- however, what i want to achieve is the following:&lt;BR /&gt;
As this instance runs on a windows server i want to have the configured os inputs (eventlog, perfmon) to be forwarded to our production instance and keep the rest local indexed.&lt;/P&gt;

&lt;P&gt;What I have tried so far:&lt;/P&gt;

&lt;P&gt;Easiest approach from my pov:&lt;BR /&gt;
Created an outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:fwd_to_prod]
server = t800.skynet.net:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And a referring input in inputs.conf as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Application]
_TCP_ROUTING = fwd_to_prod
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result: EVERYTHING is going to be forwarded to my production instance, including all internal stuff&lt;/P&gt;

&lt;P&gt;After some research i tried it with the more complicated way, using a transforms to do so:&lt;BR /&gt;
I had the same outputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:fwd_to_prod]
server = t800.skynet.net:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Added the following transforms stanza in transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#forward win events to prod splunk
[forward_prod]
DEST_KEY = _TCP_ROUTING
FORMAT = fwd_to_prod
REGEX = .
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then i referred to my transforms in my props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Application]
TRANSFORMS-App = forward_prod
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Result: EVERYTHING is going to be forwarded to my production instance, including all internal stuff&lt;/P&gt;

&lt;P&gt;Its weird somehow - &lt;BR /&gt;
Yes i did read the docs, and yes, i'm aware that forwardandIndex and selectiveIndex is a way but it the docs all refer to the other way round, indexing one type and forward everything else! I don't want to set "_INDEX_AND_FORWARD_ROUTING" on all my inputs expect the windows one as you might understand. &lt;/P&gt;

&lt;P&gt;I even tried to add a dummy tcp output group as default group in my outputs.conf with no effect - adding the "localhost" as the default target group resulted in no forwarding or indexing at all.&lt;/P&gt;

&lt;P&gt;Any help is appreciated&lt;/P&gt;

&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:13:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-all-but-one-input/m-p/354520#M64832</guid>
      <dc:creator>claudio_manig</dc:creator>
      <dc:date>2020-09-29T13:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Index all but one input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-all-but-one-input/m-p/354521#M64833</link>
      <description>&lt;P&gt;Something like this should work&lt;/P&gt;

&lt;P&gt;etc/system/local/outputs.conf (configure selective indexing)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[indexAndForward]
index=true
selectiveIndexing=true 

[tcpout:fwd_to_prod]
server = yourIndexer:9997
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;etc/system/local/inputs.conf (configure default behaviour as local indexing for all data inputs)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
_INDEX_AND_FORWARD_ROUTING = MySecKey
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Add the _TCP_ROUTING attribute to the stanzas of each input that you want to forward. E.g.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Application]
_TCP_ROUTING=fwd_to_prod
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:13:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-all-but-one-input/m-p/354521#M64833</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T13:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Index all but one input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Index-all-but-one-input/m-p/354522#M64834</link>
      <description>&lt;P&gt;Oh I see i missed the [default] option in inputs.conf to make it global - worked like a charm, thanks a lot!&lt;BR /&gt;
Can you do me another favour and use my first hostname on your answer  - thx&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2017 14:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Index-all-but-one-input/m-p/354522#M64834</guid>
      <dc:creator>claudio_manig</dc:creator>
      <dc:date>2017-03-14T14:45:18Z</dc:date>
    </item>
  </channel>
</rss>

