<?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: Perl script output instead of shell in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163513#M98087</link>
    <description>&lt;P&gt;Thanks a Lot for your help!&lt;/P&gt;

&lt;P&gt;Well I was able to run the scripts from the directories.&lt;/P&gt;

&lt;P&gt;However was confused if I can user perl script or not for the same.&lt;/P&gt;

&lt;P&gt;Now I am able to use Perl Script and getting the output in the splunk&lt;/P&gt;

&lt;P&gt;Thanks For your help&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2013 08:35:05 GMT</pubDate>
    <dc:creator>yadvendra</dc:creator>
    <dc:date>2013-12-03T08:35:05Z</dc:date>
    <item>
      <title>Perl script output instead of shell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163510#M98084</link>
      <description>&lt;P&gt;Hello There,&lt;/P&gt;

&lt;P&gt;I wanted to use Perl script instead of shell script for the scripted output.&lt;/P&gt;

&lt;P&gt;I put my shell perl script @ same place where other shell scripts are available.&lt;/P&gt;

&lt;P&gt;but I am not able to get input from Perl script in splunk.&lt;/P&gt;

&lt;P&gt;Kindly help!!&lt;/P&gt;

&lt;P&gt;Following is the output of my perl script, which I want in splunk&lt;/P&gt;

&lt;P&gt;mm174:/var/tmp/yad/splunk/etc/apps/Mediation/bin# /var/tmp/yad/read_bgwConfig.pl&lt;BR /&gt;
SERVER                INBUFFER    OUTBUFFER&lt;BR /&gt;
Telstra                0               2&lt;BR /&gt;
ServerNN               0               0&lt;BR /&gt;
Server2                0               2&lt;BR /&gt;
Server3                0               0&lt;BR /&gt;
Server1                4               6&lt;BR /&gt;
Server4                0               0&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 06:04:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163510#M98084</guid>
      <dc:creator>yadvendra</dc:creator>
      <dc:date>2013-12-03T06:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script output instead of shell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163511#M98085</link>
      <description>&lt;P&gt;I also tried to call it like this&lt;/P&gt;

&lt;P&gt;sb6270x1813:/var/tmp/yad/splunk/etc/apps/Mediation/bin# cat fe_buffer.sh&lt;/P&gt;

&lt;H1&gt;!/bin/bash&lt;/H1&gt;

&lt;P&gt;perl read_bgwConfig.pl&lt;/P&gt;

&lt;P&gt;However did not work.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 06:12:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163511#M98085</guid>
      <dc:creator>yadvendra</dc:creator>
      <dc:date>2013-12-03T06:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script output instead of shell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163512#M98086</link>
      <description>&lt;P&gt;Your script needs to reside inside a directory that Splunk allows script execution in. From the inputs.conf docs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://&amp;lt;cmd&amp;gt;]
* Runs &amp;lt;cmd&amp;gt; at a configured interval (see below) and indexes the output.  
* The &amp;lt;cmd&amp;gt; must reside in one of 
  *  $SPLUNK_HOME/etc/system/bin/
  *  $SPLUNK_HOME/etc/apps/$YOUR_APP/bin/
  *   $SPLUNK_HOME/bin/scripts/
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Dec 2013 07:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163512#M98086</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-12-03T07:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script output instead of shell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163513#M98087</link>
      <description>&lt;P&gt;Thanks a Lot for your help!&lt;/P&gt;

&lt;P&gt;Well I was able to run the scripts from the directories.&lt;/P&gt;

&lt;P&gt;However was confused if I can user perl script or not for the same.&lt;/P&gt;

&lt;P&gt;Now I am able to use Perl Script and getting the output in the splunk&lt;/P&gt;

&lt;P&gt;Thanks For your help&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2013 08:35:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163513#M98087</guid>
      <dc:creator>yadvendra</dc:creator>
      <dc:date>2013-12-03T08:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script output instead of shell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163514#M98088</link>
      <description>&lt;P&gt;Would you please post the answer so other visitors looking for the same solution can find it? I'm trying to do the same thing myself. I've done this previously but didn't need to return anything back to splunk. Now I need to return the output of the script back to splunk.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2014 20:50:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163514#M98088</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2014-01-17T20:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Perl script output instead of shell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163515#M98089</link>
      <description>&lt;P&gt;if you have the script and it's echoing you some output in the window then it will be sent to splunk&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2014 20:59:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Perl-script-output-instead-of-shell/m-p/163515#M98089</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-01-17T20:59:17Z</dc:date>
    </item>
  </channel>
</rss>

