<?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: Guide for creating Add-ons to deploy to (Universal)Forwarders? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Guide-for-creating-Add-ons-to-deploy-to-Universal-Forwarders/m-p/323236#M60198</link>
    <description>&lt;P&gt;Hi kentcoble,&lt;/P&gt;

&lt;P&gt;I'm not sure if there is a special docs page about this topic, but basically what you need to do at a minimum is to create your add-on folder that contains a &lt;CODE&gt;bin&lt;/CODE&gt; and a &lt;CODE&gt;local&lt;/CODE&gt; directory. Store your scripts in the &lt;CODE&gt;bin&lt;/CODE&gt; folder, make sure it is executable, and configure the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; in &lt;CODE&gt;local&lt;/CODE&gt; like this for *nix:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/YourScriptNameHere.py]
interval = inSeconds or cronSchedule
sourcetype = something
index = another one
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and like this for Windows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://.\bin\YourScriptNameHere.ps]
interval = inSeconds or cronSchedule
sourcetype = something
index = another one
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should do it and you can deploy it to the universal forwarder.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2018 23:13:47 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2018-02-26T23:13:47Z</dc:date>
    <item>
      <title>Guide for creating Add-ons to deploy to (Universal)Forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Guide-for-creating-Add-ons-to-deploy-to-Universal-Forwarders/m-p/323235#M60197</link>
      <description>&lt;P&gt;Our department needs to collect the serial numbers of all physical drives connected to all machines within our network. Since there are over 1000 hosts, we would like to be able to collect this information within Splunk on a fixed interval. Since the Splunk Add-On for Windows and Splunk Add-On for *nix doesn't contain this information, I've developed a Python script that can collect this for us. (A Powershell version for Windows will have to be developed.)&lt;/P&gt;

&lt;P&gt;I've reviewed the documentation for &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/ScriptSetup"&gt;Scripted Inputs&lt;/A&gt; but this appears to be a manual process for each host. The &lt;A href="http://docs.splunk.com/Documentation/AddonBuilder/2.2.0/UserGuide/Overview"&gt;Add-on Builder&lt;/A&gt; also appears to be limited to just Splunk servers. I cannot, for the life of me, find a guide on how to create Add-ons for deployment with UniversalForwarders. I've even tried to review the Windows and *nix Add-Ons but they're very complex.&lt;/P&gt;

&lt;P&gt;Can someone point me to any official documentation for creating Add-Ons that are compatible with UniversalForwarders, or to blog posts or any other kind of reference?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 22:57:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Guide-for-creating-Add-ons-to-deploy-to-Universal-Forwarders/m-p/323235#M60197</guid>
      <dc:creator>kentcoble</dc:creator>
      <dc:date>2018-02-26T22:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Guide for creating Add-ons to deploy to (Universal)Forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Guide-for-creating-Add-ons-to-deploy-to-Universal-Forwarders/m-p/323236#M60198</link>
      <description>&lt;P&gt;Hi kentcoble,&lt;/P&gt;

&lt;P&gt;I'm not sure if there is a special docs page about this topic, but basically what you need to do at a minimum is to create your add-on folder that contains a &lt;CODE&gt;bin&lt;/CODE&gt; and a &lt;CODE&gt;local&lt;/CODE&gt; directory. Store your scripts in the &lt;CODE&gt;bin&lt;/CODE&gt; folder, make sure it is executable, and configure the &lt;CODE&gt;inputs.conf&lt;/CODE&gt; in &lt;CODE&gt;local&lt;/CODE&gt; like this for *nix:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://./bin/YourScriptNameHere.py]
interval = inSeconds or cronSchedule
sourcetype = something
index = another one
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and like this for Windows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://.\bin\YourScriptNameHere.ps]
interval = inSeconds or cronSchedule
sourcetype = something
index = another one
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should do it and you can deploy it to the universal forwarder.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 23:13:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Guide-for-creating-Add-ons-to-deploy-to-Universal-Forwarders/m-p/323236#M60198</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-02-26T23:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Guide for creating Add-ons to deploy to (Universal)Forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Guide-for-creating-Add-ons-to-deploy-to-Universal-Forwarders/m-p/323237#M60199</link>
      <description>&lt;P&gt;I would just save this under &lt;CODE&gt;$SPLUNK_HOME/etc/deployment-apps/$NewAppName&lt;/CODE&gt;? Does it need anything else (i.e. metadata or default folders)?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 23:19:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Guide-for-creating-Add-ons-to-deploy-to-Universal-Forwarders/m-p/323237#M60199</guid>
      <dc:creator>kentcoble</dc:creator>
      <dc:date>2018-02-26T23:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Guide for creating Add-ons to deploy to (Universal)Forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Guide-for-creating-Add-ons-to-deploy-to-Universal-Forwarders/m-p/323238#M60200</link>
      <description>&lt;P&gt;Yes, it goes in that directory. &lt;CODE&gt;metadata&lt;/CODE&gt; would be needed if you want to export system wide or set permission within Splunk on apps objects. You can also put it into the &lt;CODE&gt;default&lt;/CODE&gt; folder, my 2cents here: put it into &lt;CODE&gt;local&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 23:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Guide-for-creating-Add-ons-to-deploy-to-Universal-Forwarders/m-p/323238#M60200</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2018-02-26T23:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Guide for creating Add-ons to deploy to (Universal)Forwarders?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Guide-for-creating-Add-ons-to-deploy-to-Universal-Forwarders/m-p/323239#M60201</link>
      <description>&lt;P&gt;Works like a charm! Thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 15:34:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Guide-for-creating-Add-ons-to-deploy-to-Universal-Forwarders/m-p/323239#M60201</guid>
      <dc:creator>kentcoble</dc:creator>
      <dc:date>2018-02-27T15:34:59Z</dc:date>
    </item>
  </channel>
</rss>

