<?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: Configure Splunk Universal Forwarder with TCP input to send data with HTTP output to HEC filtering internal logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578522#M102149</link>
    <description>&lt;P&gt;Transforms don't work on universal forwarders.&amp;nbsp; You'll need a heavy forwarder for that.&lt;/P&gt;&lt;P&gt;There's an easier answer, however.&amp;nbsp; Just disable the monitoring of internal logs.&amp;nbsp; Add these lines to /opt/splunkforwarder/etc/apps/nointernallogs/local/inputs.conf (you'll need to create the directories and file):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///opt/splunk/etc/splunk.version]
disabled = true

[monitor:///opt/splunk/var/log/introspection]
disabled = true

[monitor:///opt/splunk/var/log/splunk]
disabled = true

[monitor:///opt/splunk/var/log/splunk/license_usage_summary.log]
disabled = true

[monitor:///opt/splunk/var/log/splunk/splunk_instrumentation_cloud.log*]
disabled = true

[monitor:///opt/splunk/var/log/watchdog/watchdog.log*]
disabled = true&lt;/LI-CODE&gt;&lt;P&gt;Then restart the forwarder.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 18:49:28 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-12-15T18:49:28Z</dc:date>
    <item>
      <title>Configure Splunk Universal Forwarder with TCP input to send data with HTTP output to HEC filtering internal logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578480#M102138</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Due to a specific requirement we have to install a Splunk Universal Forwarder acting as "intermediate forwarder".&lt;/P&gt;&lt;P&gt;Basically it will receive data via TCP (to leverage persistent queue), and it has to forward them in output in HTTP.&lt;/P&gt;&lt;P&gt;Forwarding data in HTTP is possible since Splunk Universal Forwarder 8.x:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Forwarder/8.2.3.1/Forwarder/Configureforwardingwithoutputs.conf#Configure_the_universal_forwarder_to_send_data_over_HTTP" target="_blank"&gt;https://docs.splunk.com/Documentation/Forwarder/8.2.3.1/Forwarder/Configureforwardingwithoutputs.conf#Configure_the_universal_forwarder_to_send_data_over_HTTP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here the set-up:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;# inputs.conf
[tcp://9997]
persistentQueueSize=1000MB
connection_host=none
disabled=false&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;# outputs.conf
#Example from Splunk
[httpout]
httpEventCollectorToken = eb514d08-d2bd-4e50-a10b-f71ed9922ea0
uri = https://10.222.22.122:8088&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What we also want to achieve is to forward only data received via TCP, and to do not forward the Splunk UF internal logs. I didn't found a sort of _HTTP_ROUTING setting (like for example _TCP_ROUTING) to be put in inputs.conf&lt;/P&gt;&lt;P&gt;Therefore listing all the Splunk UF inputs with that command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/opt/splunkforwarder/bin/splunk btool inputs list --debug&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking about this configuration:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#props.conf
[source::/opt/splunkforwarder/...]
force_local_processing = true
TRANSFORMS-null = setnull

#transforms.conf
[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think it is going to work?&lt;/P&gt;&lt;P&gt;Maybe another option could be tag TCP inputs host based on DNS or IP, and then move to nullQueue all the logs produced by the Splunk UF:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#inputs
[tcp://9997]
persistentQueueSize=1000MB
connection_host=dns
disabled=false

#props.conf
[host::mysplunkUFhostname]
force_local_processing = true
TRANSFORMS-null = setnull

#transforms.conf
[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you see any other possible configuration?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Edoardo&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 14:09:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578480#M102138</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2021-12-15T14:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Splunk Universal Forwarder with TCP input to send data with HTTP output to HEC filtering internal logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578522#M102149</link>
      <description>&lt;P&gt;Transforms don't work on universal forwarders.&amp;nbsp; You'll need a heavy forwarder for that.&lt;/P&gt;&lt;P&gt;There's an easier answer, however.&amp;nbsp; Just disable the monitoring of internal logs.&amp;nbsp; Add these lines to /opt/splunkforwarder/etc/apps/nointernallogs/local/inputs.conf (you'll need to create the directories and file):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor:///opt/splunk/etc/splunk.version]
disabled = true

[monitor:///opt/splunk/var/log/introspection]
disabled = true

[monitor:///opt/splunk/var/log/splunk]
disabled = true

[monitor:///opt/splunk/var/log/splunk/license_usage_summary.log]
disabled = true

[monitor:///opt/splunk/var/log/splunk/splunk_instrumentation_cloud.log*]
disabled = true

[monitor:///opt/splunk/var/log/watchdog/watchdog.log*]
disabled = true&lt;/LI-CODE&gt;&lt;P&gt;Then restart the forwarder.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 18:49:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578522#M102149</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-12-15T18:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Splunk Universal Forwarder with TCP input to send data with HTTP output to HEC filtering internal logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578546#M102157</link>
      <description>&lt;P&gt;Why wouldn't you want the internal logs in the first place? They can be very helpful in troubleshooting (and are used in forwarder monitoring if I remember correctly). And they don't eat your license.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 20:58:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578546#M102157</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-12-15T20:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Splunk Universal Forwarder with TCP input to send data with HTTP output to HEC filtering internal logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578607#M102160</link>
      <description>&lt;P&gt;Because this Splunk UF will receive specific data and have to forward only them out in HTTP&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 09:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578607#M102160</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2021-12-16T09:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Splunk Universal Forwarder with TCP input to send data with HTTP output to HEC filtering internal logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578609#M102161</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;:Thanks for your feedback, initially I though about this solution but wanted to have something "more robust" that does not depend from manual instruct which are the inputs to exclude.&lt;/P&gt;&lt;P&gt;By the way you are right, the transforms.conf does not apply on the UF, I'll try with your suggestion.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 09:48:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578609#M102161</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2021-12-16T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Splunk Universal Forwarder with TCP input to send data with HTTP output to HEC filtering internal logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578615#M102162</link>
      <description>Still, how you are planned to debug your input etc. issues w/o internal logs?</description>
      <pubDate>Thu, 16 Dec 2021 09:56:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578615#M102162</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-12-16T09:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Splunk Universal Forwarder with TCP input to send data with HTTP output to HEC filtering internal logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578656#M102164</link>
      <description>&lt;P&gt;Unfortunately old stile, less/tail etc...&lt;/P&gt;&lt;P&gt;Not the best way but currently the only solution as HTTP output does not allow to split the output, it is all or nothing&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 16:15:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578656#M102164</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2021-12-16T16:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Splunk Universal Forwarder with TCP input to send data with HTTP output to HEC filtering internal logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578669#M102165</link>
      <description>&lt;P&gt;What do you mean by "split the output"? You can normally forward events received from another UF and have them indexed separarely from local internal logs. You can do local log ingestion as well. I have many such setups - for example when a customer has a site from which he doesn't have direct visibility to splunk infrastructure due to network segmentation and filtering issues. We use intermediate forwarders and everything runs smoothly.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 18:45:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Configure-Splunk-Universal-Forwarder-with-TCP-input-to-send-data/m-p/578669#M102165</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-12-16T18:45:47Z</dc:date>
    </item>
  </channel>
</rss>

