<?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 do I edit my single-machine deployments outputs.conf to send out data for only 1 index? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259238#M49769</link>
    <description>&lt;P&gt;What's your input on the heavy forwarder in question?&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2015 18:42:48 GMT</pubDate>
    <dc:creator>stmyers7941</dc:creator>
    <dc:date>2015-12-01T18:42:48Z</dc:date>
    <item>
      <title>How do I edit my single-machine deployments outputs.conf to send out data for only 1 index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259233#M49764</link>
      <description>&lt;P&gt;Hi everyone, &lt;/P&gt;

&lt;P&gt;I'm trying to use splunk as heavy forwarder to send out only 1 index, but it doesn't work. Could someone please help me? I think there is something wrong in the outputs.conf.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
deafultGroup = nothing

[tcpout:alerts]
server = 10.28.100.121:9998
indexAndForward = 1

[tcpout:alerts]
indexAndForward = 1
#Forward data for the "alerts" index
forwardedindex.0.whitelist = alerts
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[alerts]
REGEX = .
DEST_KEY=_TCP_ROUTING
FORMAT=alerts
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[index::alerts]
TRANSFORMS-routing = alerts
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks, &lt;BR /&gt;
Federica&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 15:50:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259233#M49764</guid>
      <dc:creator>Federica_92</dc:creator>
      <dc:date>2015-12-01T15:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my single-machine deployments outputs.conf to send out data for only 1 index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259234#M49765</link>
      <description>&lt;P&gt;I believe you need a single stanza for  [tcpout:alerts] with all the settings underneath it. With 2 stanzas, It's going to use the latest and ignore the former.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
 deafultGroup = nothing
[tcpout:alerts]
server = 10.28.100.121:9998
indexAndForward = 1
#Forward data for the "alerts" index
forwardedindex.0.whitelist = alerts
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Dec 2015 15:56:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259234#M49765</guid>
      <dc:creator>stmyers7941</dc:creator>
      <dc:date>2015-12-01T15:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my single-machine deployments outputs.conf to send out data for only 1 index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259235#M49766</link>
      <description>&lt;P&gt;No, I already tried, doesn't filter the data. It sends everything.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:12:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259235#M49766</guid>
      <dc:creator>Federica_92</dc:creator>
      <dc:date>2015-12-01T16:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my single-machine deployments outputs.conf to send out data for only 1 index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259236#M49767</link>
      <description>&lt;P&gt;Have you tried Selective Indexing?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#
# Perform selective indexing and forwarding
#
# With a heavy forwarder only, you can index and store data locally, as well as
# forward the data onwards to a receiving indexer. There are two ways to do
# this:

# 1. In outputs.conf:
[tcpout]
defaultGroup = indexers

[indexAndForward]
index=true
selectiveIndexing=true

[tcpout:indexers]
server = 10.1.1.197:9997, 10.1.1.200:9997

# 2. In inputs.conf, Add _INDEX_AND_FORWARD_ROUTING for any data that you want
#    index locally, and
_TCP_ROUTING=&amp;lt;target_group&amp;gt; for data to be forwarded.

[monitor:///var/log/messages/]
_INDEX_AND_FORWARD_ROUTING=local

[monitor:///var/log/httpd/]
_TCP_ROUTING=indexers
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259236#M49767</guid>
      <dc:creator>stmyers7941</dc:creator>
      <dc:date>2015-12-01T16:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my single-machine deployments outputs.conf to send out data for only 1 index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259237#M49768</link>
      <description>&lt;P&gt;I can't monitor, because the file aren't stored anywhere, I need to send out data that splunk is producing and indexing. The only way to access directly to the data, it's to access to the kv store&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 17:07:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259237#M49768</guid>
      <dc:creator>Federica_92</dc:creator>
      <dc:date>2015-12-01T17:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my single-machine deployments outputs.conf to send out data for only 1 index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259238#M49769</link>
      <description>&lt;P&gt;What's your input on the heavy forwarder in question?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 18:42:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259238#M49769</guid>
      <dc:creator>stmyers7941</dc:creator>
      <dc:date>2015-12-01T18:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my single-machine deployments outputs.conf to send out data for only 1 index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259239#M49770</link>
      <description>&lt;P&gt;First, your &lt;CODE&gt;outputs.conf&lt;/CODE&gt; is wrong. It has misspellings and as has been pointed out, you have duplicate stanzas. Plus, most of the settings &lt;EM&gt;must&lt;/EM&gt; appear in the &lt;CODE&gt;tcpout&lt;/CODE&gt; stanza at the global level.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
defaultGroup = alerts
indexAndForward = true
forwardedindex.0.whitelist = alerts

[indexAndForward]
index = true
selectiveIndexing = false

 [tcpout:alerts]
server = 10.28.100.121:9998
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Your props.conf has no effect, because there is no such stanza as &lt;CODE&gt;[index::xyz]&lt;/CODE&gt;. Therefore, your &lt;CODE&gt;transforms.conf&lt;/CODE&gt; was never invoked, which is just as well because the regular expression in the REGEX would not have filtered anything. Just remove the props.conf and transforms.conf entries; you don't need them.&lt;/P&gt;

&lt;P&gt;I am not sure that the whitelist is going to work. If it does not, then replace it with these two lines instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;forwardedindex.0.blacklist = *
forwardedindex.1.whitelist = alerts
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the future, you might want to run&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunk btool check
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;from the command line, which may identify syntax errors in your configuration files. btool can't catch everything, but it can help.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 00:24:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259239#M49770</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2015-12-02T00:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my single-machine deployments outputs.conf to send out data for only 1 index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259240#M49771</link>
      <description>&lt;P&gt;I tried, with both, whitelist only and whitelist and blacklist. &lt;BR /&gt;
I got the same issue as before, the traffic is being sent, but not filtered...&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 09:40:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259240#M49771</guid>
      <dc:creator>Federica_92</dc:creator>
      <dc:date>2015-12-02T09:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I edit my single-machine deployments outputs.conf to send out data for only 1 index?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259241#M49772</link>
      <description>&lt;P&gt;I have an alert manager ( the app) that is executing a script, whenever an alerts is being triggered. At that stage it produce some data, using the rest API that are saved on the kv stores&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2015 10:10:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-edit-my-single-machine-deployments-outputs-conf-to-send/m-p/259241#M49772</guid>
      <dc:creator>Federica_92</dc:creator>
      <dc:date>2015-12-02T10:10:01Z</dc:date>
    </item>
  </channel>
</rss>

