<?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: Why is scripted input only giving the first line? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-scripted-input-only-giving-the-first-line/m-p/82578#M17119</link>
    <description>&lt;P&gt;Can you share the pi.sh that you are calling?&lt;/P&gt;</description>
    <pubDate>Thu, 04 Nov 2010 22:39:36 GMT</pubDate>
    <dc:creator>bfaber</dc:creator>
    <dc:date>2010-11-04T22:39:36Z</dc:date>
    <item>
      <title>Why is scripted input only giving the first line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-scripted-input-only-giving-the-first-line/m-p/82575#M17116</link>
      <description>&lt;P&gt;I have tried following &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Setupcustom(scripted)inputs" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Setupcustom(scripted)inputs&lt;/A&gt;, but I am having no luck. I cant seem to get the BREAK_ONLY_BEFORE  to work for me..&lt;/P&gt;

&lt;P&gt;My script is basically a wrapper around pkginfo.&lt;/P&gt;

&lt;P&gt;It returns package information with each package on a new line.&lt;/P&gt;

&lt;P&gt;Please help! Anyone!&lt;/P&gt;

&lt;P&gt;Here is the inputs and props.conf located in $SPLUNK_HOME/etc/apps/scripts/default&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;inputs.conf:
[script://$SPLUNK_HOME/etc/apps/scripts/bin/pi.sh]
interval = 60
sourcetype = pkginfo
source = pkginfo
disabled = 0


props.conf:
[pkginfo]
SHOULD_LINEMERGE = false
LINE_BREAKER = (?!)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Nov 2010 09:20:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-scripted-input-only-giving-the-first-line/m-p/82575#M17116</guid>
      <dc:creator>ericrobinson</dc:creator>
      <dc:date>2010-11-03T09:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is scripted input only giving the first line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-scripted-input-only-giving-the-first-line/m-p/82576#M17117</link>
      <description>&lt;P&gt;Just set:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = (?!)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Assuming that your script is called periodically by a cron schedule.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2010 14:40:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-scripted-input-only-giving-the-first-line/m-p/82576#M17117</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-11-03T14:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why is scripted input only giving the first line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-scripted-input-only-giving-the-first-line/m-p/82577#M17118</link>
      <description>&lt;P&gt;This is still not working for me unfortunately..&lt;/P&gt;

&lt;P&gt;Here is my props.conf&lt;/P&gt;

&lt;P&gt;[pkginfo]&lt;BR /&gt;
SHOULD_LINEMERGE = false&lt;BR /&gt;
LINE_BREAKER = (?!)&lt;/P&gt;

&lt;P&gt;Here is the inputs.conf:&lt;/P&gt;

&lt;P&gt;[script://$SPLUNK_HOME/etc/apps/scripts/bin/pi.sh]&lt;BR /&gt;
interval = 60&lt;BR /&gt;
sourcetype = pkginfo&lt;BR /&gt;
source = pkginfo&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;These are both in:&lt;BR /&gt;
$SPLUNK_HOME/etc/apps/scripts/default&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:20:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-scripted-input-only-giving-the-first-line/m-p/82577#M17118</guid>
      <dc:creator>ericrobinson</dc:creator>
      <dc:date>2020-09-28T09:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why is scripted input only giving the first line?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-is-scripted-input-only-giving-the-first-line/m-p/82578#M17119</link>
      <description>&lt;P&gt;Can you share the pi.sh that you are calling?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Nov 2010 22:39:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-is-scripted-input-only-giving-the-first-line/m-p/82578#M17119</guid>
      <dc:creator>bfaber</dc:creator>
      <dc:date>2010-11-04T22:39:36Z</dc:date>
    </item>
  </channel>
</rss>

