<?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: Forwarder failing to forward SNMP traps captured on UDP input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58594#M11520</link>
    <description>&lt;P&gt;Oh, I forgot about adding a local file.  I did a splunk add oneshot /var/log/messages and that seemed to add fine.  I can see that data in the ui.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2012 04:36:05 GMT</pubDate>
    <dc:creator>mloven</dc:creator>
    <dc:date>2012-01-27T04:36:05Z</dc:date>
    <item>
      <title>Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58590#M11516</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;

&lt;P&gt;Ok, so here's my situation.&lt;/P&gt;

&lt;P&gt;All Splunk software listed below is v4.3.&lt;/P&gt;

&lt;P&gt;I've installed a forwarder on a linux server using the instructions found &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3/Deploy/Deployanixdfmanually"&gt;here.&lt;/A&gt;  On the forwarder, I'm listening for snmp traps on port 163/udp.  If I run a tcpdump on the forwarder, I see the traps coming in just fine.&lt;/P&gt;

&lt;P&gt;On the receiver (also a linux server) I can run a tcpdump on port 9997 and I see some messages coming in every 20 seconds or so.  I assume these are the heartbeats.  None of the trap messages are being forwarded.  Searching in the Splunk UI shows me no messages and no data sources.&lt;/P&gt;

&lt;P&gt;My /opt/splunkforwarder/etc/apps/search/default/inputs.conf has this stanza only:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[udp://localhost:163]
index = main
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Searching for &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal host=myforwarderhostname
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;doesn't show me anything that looks like an error.&lt;/P&gt;

&lt;P&gt;I've checked all of the logs in /opt/splunkforwarder/var/log/splunk/ and don't see anything in there that looks like an error either.&lt;/P&gt;

&lt;P&gt;I'm really just not sure where to look at this point.&lt;/P&gt;

&lt;P&gt;Any suggestions?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2012 17:45:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58590#M11516</guid>
      <dc:creator>mloven</dc:creator>
      <dc:date>2012-01-26T17:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58591#M11517</link>
      <description>&lt;P&gt;have you defined outputs.conf on the forwarder?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 00:24:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58591#M11517</guid>
      <dc:creator>sfleming</dc:creator>
      <dc:date>2012-01-27T00:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58592#M11518</link>
      <description>&lt;P&gt;I would advise to split this in the middle : Figure out if this is a forwarder-to-indexer issue or an inputs issue. To do this, you could simply use "splunk add oneshot" on the forwarder to index a local file and check that it makes it to the indexer. If that is the case, then you know your problem is with your SNMP trap input. What exactly are you using to get those traps indexed as events? Who sends the trap as a UDP stream to port 163?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 02:54:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58592#M11518</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2012-01-27T02:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58593#M11519</link>
      <description>&lt;P&gt;My outputs.conf (at /opt/splunkforwarder/etc/local/) is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout]
disabled=false
defaultGroup = 10.43.29.212_9997

[tcpout:10.43.29.212_9997]
server = 10.43.29.212:9997

