<?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: scripted input not working in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/670002#M112339</link>
    <description>&lt;P&gt;My script name was access-abc.sh ,&amp;nbsp; I just removed hyphen and renamed it to accessabc.sh and that fixed the issue and able to see the Data in Splunk.&lt;/P&gt;
&lt;P&gt;But now I have issue with event Formatting, Actual website data I am ingesting is shown below:&lt;/P&gt;
&lt;P&gt;##### BEGIN STATUS #####&lt;/P&gt;
&lt;P&gt;#LAST UPDATE&amp;nbsp; :&amp;nbsp; Tue,&amp;nbsp; 28&amp;nbsp; Nov&amp;nbsp; 2023&amp;nbsp; 11:00:16&amp;nbsp; +0000&lt;/P&gt;
&lt;P&gt;Abcstatus.status=ok&lt;/P&gt;
&lt;P&gt;Abcstatus.lastupdate=17xxxxxxxx555&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;###&amp;nbsp; ServiceStatus&amp;nbsp; ###&lt;/P&gt;
&lt;P&gt;xxxxx&lt;/P&gt;
&lt;P&gt;xxxxxx&lt;/P&gt;
&lt;P&gt;xxxx&lt;/P&gt;
&lt;P&gt;###&amp;nbsp; SystemStatus&amp;nbsp; ###&lt;/P&gt;
&lt;P&gt;XXXX'&lt;/P&gt;
&lt;P&gt;XXXX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;###&amp;nbsp; xyxStatus&amp;nbsp; ###&lt;/P&gt;
&lt;P&gt;XXX&lt;/P&gt;
&lt;P&gt;XXX&lt;/P&gt;
&lt;P&gt;XXX&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;So on....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in splunk below lines are coming as a seperate events instead of being part of one complete event:&lt;/P&gt;
&lt;P&gt;##### FIRST STATUS #####&amp;nbsp; - is coming as seperate event&lt;/P&gt;
&lt;P&gt;Abcstatus.status=ok&amp;nbsp; - this is also coming as a separate event&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below all events coming as one event which is correct and the above two lines should also be part of this one event:&lt;/P&gt;
&lt;P&gt;Abcstatus.lastupdate=17xxxxxxxx555&lt;/P&gt;
&lt;P&gt;###&amp;nbsp; ServiceStatus&amp;nbsp; ###&lt;/P&gt;
&lt;P&gt;xxxxx&lt;/P&gt;
&lt;P&gt;xxxxxx&lt;/P&gt;
&lt;P&gt;xxxx&lt;/P&gt;
&lt;P&gt;###&amp;nbsp; SystemStatus&amp;nbsp; ###&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;So on....&lt;/P&gt;
&lt;P&gt;#####&amp;nbsp; &amp;nbsp;END STATUS&amp;nbsp; #####&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my props:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DATETIME_CONFIG = CURRENT

SHOULD_LINEMERGE=TRUE

BREAK_ONLY_AFTER = ^#{5}\s{6}END\sSTATUS\s{6}\#{5}

MUST_NOT_BREAK_AFTER=\#{5}\s{5}BEGIN\sSTATUS\s{5}\#{5}

TIME_PREFIX=^#\w+\s\w+\w+\s:\s

MAX_TIMESTAMP_LOOKAHEAD=200&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help me with the issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2023 13:03:31 GMT</pubDate>
    <dc:creator>blbr123</dc:creator>
    <dc:date>2023-11-28T13:03:31Z</dc:date>
    <item>
      <title>scripted input not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/668989#M112146</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a requirement to Onboard Data from a website like &lt;A href="http://1.1.1.1:1234/status/v2" target="_blank" rel="noopener"&gt;http://1.1.1.1:1234/status/v2&lt;/A&gt;&amp;nbsp;and its a vendor managed API url so Application team cannot use the HEC Token option.&lt;/P&gt;&lt;P&gt;so I have prepared the script to get the Data and tested it Locally and the script works as expected.&lt;/P&gt;&lt;P&gt;I have created a forwarder app with bin folder and kept the script in that and pushed the App to one of our Integration Forwarder but unable to get any data in Splunk.&lt;/P&gt;&lt;P&gt;I have tested the connectivity between our IF and the URL and its successful( Did a Curl to that URL and able to see the URL content)&lt;/P&gt;&lt;P&gt;I have checked firewall and permissions , all seems to be ok but still I am unable to get data in splunk.&lt;/P&gt;&lt;P&gt;Also I checked internal index but don't find anything there.&lt;/P&gt;&lt;P&gt;Can someone guide me what else I need to check in order to get this fixed.&lt;/P&gt;&lt;P&gt;Below is my inputs:&lt;/P&gt;&lt;P&gt;[monitor://./bin/abc.sh]&lt;/P&gt;&lt;P&gt;index=xyz&lt;/P&gt;&lt;P&gt;disabled=false&lt;/P&gt;&lt;P&gt;interval = 500&lt;/P&gt;&lt;P&gt;sourcetype=script:abc&lt;/P&gt;&lt;P&gt;source=abc.sh&lt;/P&gt;&lt;P&gt;I have also created props as below:&lt;/P&gt;&lt;P&gt;[script:abc&lt;/P&gt;&lt;P&gt;DATETIME_CONFIG = CURRENT&lt;/P&gt;&lt;P&gt;SHOULD_LINEMERGE = true&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 11:22:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/668989#M112146</guid>
      <dc:creator>blbr123</dc:creator>
      <dc:date>2023-11-17T11:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: scripted input not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669017#M112156</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;monitor&lt;/FONT&gt; stanza in inputs.conf is looking for updates the abc.sh file - something unlikely to happen often. To run a scripted input, use a &lt;FONT face="courier new,courier"&gt;script&lt;/FONT&gt; stanza&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[script://./bin/abc.sh]
