<?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: Do we need to have universal forwarder installed in host server when we are going for scripted inputs? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-to-have-universal-forwarder-installed-in-host-server/m-p/401055#M71417</link>
    <description>&lt;P&gt;Thanks @darrenfuller , Your inputs are worth to me &lt;/P&gt;</description>
    <pubDate>Fri, 23 Nov 2018 06:22:28 GMT</pubDate>
    <dc:creator>raj_mpl</dc:creator>
    <dc:date>2018-11-23T06:22:28Z</dc:date>
    <item>
      <title>Do we need to have universal forwarder installed in host server when we are going for scripted inputs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-to-have-universal-forwarder-installed-in-host-server/m-p/401052#M71414</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;A straight question &lt;BR /&gt;
1) If I want to get the database related log into splunk indexer using scripted inputs , does the Universal forwarder needs to be installed in host ? &lt;BR /&gt;
2)If Yes , How to make the scripted input to send the log into indexer ?&lt;/P&gt;

&lt;P&gt;Thank you ! &lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 07:03:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-to-have-universal-forwarder-installed-in-host-server/m-p/401052#M71414</guid>
      <dc:creator>raj_mpl</dc:creator>
      <dc:date>2018-11-22T07:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need to have universal forwarder installed in host server when we are going for scripted inputs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-to-have-universal-forwarder-installed-in-host-server/m-p/401053#M71415</link>
      <description>&lt;P&gt;Hi raj_mpl,&lt;BR /&gt;
if you use a scripted inputs it's better to install a Universal Forwarder on the target server for many reasons (cache, bandwidth optimization, compression, etc...), I don't like to run a remote script.&lt;/P&gt;

&lt;P&gt;Anyway, to do this, you have to:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;install the Splunk Universal Forwarder on the target server,&lt;/LI&gt;
&lt;LI&gt;create a Technical Add-on (TA),&lt;/LI&gt;
&lt;LI&gt;put your script in $your_TA/bin,&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;edit $your_TA/local/inputs.conf and adding a stanza like the following.&lt;/P&gt;

&lt;P&gt;[script://./bin/your_script.sh]&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;H2&gt;Run once per minute&lt;/H2&gt;

&lt;P&gt;interval = 60&lt;BR /&gt;
sourcetype = your_sourcetype&lt;BR /&gt;
index = your_index&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;then restart the Universal Forwarder.&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;It's better to deploy this TA using a Deployment Server.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 22:06:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-to-have-universal-forwarder-installed-in-host-server/m-p/401053#M71415</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T22:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need to have universal forwarder installed in host server when we are going for scripted inputs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-to-have-universal-forwarder-installed-in-host-server/m-p/401054#M71416</link>
      <description>&lt;P&gt;Hi  @raj_mpl, &lt;/P&gt;

&lt;P&gt;Sure, Universal Forwarder is the preferred method to transfer scripted input data, but UF is not the &lt;EM&gt;only&lt;/EM&gt; way to get the output of a script into Splunk.    &lt;/P&gt;

&lt;P&gt;There are plenty of reasons i can think of to not install a forwarder..   Unsupported OS;  Corporate Security policies against agents;  Oversubscribed boxes with limited resources;  Because you don't want to.&lt;/P&gt;

&lt;P&gt;Here is a method off the top of my head...&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Create script that does $things$&lt;/LI&gt;
&lt;LI&gt;Install script on the target server&lt;/LI&gt;
&lt;LI&gt;Run script from cron and output result to file &lt;/LI&gt;
&lt;LI&gt;Transmit log file to remote syslog server&lt;BR /&gt;&lt;/LI&gt;
&lt;LI&gt;Install UF on syslog server to forward data into Splunk.&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;To make your life easier,  have the script output one event per line, include a timestamp, and maybe use JSON or csv formatting to get the auto-field-extraction fun. &lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Nov 2018 16:43:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-to-have-universal-forwarder-installed-in-host-server/m-p/401054#M71416</guid>
      <dc:creator>darrenfuller</dc:creator>
      <dc:date>2018-11-22T16:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need to have universal forwarder installed in host server when we are going for scripted inputs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-to-have-universal-forwarder-installed-in-host-server/m-p/401055#M71417</link>
      <description>&lt;P&gt;Thanks @darrenfuller , Your inputs are worth to me &lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 06:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-to-have-universal-forwarder-installed-in-host-server/m-p/401055#M71417</guid>
      <dc:creator>raj_mpl</dc:creator>
      <dc:date>2018-11-23T06:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Do we need to have universal forwarder installed in host server when we are going for scripted inputs?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-to-have-universal-forwarder-installed-in-host-server/m-p/401056#M71418</link>
      <description>&lt;P&gt;Thanks @cusello , Its very clear that you have explained here .&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 06:24:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Do-we-need-to-have-universal-forwarder-installed-in-host-server/m-p/401056#M71418</guid>
      <dc:creator>raj_mpl</dc:creator>
      <dc:date>2018-11-23T06:24:50Z</dc:date>
    </item>
  </channel>
</rss>

