<?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 to fix my universal forwarder configurations so that Splunk only forwards the data I want to monitor to a third-party system? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339175#M62598</link>
    <description>&lt;P&gt;I have tried this and it didn't work. Moreover, the link said to add blacklist under a global tcp stanza only, I tried that and that didn't work either.&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2017 21:05:14 GMT</pubDate>
    <dc:creator>anton085</dc:creator>
    <dc:date>2017-07-31T21:05:14Z</dc:date>
    <item>
      <title>How to fix my universal forwarder configurations so that Splunk only forwards the data I want to monitor to a third-party system?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339173#M62596</link>
      <description>&lt;P&gt;I am trying to forward to a third-party system from a Universal forwarder. I have tried two approaches. In both cases I am receiving a lot of unnecessary data on the third-party end. It looks like Splunk is not only forwarding the file that I am monitoring but also internal logs as well. What can I do to fix this? I am attaching conf files for both:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Approach 1:&lt;/STRONG&gt; use props, transforms, and outputs&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;BR /&gt;
[source::/home/abc/splunk-test/test.txt]&lt;BR /&gt;
TRANSFORMS-routing=monitoring&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;BR /&gt;
[monitoring]&lt;BR /&gt;
REGEX=.&lt;BR /&gt;
DEST_KEY=_TCP_ROUTING&lt;BR /&gt;
FORMAT=monitoring_tcp&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;outputs.conf&lt;/STRONG&gt;&lt;BR /&gt;
[tcpout]&lt;BR /&gt;
defaultGroup=group_a&lt;/P&gt;

&lt;P&gt;[tcpout:group_a]&lt;BR /&gt;
disabled=true&lt;/P&gt;

&lt;P&gt;[tcpout:monitoring_tcp]&lt;BR /&gt;
sendCookedData=false&lt;BR /&gt;
server=x.x.x.x:514&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Approach 2:&lt;/STRONG&gt; use inputs.conf and outputs.conf (I deleted everything from props and transforms)&lt;BR /&gt;
&lt;STRONG&gt;inputs.conf&lt;/STRONG&gt;&lt;BR /&gt;
[default]&lt;BR /&gt;
host=abc&lt;/P&gt;