interval = 500
index = xyz
sourcetype = script:abc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 15:33:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669017#M112156</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-11-17T15:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: scripted input not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669019#M112158</link>
      <description>&lt;P&gt;I did not understand the difference between the two stanzas can you please explain&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 14:50:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669019#M112158</guid>
      <dc:creator>blbr123</dc:creator>
      <dc:date>2023-11-17T14:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: scripted input not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669028#M112160</link>
      <description>&lt;P&gt;A &lt;FONT face="courier new,courier"&gt;[monitor]&lt;/FONT&gt; stanza reads a file and indexes new data written to that file.&lt;/P&gt;&lt;P&gt;A &lt;FONT face="courier new,courier"&gt;[script]&lt;/FONT&gt; stanza runs a script and indexes the output of it.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 15:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669028#M112160</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-11-17T15:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: scripted input not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669134#M112186</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have changed the stanza to script from monitor but still unable to see any data in splunk?&lt;/P&gt;&lt;P&gt;Is there anything else I have to check?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 04:04:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669134#M112186</guid>
      <dc:creator>blbr123</dc:creator>
      <dc:date>2023-11-20T04:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: scripted input not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669191#M112198</link>
      <description>&lt;P&gt;Verify the script runs correctly when run manually&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;splunk cmd python &amp;lt;&amp;lt;your script&amp;gt;&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Are you trying to run the script on a heavy forwarder or universal forwarder?&amp;nbsp; UFs cannot run python scripts because they don't have in interpreter.&lt;/P&gt;&lt;P&gt;Confirm the forwarder successfully connects to the indexer(s), by verifying the forwarder's logs are in the _internal index.&lt;/P&gt;&lt;P&gt;Tell us how you are trying to find the data in Splunk.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 14:02:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669191#M112198</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-11-20T14:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: scripted input not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669194#M112200</link>
      <description>&lt;P&gt;Check your _internal index for any events from that forwarder regarding that script (or look for those events in splunkd.log directly on that forwarder). That might tell you more.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2023 14:21:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/669194#M112200</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-11-20T14:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: scripted input not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/670002#M112339</link>
      <description>&lt;P&gt;My script name was access-abc.sh ,&amp;nbsp; I just removed hyphen and renamed it to accessabc.sh and that fixed the issue and able to see the Data in Splunk.&lt;/P&gt;
&lt;P&gt;But now I have issue with event Formatting, Actual website data I am ingesting is shown below:&lt;/P&gt;
&lt;P&gt;##### BEGIN STATUS #####&lt;/P&gt;
&lt;P&gt;#LAST UPDATE&amp;nbsp; :&amp;nbsp; Tue,&amp;nbsp; 28&amp;nbsp; Nov&amp;nbsp; 2023&amp;nbsp; 11:00:16&amp;nbsp; +0000&lt;/P&gt;
&lt;P&gt;Abcstatus.status=ok&lt;/P&gt;
&lt;P&gt;Abcstatus.lastupdate=17xxxxxxxx555&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;###&amp;nbsp; ServiceStatus&amp;nbsp; ###&lt;/P&gt;
&lt;P&gt;xxxxx&lt;/P&gt;
&lt;P&gt;xxxxxx&lt;/P&gt;
&lt;P&gt;xxxx&lt;/P&gt;
&lt;P&gt;###&amp;nbsp; SystemStatus&amp;nbsp; ###&lt;/P&gt;
&lt;P&gt;XXXX'&lt;/P&gt;
&lt;P&gt;XXXX&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;###&amp;nbsp; xyxStatus&amp;nbsp; ###&lt;/P&gt;
&lt;P&gt;XXX&lt;/P&gt;
&lt;P&gt;XXX&lt;/P&gt;
&lt;P&gt;XXX&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;So on....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in splunk below lines are coming as a seperate events instead of being part of one complete event:&lt;/P&gt;
&lt;P&gt;##### FIRST STATUS #####&amp;nbsp; - is coming as seperate event&lt;/P&gt;
&lt;P&gt;Abcstatus.status=ok&amp;nbsp; - this is also coming as a separate event&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below all events coming as one event which is correct and the above two lines should also be part of this one event:&lt;/P&gt;
&lt;P&gt;Abcstatus.lastupdate=17xxxxxxxx555&lt;/P&gt;
&lt;P&gt;###&amp;nbsp; ServiceStatus&amp;nbsp; ###&lt;/P&gt;
&lt;P&gt;xxxxx&lt;/P&gt;
&lt;P&gt;xxxxxx&lt;/P&gt;
&lt;P&gt;xxxx&lt;/P&gt;
&lt;P&gt;###&amp;nbsp; SystemStatus&amp;nbsp; ###&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;So on....&lt;/P&gt;
&lt;P&gt;#####&amp;nbsp; &amp;nbsp;END STATUS&amp;nbsp; #####&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my props:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;DATETIME_CONFIG = CURRENT

SHOULD_LINEMERGE=TRUE

BREAK_ONLY_AFTER = ^#{5}\s{6}END\sSTATUS\s{6}\#{5}

MUST_NOT_BREAK_AFTER=\#{5}\s{5}BEGIN\sSTATUS\s{5}\#{5}

TIME_PREFIX=^#\w+\s\w+\w+\s:\s

MAX_TIMESTAMP_LOOKAHEAD=200&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please help me with the issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 13:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/670002#M112339</guid>
      <dc:creator>blbr123</dc:creator>
      <dc:date>2023-11-28T13:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: scripted input not working</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/670035#M112349</link>
      <description>&lt;P&gt;This new question should be a new posting.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 13:58:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/scripted-input-not-working/m-p/670035#M112349</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-11-28T13:58:39Z</dc:date>
    </item>
  </channel>
</rss>

