<?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: Send Host with SNMP Trap in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Send-Host-with-SNMP-Trap/m-p/31428#M5518</link>
    <description>&lt;P&gt;I realize this is an older thread, but in case anyone is interested, here's how we've been able to extract the host as a trap varbind:&lt;/P&gt;

&lt;P&gt;If you set up an alert on a saved search, a results file containing the raw event data is passed as an argument along with the alert. The file format is gzipped csv and contains the host, source and raw event text.&lt;/P&gt;

&lt;P&gt;We created a perl script that runs after the saved search finds a match, unzips the file and then places host, source and raw into an array.  When we send the trap we use the OS sendtrap command and designate one of the trap varbinds as the extracted hostname.  &lt;/P&gt;</description>
    <pubDate>Thu, 06 Dec 2012 14:30:27 GMT</pubDate>
    <dc:creator>briang67</dc:creator>
    <dc:date>2012-12-06T14:30:27Z</dc:date>
    <item>
      <title>Send Host with SNMP Trap</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-Host-with-SNMP-Trap/m-p/31427#M5517</link>
      <description>&lt;P&gt;Need to be able to pass host from a syslog message in a trap outbound from Splunk. of the nice configured varbinds, host is not one. Is there a way to pass other parameters?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2012 23:53:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-Host-with-SNMP-Trap/m-p/31427#M5517</guid>
      <dc:creator>jonmcarr</dc:creator>
      <dc:date>2012-04-19T23:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Send Host with SNMP Trap</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Send-Host-with-SNMP-Trap/m-p/31428#M5518</link>
      <description>&lt;P&gt;I realize this is an older thread, but in case anyone is interested, here's how we've been able to extract the host as a trap varbind:&lt;/P&gt;

&lt;P&gt;If you set up an alert on a saved search, a results file containing the raw event data is passed as an argument along with the alert. The file format is gzipped csv and contains the host, source and raw event text.&lt;/P&gt;

&lt;P&gt;We created a perl script that runs after the saved search finds a match, unzips the file and then places host, source and raw into an array.  When we send the trap we use the OS sendtrap command and designate one of the trap varbinds as the extracted hostname.  &lt;/P&gt;</description>
      <pubDate>Thu, 06 Dec 2012 14:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Send-Host-with-SNMP-Trap/m-p/31428#M5518</guid>
      <dc:creator>briang67</dc:creator>
      <dc:date>2012-12-06T14:30:27Z</dc:date>
    </item>
  </channel>
</rss>

