<?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: Forwarding data from Heavy forwarder to syslog server in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473922#M81387</link>
    <description>&lt;P&gt;Sorry, I was not very clear.&lt;BR /&gt;
The props and transforms allows you to selectively send sourcetypes for routing - in case you didn't want to send everything to syslog you can use the routing config to be specific about which ones you do.&lt;/P&gt;

&lt;P&gt;With a default set, everything will get routed - if you only wanted a subset, remove the default group settings, and use the props/transforms.&lt;/P&gt;

&lt;P&gt;If you want everything you should not need the props/transforms&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2020 15:57:40 GMT</pubDate>
    <dc:creator>nickhills</dc:creator>
    <dc:date>2020-02-19T15:57:40Z</dc:date>
    <item>
      <title>Forwarding data from Heavy forwarder to syslog server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473916#M81381</link>
      <description>&lt;P&gt;I setup syslog output forwarding per the Splunk docs, but am not seeing anything being sent out nor receiving it on the endpoint.&lt;/P&gt;

&lt;P&gt;Here is what I have applied on the heavyforwarder outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
 defaultGroup = indexer_group,forwarders_syslog
 useACK = true

 [tcpout:indexer_group]
 server = indexer_ip_address:indexer:port
 clientCert = xxxxxxxx
 maxQueueSize = 20MB
 sslPassword = xxxxxxxxx

 [tcpout:forwarders_syslog]
 server = syslog_ip:syslog_port
 clientCert = xxxxxxx
 maxQueueSize = 20MB
 sslPassword = xxxxxxxx
 blockOnCloning = false
 dropClonedEventsOnQueueFull = 10
 useACK = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Note :-&lt;/STRONG&gt;&lt;BR /&gt;
The configuration for forwarding the data to syslog can be found under [tcpout:forwarders_syslog]&lt;/P&gt;

&lt;P&gt;The following errors are found on splunkd.log when the heavy forwarder trying to forward the logs to syslog server&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; WARN  TcpOutputProc - Cooked connection to ip=syslog_ip:syslog_port timed out
 ERROR TcpOutputFd - Connection to host=syslog_ip:syslog_port failed
 WARN  TcpOutputFd - Connect to syslog_ip:syslog_port  failed. Connection refused
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also I do not see any connection issues when I'm trying to trouble shoot as follows :- &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;In heavy forwarder :-&lt;/STRONG&gt; &lt;BR /&gt;
Tried to telnet to the syslog server from heavyforwarder with the specified port and see that it's got conected. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;In receiving server&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;netstat -tnlp | grep rsyslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Tried the above and see that the specified port in Heavy forwarder is listening in TCP&lt;/P&gt;

&lt;P&gt;Not sure where and what else should I be checking to transfer the data whatever the heavyforwarder is currently transffering to Indexer also to a syslog server. &lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 19:40:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473916#M81381</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2020-02-18T19:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding data from Heavy forwarder to syslog server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473917#M81382</link>
      <description>&lt;P&gt;Hi pavanae,&lt;/P&gt;

&lt;P&gt;Try sending some events using &lt;CODE&gt;nc&lt;/CODE&gt; see this here &lt;A href="https://superuser.com/questions/1229415/simple-way-to-generate-syslog-over-tcp"&gt;https://superuser.com/questions/1229415/simple-way-to-generate-syslog-over-tcp&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 19:48:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473917#M81382</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2020-02-18T19:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding data from Heavy forwarder to syslog server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473918#M81383</link>
      <description>&lt;P&gt;You need a &lt;CODE&gt;[syslog:&amp;lt;target_group&amp;gt;]&lt;/CODE&gt; not a &lt;CODE&gt;[tcpout:forwarders_syslog]&lt;/CODE&gt; group.&lt;/P&gt;

&lt;P&gt;remove:&lt;BR /&gt;
 &lt;CODE&gt;,forwarders_syslog&lt;/CODE&gt; from [tcpout]&lt;/P&gt;

&lt;P&gt;add:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
defaultGroup = forwarders_syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change the last stanza to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog:forwarders_syslog]
  server = syslog_ip:syslog_port
  #the below options are not supported
  #clientCert = xxxxxxx
  #maxQueueSize = 20MB
  #sslPassword = xxxxxxxx
  #blockOnCloning = false
  #dropClonedEventsOnQueueFull = 10
  #useACK = false 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Admin/Outputsconf#Syslog_output----"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Admin/Outputsconf#Syslog_output----&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Once you have that you need to configure routing in props.conf and transforms.conf&lt;BR /&gt;
See: &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Forwarddatatothird-partysystemsd"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Forwarding/Forwarddatatothird-partysystemsd&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But quick example.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my sourcetype]
TRANSFORMS-my_sourcetype_syslog = send_to_syslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[send_to_syslog]
REGEX = .
DEST_KEY = _SYSLOG_ROUTING
FORMAT = forwarders_syslog
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Feb 2020 19:50:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473918#M81383</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-18T19:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding data from Heavy forwarder to syslog server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473919#M81384</link>
      <description>&lt;P&gt;Thank you @nickhillscpl Is it ok to specify 2 default groups as mentioned above. &lt;/P&gt;

&lt;P&gt;1 default group for tcpout and the other for syslog?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473919#M81384</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2020-02-18T20:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding data from Heavy forwarder to syslog server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473920#M81385</link>
      <description>&lt;P&gt;yes, because they are defaults for tcp (splunk2splunk) or syslog&lt;BR /&gt;
You are just configuring a default group for each type of output.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:29:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473920#M81385</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-18T20:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding data from Heavy forwarder to syslog server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473921#M81386</link>
      <description>&lt;P&gt;Thanks again &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/23295"&gt;@nickhills&lt;/a&gt;. Is it mandatory to have the props and transforms. what happens if I don't have those props and tranforms for the send_to_syslog. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:14:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473921#M81386</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2020-09-30T04:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding data from Heavy forwarder to syslog server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473922#M81387</link>
      <description>&lt;P&gt;Sorry, I was not very clear.&lt;BR /&gt;
The props and transforms allows you to selectively send sourcetypes for routing - in case you didn't want to send everything to syslog you can use the routing config to be specific about which ones you do.&lt;/P&gt;

&lt;P&gt;With a default set, everything will get routed - if you only wanted a subset, remove the default group settings, and use the props/transforms.&lt;/P&gt;

&lt;P&gt;If you want everything you should not need the props/transforms&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 15:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473922#M81387</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-02-19T15:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarding data from Heavy forwarder to syslog server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473923#M81388</link>
      <description>&lt;P&gt;Got it Thanks @nickhillscpl. Not sure what else needs to be verified I still do not see anything coming to my syslog server. Is there any way to troubleshoot the connection?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:39:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarding-data-from-Heavy-forwarder-to-syslog-server/m-p/473923#M81388</guid>
      <dc:creator>pavanae</dc:creator>
      <dc:date>2020-02-19T16:39:37Z</dc:date>
    </item>
  </channel>
</rss>

