<?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: Why are we seeing duplicate headers? (host and timestamp) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-seeing-duplicate-headers-host-and-timestamp/m-p/252696#M48607</link>
    <description>&lt;P&gt;Can you give us some information, ie, what is the configuration you are using to forward your data, and what kind of system is receiving it?&lt;/P&gt;</description>
    <pubDate>Sat, 30 Jan 2016 16:48:31 GMT</pubDate>
    <dc:creator>Jeremiah</dc:creator>
    <dc:date>2016-01-30T16:48:31Z</dc:date>
    <item>
      <title>Why are we seeing duplicate headers? (host and timestamp)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-seeing-duplicate-headers-host-and-timestamp/m-p/252695#M48606</link>
      <description>&lt;P&gt;Splunk adds one header, then one more when forwarding to external logger. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;SPLUNK entry&lt;/STRONG&gt;&lt;BR /&gt;
Jan 29 14:09:01 host.localdomain: &lt;STRONG&gt;2016 Jan 29 14:08:57 EST: %DAEMON-3-SYSTEM_MSG&lt;/STRONG&gt;: error: setsockopt IP_TOS 16: Invalid argument: - sshd[6771]&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;External logger&lt;/STRONG&gt;&lt;BR /&gt;
Jan 29 14:09:01 host.localdomain Jan 29 14:09:01 host.localdomain : &lt;STRONG&gt;2016 Jan 29 14:08:57 EST: %DAEMON-3-SYSTEM_MSG&lt;/STRONG&gt;: error: setsockopt IP_TOS 16: Invalid argument: - sshd[6771] &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;RAW –tcpdump&lt;/STRONG&gt;&lt;BR /&gt;
Jan 29 17:00:01 host.localdomain Jan 29 17:00:01 host.localdomain : &lt;STRONG&gt;2016 Jan 29 16:59:56 EST: %DAEMON-3-SYSTEM_MSG&lt;/STRONG&gt;: error: setsockopt IP_TOS 16: Invalid argument: - sshd[12046]&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2016 00:13:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-seeing-duplicate-headers-host-and-timestamp/m-p/252695#M48606</guid>
      <dc:creator>jppham</dc:creator>
      <dc:date>2016-01-30T00:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we seeing duplicate headers? (host and timestamp)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-seeing-duplicate-headers-host-and-timestamp/m-p/252696#M48607</link>
      <description>&lt;P&gt;Can you give us some information, ie, what is the configuration you are using to forward your data, and what kind of system is receiving it?&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jan 2016 16:48:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-seeing-duplicate-headers-host-and-timestamp/m-p/252696#M48607</guid>
      <dc:creator>Jeremiah</dc:creator>
      <dc:date>2016-01-30T16:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we seeing duplicate headers? (host and timestamp)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-seeing-duplicate-headers-host-and-timestamp/m-p/252697#M48608</link>
      <description>&lt;P&gt;Hi Jeremiah,    this log is from a Cisco switch sending syslog to SPLUNK.&lt;BR /&gt;
We are also seeing multiple headers in logs from other systems as well coming in on source udp:514.&lt;BR /&gt;
It appears as though SPLUNK is attaching another header before it goes out .&lt;/P&gt;

&lt;P&gt;I have also attached all of the outputs stanzas at the end.&lt;/P&gt;

&lt;P&gt;Below log is what's sent to external logger from another host.  there are multiple headers again.&lt;/P&gt;

&lt;P&gt;external logger&lt;BR /&gt;
&lt;STRONG&gt;Jan 29 16:52:32 esx.mydomain Jan 29 16:52:32 esx.mydomain&lt;/STRONG&gt; 2016-01-29T21:52:32.963Z ESX.MYDOMAINVpxa: [FF96FB90 verbose 'hostdstats']&lt;/P&gt;

&lt;P&gt;SPLUNK&lt;BR /&gt;
&lt;STRONG&gt;Jan 29 16:52:32 esx.mydomain&lt;/STRONG&gt; 2016-01-29T21:52:32.978Z ESX.MYDOMAIN Vpxa: [FF96FB90 verbose 'hostdstats'] Set internal stats for VM&lt;/P&gt;

&lt;P&gt;OUTPUTS:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
maxQueueSize = 500KB
forwardedindex.0.whitelist = .*
forwardedindex.1.blacklist = _.*
forwardedindex.2.whitelist = _audit
forwardedindex.filter.disable = false
indexAndForward = false
autoLBFrequency = 30
blockOnCloning = true
compressed = false
disabled = false
dropClonedEventsOnQueueFull = 5
dropEventsOnQueueFull = -1
heartbeatFrequency = 30
maxFailuresPerInterval = 2
secsInFailureInterval = 1
maxConnectionsPerIndexer = 2
forceTimebasedAutoLB = false
sendCookedData = true
connectionTimeout = 20 
readTimeout = 300
writeTimeout = 300 
useACK = false
#defaultGroup=nowhere

[syslog]
defaultGroup = 

[syslog:Everything]
disabled = true
timestampformat = %b %e %H:%M:%S
server = x.x.x.x:514

[syslog:ext_logger]
disabled = false
timestampformat = %b %e %H:%M:%S
server = x.x.x.x:514
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Feb 2016 18:32:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-seeing-duplicate-headers-host-and-timestamp/m-p/252697#M48608</guid>
      <dc:creator>jppham</dc:creator>
      <dc:date>2016-02-01T18:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: Why are we seeing duplicate headers? (host and timestamp)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-seeing-duplicate-headers-host-and-timestamp/m-p/252698#M48609</link>
      <description>&lt;P&gt;So, you may need to set:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;syslogSourceType = &amp;lt;string&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your outputs.conf syslog stanza.  The string value should match the sourcetype of your Cisco data, so that Splunk knows this is syslog data and doesn't need to add a timestamp/hostname to the beginning of the log entry.&lt;/P&gt;

&lt;P&gt;From &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.2/admin/Outputsconf:"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.2/admin/Outputsconf:&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;"Data which does not match the rules has a header, optionally a timestamp (if defined in 'timestampformat'), and a hostname added to the front of the event. This is how Splunk causes arbitrary log data to match syslog expectations."&lt;/P&gt;

&lt;P&gt;There is a Splunk wiki article that might help explain what is happening when your data is being processed and passed on to a syslog destination:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://wiki.splunk.com/Community:Test:How_Splunk_behaves_when_receiving_or_forwarding_udp_data"&gt;https://wiki.splunk.com/Community:Test:How_Splunk_behaves_when_receiving_or_forwarding_udp_data&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It sounds like you are passing data directly to splunk via syslog.  I prefer to have a syslog server (syslog-ng or rsyslog) setup to receive my syslog data and write to a file. Then I use a Splunk forwarder to read the files and forward them to my indexer.  This also gives you the advantage of routing data directly via syslog-ng if you need to.  There's a discussion of the pros/cons here: &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/103295/pros-cons-of-using-syslog-ng-or-other-syslog-file-receiver-vs-direct-tcp-udp-514-to-splunk.html"&gt;https://answers.splunk.com/answers/103295/pros-cons-of-using-syslog-ng-or-other-syslog-file-receiver-vs-direct-tcp-udp-514-to-splunk.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 21:10:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-we-seeing-duplicate-headers-host-and-timestamp/m-p/252698#M48609</guid>
      <dc:creator>Jeremiah</dc:creator>
      <dc:date>2016-02-01T21:10:32Z</dc:date>
    </item>
  </channel>
</rss>