&lt;P&gt;[monitor:///home/abc/splunk-test/test.txt]&lt;BR /&gt;
_TCP_ROUTING=monitoring_tcp&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;outputs.conf&lt;/STRONG&gt;&lt;BR /&gt;
[tcpout]&lt;BR /&gt;
defaultGroup=group_a&lt;/P&gt;

&lt;P&gt;[tcpout:group_a]&lt;BR /&gt;
disabled=true&lt;/P&gt;

&lt;P&gt;[tcpout:monitoring_tcp]&lt;BR /&gt;
sendCookedData=false&lt;BR /&gt;
server=x.x.x.x:514&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339173#M62596</guid>
      <dc:creator>anton085</dc:creator>
      <dc:date>2020-09-29T15:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix my universal forwarder configurations so that Splunk only forwards the data I want to monitor to a third-party system?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339174#M62597</link>
      <description>&lt;P&gt;[tcpout:monitoring_tcp]&lt;BR /&gt;
sendCookedData=false&lt;BR /&gt;
server=x.x.x.x:514&lt;BR /&gt;
forwardedindex.0.blacklist = (_internal|_audit)&lt;/P&gt;

&lt;P&gt;please go through below link for more details,&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.2/Forwarding/Routeandfilterdatad" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.6.2/Forwarding/Routeandfilterdatad&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:10:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339174#M62597</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix my universal forwarder configurations so that Splunk only forwards the data I want to monitor to a third-party system?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339175#M62598</link>
      <description>&lt;P&gt;I have tried this and it didn't work. Moreover, the link said to add blacklist under a global tcp stanza only, I tried that and that didn't work either.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 21:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339175#M62598</guid>
      <dc:creator>anton085</dc:creator>
      <dc:date>2017-07-31T21:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix my universal forwarder configurations so that Splunk only forwards the data I want to monitor to a third-party system?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339176#M62599</link>
      <description>&lt;P&gt;actually added the following lines in outputs.conf but to no avail:&lt;/P&gt;

&lt;P&gt;[tcpout]&lt;BR /&gt;
forwardedindex.0.blacklist = (_internal|_audit|_telemetry|_introspection)&lt;BR /&gt;
forwardedindex.2.blacklist = (_internal|_audit|_telemetry|_introspection)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:07:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339176#M62599</guid>
      <dc:creator>anton085</dc:creator>
      <dc:date>2020-09-29T15:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix my universal forwarder configurations so that Splunk only forwards the data I want to monitor to a third-party system?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339177#M62600</link>
      <description>&lt;P&gt;I have figured out two ways to block internal logs from being forwarded:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;inputs.conf&lt;BR /&gt;
use disabled=true for inputs that have to be blocked. For me, I blocked these ones, which had _TCP_ROUTING=* set in the default inputs.conf files inside $SPLUNK_HOME/etc/system/default and $SPLUNK_HOME/etc/apps/SplunkUniversalForwarder/default&lt;/P&gt;

&lt;P&gt;[monitor://$SPLUNK_HOME/var/log/splunk]&lt;BR /&gt;
disabled=true&lt;BR /&gt;
[monitor://$SPLUNK_HOME/var/log/splunk]&lt;BR /&gt;
disabled=true&lt;BR /&gt;
[monitor://$SPLUNK_HOME/var/log/splunk/splunkd.log]&lt;BR /&gt;
disabled=true&lt;BR /&gt;
[monitor://$SPLUNK_HOM/var/log/splunk/metrics.log]&lt;BR /&gt;
disabled=true&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;outputs.conf&lt;BR /&gt;
use the blacklist. According to the documentation, a whitelist can override a blacklist when both have the same number, and the filtering order is based on increasing number. Also, the filtering will only work under the [tcpout] stanza.&lt;BR /&gt;
So, here, the whitelist would win&lt;/P&gt;

&lt;P&gt;forwardedindex.0.whitelist&lt;BR /&gt;
forwardedindex.0.blacklist&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;And here, the blacklist would win&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;forwardedindex.0.whitelist
forwardedindex.1.blacklist
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From the default conf files, I figured out that there are 3 lists going from 0 to 2. So I added the following snippet in $SPLUNK_HOME/etc/system/local/outputs.conf, and it worked.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
forwardedindex.3.blacklist = (_internal|_audit|_telemetry|_introspection)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:08:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339177#M62600</guid>
      <dc:creator>anton085</dc:creator>
      <dc:date>2020-09-29T15:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix my universal forwarder configurations so that Splunk only forwards the data I want to monitor to a third-party system?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339178#M62601</link>
      <description>&lt;P&gt;I tried method 1, but it doesn't seem to work.&lt;BR /&gt;
I put &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://$SPLUNK_HOME/var/log/splunk/metrics.log]
disabled=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;into $SPLUNK_HOMe/etc/system/local/inputs.conf&lt;/P&gt;

&lt;P&gt;Did you put your inputs.conf somewhere else?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2019 12:59:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/339178#M62601</guid>
      <dc:creator>kutzi</dc:creator>
      <dc:date>2019-04-23T12:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to fix my universal forwarder configurations so that Splunk only forwards the data I want to monitor to a third-</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/649869#M110442</link>
      <description>&lt;P&gt;The default setting for the inputs.conf for the UF is a wildcard.&amp;nbsp; Change this to the default group in the local inputs.conf to override the setting.&lt;/P&gt;&lt;P&gt;Pulled from the default inputs.conf for the UF:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[monitor://$SPLUNK_HOME\var\log\splunk\splunkd.log]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_TCP_ROUTING = *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index = _internal&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[monitor://$SPLUNK_HOME\var\log\splunk\metrics.log]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_TCP_ROUTING = *&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index = _internal&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Add it in the local inputs.conf&amp;nbsp; and change it to what ever the default group is on the outputs.conf, based on what was put in the thread appears to be group_a:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[monitor://$SPLUNK_HOME\var\log\splunk\splunkd.log]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_TCP_ROUTING = group_a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index = _internal&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[monitor://$SPLUNK_HOME\var\log\splunk\metrics.log]&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;_TCP_ROUTING = group_a&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index = _internal&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This should eliminate the _internal logs from being forwarded to the 3rd Party system.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 16:05:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-fix-my-universal-forwarder-configurations-so-that-Splunk/m-p/649869#M110442</guid>
      <dc:creator>Kasee</dc:creator>
      <dc:date>2023-07-10T16:05:43Z</dc:date>
    </item>
  </channel>
</rss>