[tcpout-server://10.43.29.212:9997]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And that is the correct ip and port.&lt;/P&gt;

&lt;P&gt;The snmp traps are being sent by another app on the same server.  I've got it configured to send out traps on port 163 (because the app itself is already listening for traps on port 162).  And again, I can see those traps coming in if I do a tcpdump on the loopback interface on port 163, so I'm pretty sure that the traps are coming in fine. &lt;/P&gt;

&lt;P&gt;That outputs.conf is the stock file that was created after I added the forward-server.  I did add the "disabled=false" line in a fit of troubleshooting based on an answer from another question on this board.  It didn't seem to change anything.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 04:32:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58593#M11519</guid>
      <dc:creator>mloven</dc:creator>
      <dc:date>2012-01-27T04:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58594#M11520</link>
      <description>&lt;P&gt;Oh, I forgot about adding a local file.  I did a splunk add oneshot /var/log/messages and that seemed to add fine.  I can see that data in the ui.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 04:36:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58594#M11520</guid>
      <dc:creator>mloven</dc:creator>
      <dc:date>2012-01-27T04:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58595#M11521</link>
      <description>&lt;P&gt;Ok so the problem definitely is with getting the SNMP traps into Splunk using the UDP input on port 163.&lt;/P&gt;

&lt;P&gt;Has this ever worked? Do you see any errors in splunkd.log from channel UDPInputProcessor there? It might be interesting to set that channel to DEBUG in &lt;CODE&gt;$SPLUNK_HOME/etc/log.cfg&lt;/CODE&gt; and to restart Splunk to see if anything shows up.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 06:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58595#M11521</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2012-01-27T06:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58596#M11522</link>
      <description>&lt;P&gt;I would never expect this to work AT ALL.  Splunk does not speak SNMP, and does not understand the ASN.1 format of an SNMP trap.  You need an intermediary like NET-SNMP's &lt;CODE&gt;snmptrapd&lt;/CODE&gt; to help with this.  Let snmptrapd listen on udp/163, then write those (formatted as text) traps to a file which Splunk does understand.&lt;/P&gt;

&lt;P&gt;This approach is well-covered in &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/SendSNMPeventstoSplunk"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Data/SendSNMPeventstoSplunk&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2012 22:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58596#M11522</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-01-27T22:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58597#M11523</link>
      <description>&lt;P&gt;Sorry for how long this took to reply back...  I got tied up with other things.&lt;/P&gt;

&lt;P&gt;Here's where the issue stands now:&lt;/P&gt;

&lt;P&gt;I've followed the information in the link that dwaddle provided.  Extremely helpful.  I've now got snmptrapd intercepting the traps and writing them to a file.  I then have Splunkforwarder watching that file.&lt;/P&gt;

&lt;P&gt;Unfortunately, I'm  still having a weird issue.  The traps are constantly coming in, but they are all showing up as coming in at the same time.  So, if I look back at the last hour, I see no traps, but if I look at 2pm-3pm, I see, say 112 events.  then, if I refresh, that number will increase, but just at the same time.&lt;/P&gt;

&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2012 06:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58597#M11523</guid>
      <dc:creator>mloven</dc:creator>
      <dc:date>2012-02-09T06:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58598#M11524</link>
      <description>&lt;P&gt;Ok, so I'm thoroughly confused now...  &lt;/P&gt;

&lt;P&gt;On the forwarder, I can tail the log file that splunk is supposed to monitor and see the traps coming in.  But if I do a tcpdump on the forwarder, the events that are being sent out don't match what's in the log file.  They look like they're heartbeats or something, but not actual traps.  They contain the name of the forwarder, and the log file that is supposed to be monitored, but none of the traps from the file.&lt;/P&gt;

&lt;P&gt;That said, there are &lt;EM&gt;some&lt;/EM&gt; traps that have come through.  If I look back over the last 24 hours in search, I can see several hundred traps.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2012 23:32:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58598#M11524</guid>
      <dc:creator>mloven</dc:creator>
      <dc:date>2012-02-09T23:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58599#M11525</link>
      <description>&lt;P&gt;And it should be noted that traps are coming in to the device and being written to the log file at a rate of ~30 a minute.&lt;/P&gt;

&lt;P&gt;Anyone have any idea what I'm missing?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2012 23:33:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58599#M11525</guid>
      <dc:creator>mloven</dc:creator>
      <dc:date>2012-02-09T23:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58600#M11526</link>
      <description>&lt;P&gt;Sorry to blatantly bump this, but...   &lt;/P&gt;

&lt;P&gt;bump.&lt;/P&gt;

&lt;P&gt;If I'm missing any vital info that would help you guys determine what the problem is, don't hesitate to tell me...&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2012 04:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58600#M11526</guid>
      <dc:creator>mloven</dc:creator>
      <dc:date>2012-02-14T04:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58601#M11527</link>
      <description>&lt;P&gt;Ok...  so I'm pretty sure this is solved.&lt;/P&gt;

&lt;P&gt;I ended up recreating the vm that the indexer was installed on (for a different reason, not because of the splunk issue), and after splunk reinstallation, I set it to receive on port 9997 and restarted everything.  It worked fine the first time.&lt;/P&gt;

&lt;P&gt;Not sure what the issue was on the other instance, but whatever it was, the issue seems to be resolved now.&lt;/P&gt;

&lt;P&gt;Thanks everyone for your help!&lt;/P&gt;

&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2012 04:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58601#M11527</guid>
      <dc:creator>mloven</dc:creator>
      <dc:date>2012-02-15T04:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Forwarder failing to forward SNMP traps captured on UDP input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58602#M11528</link>
      <description>&lt;P&gt;dwaddle - thanks for pointing me in the right direction with the snmptrap doc.  While it didn't resolve the underlying issue that I had, it was a crucial first step that I had missed.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2012 04:32:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Forwarder-failing-to-forward-SNMP-traps-captured-on-UDP-input/m-p/58602#M11528</guid>
      <dc:creator>mloven</dc:creator>
      <dc:date>2012-02-15T04:32:30Z</dc:date>
    </item>
  </channel>
</rss>

