<?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 data sent repeatedly sent via syslog output in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/data-sent-repeatedly-sent-via-syslog-output/m-p/106079#M22314</link>
    <description>&lt;P&gt;Every second or so splunk sends all the qualifying events it has see since it started plus any new events.  Note: This replication is not showing up in the index, and is reset on a restart of indexers and forwarders (our deployment system restarts both&lt;/P&gt;

&lt;P&gt;Here are my configs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;----------- forwarder inputs excerpt -----------  
#Pick up the access logs as well as the Catalina out
[monitor::///somedir/tomcat5.5-logs]
_whitelist = \.(out|txt)$
disabled = false
followTail = 0

[monitor::///somedir/tomcat6.0/logs]
_whitelist = \.(out|txt|log)$
disabled = false
followTail = 0

----------- forwarder props excerpt ----------- 
#define sourcetype for both log types
[source::.../catalina.out]
sourcetype = log4j

[source::.../catalina_log.*.txt]  
# the 5.5 and 6.0 use different extension (I just checked GRC and Native)
sourcetype = catalina_log

[source::.../catalina.*.log]
sourcetype = catalina_log

----------- server props excerpt ----------- 
#send log4j and catalina_log to named SyslogOut Transforms
[log4j]
\# … skipping lines
TRANSFORMS-routing=SyslogOut_log4j

[catalina_log]
TRANSFORMS-routing=SyslogOut_catalina_log

----------- server transforms excerpt -----------  
#send SyslogOut Transforms to the corresponding syslog outputs
[SyslogOut_log4j]
REGEX=.*
DEST_KEY=_SYSLOG_ROUTING
FORMAT=SyslogOutAccess

[SyslogOut_catalina_log]
REGEX=.*
DEST_KEY=_SYSLOG_ROUTING
FORMAT=SyslogOutEvent

----------- server output except -----------  
#send SyslogOut data via syslog Access to one host and log4j to another
[syslog]
disabled = false
indexAndForward = true
defaultGroup=SyslogOutEvent,SyslogOutAccess

[syslog:SyslogOutEvent]
type = tcp
server = MyHost02:516

[syslog:SyslogOutAccess]
type = tcp
server = MyHost01:516
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;
I used the following search to graph the issue:&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
latest=-2m@m earliest=-32m@m  index="_internal" &lt;EM&gt;syslog&lt;/EM&gt; Host* sourcetype="splunkd" _tcp_Kprocessed destIp | timechart span=1m per_minute(tcp_Kprocessed) by destIp&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Here is the resulting graph:&lt;BR /&gt;
&lt;IMG src="http://farm4.static.flickr.com/3222/5738397371_f2d327fc97_z.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:35:37 GMT</pubDate>
    <dc:creator>bmorgan</dc:creator>
    <dc:date>2020-09-28T09:35:37Z</dc:date>
    <item>
      <title>data sent repeatedly sent via syslog output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/data-sent-repeatedly-sent-via-syslog-output/m-p/106079#M22314</link>
      <description>&lt;P&gt;Every second or so splunk sends all the qualifying events it has see since it started plus any new events.  Note: This replication is not showing up in the index, and is reset on a restart of indexers and forwarders (our deployment system restarts both&lt;/P&gt;

&lt;P&gt;Here are my configs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;----------- forwarder inputs excerpt -----------  
#Pick up the access logs as well as the Catalina out
[monitor::///somedir/tomcat5.5-logs]
_whitelist = \.(out|txt)$
disabled = false
followTail = 0

[monitor::///somedir/tomcat6.0/logs]
_whitelist = \.(out|txt|log)$
disabled = false
followTail = 0

----------- forwarder props excerpt ----------- 
#define sourcetype for both log types
[source::.../catalina.out]
sourcetype = log4j

[source::.../catalina_log.*.txt]  
# the 5.5 and 6.0 use different extension (I just checked GRC and Native)
sourcetype = catalina_log

[source::.../catalina.*.log]
sourcetype = catalina_log

----------- server props excerpt ----------- 
#send log4j and catalina_log to named SyslogOut Transforms
[log4j]
\# … skipping lines
TRANSFORMS-routing=SyslogOut_log4j

[catalina_log]
TRANSFORMS-routing=SyslogOut_catalina_log

----------- server transforms excerpt -----------  
#send SyslogOut Transforms to the corresponding syslog outputs
[SyslogOut_log4j]
REGEX=.*
DEST_KEY=_SYSLOG_ROUTING
FORMAT=SyslogOutAccess

[SyslogOut_catalina_log]
REGEX=.*
DEST_KEY=_SYSLOG_ROUTING
FORMAT=SyslogOutEvent

----------- server output except -----------  
#send SyslogOut data via syslog Access to one host and log4j to another
[syslog]
disabled = false
indexAndForward = true
defaultGroup=SyslogOutEvent,SyslogOutAccess

[syslog:SyslogOutEvent]
type = tcp
server = MyHost02:516

[syslog:SyslogOutAccess]
type = tcp
server = MyHost01:516
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;
I used the following search to graph the issue:&lt;BR /&gt;
&lt;CODE&gt;&lt;BR /&gt;
latest=-2m@m earliest=-32m@m  index="_internal" &lt;EM&gt;syslog&lt;/EM&gt; Host* sourcetype="splunkd" _tcp_Kprocessed destIp | timechart span=1m per_minute(tcp_Kprocessed) by destIp&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Here is the resulting graph:&lt;BR /&gt;
&lt;IMG src="http://farm4.static.flickr.com/3222/5738397371_f2d327fc97_z.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:35:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/data-sent-repeatedly-sent-via-syslog-output/m-p/106079#M22314</guid>
      <dc:creator>bmorgan</dc:creator>
      <dc:date>2020-09-28T09:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: data sent repeatedly sent via syslog output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/data-sent-repeatedly-sent-via-syslog-output/m-p/106080#M22315</link>
      <description>&lt;P&gt;The search on metrics.log has to be more precise.&lt;BR /&gt;
When using metrics, always specify the "group", or apples and oranges may be counted together.&lt;/P&gt;

&lt;P&gt;Please try :&lt;/P&gt;

&lt;P&gt;index=_internal source=&lt;EM&gt;metrics.log group=syslog_connections | eval KBps=tcp_Bps/1024 | timechart avg(KBps) as KBps by destIp span=1h | eval MB=KBps&lt;/EM&gt;_span/1000 | fields - KBps &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:36:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/data-sent-repeatedly-sent-via-syslog-output/m-p/106080#M22315</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2020-09-28T09:36:14Z</dc:date>
    </item>
  </channel>
</rss>

