<?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 Scripted Input and not working well with linux &amp;quot;Find&amp;quot; Command in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-and-not-working-well-with-linux-quot-Find-quot/m-p/287103#M99224</link>
    <description>&lt;P&gt;Hi Guys,&lt;BR /&gt;
Am i not sure if anyone has a solution for this.&lt;BR /&gt;
But I am not able to get any output when i run the linux find command with the "-ls" flag through a script.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;find . -maxdepth 1 -type f -name "*.xml" -mmin 600 -ls 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Running the "find" command without "ls" flag seem to work fine &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;find . -maxdepth 1 -type f -name "*.xml" -mmin 600 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there some sort of limitations when it comes to scripted inputs &lt;/P&gt;

&lt;P&gt;Sam&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2016 03:34:47 GMT</pubDate>
    <dc:creator>samaikins</dc:creator>
    <dc:date>2016-04-11T03:34:47Z</dc:date>
    <item>
      <title>Scripted Input and not working well with linux "Find" Command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-and-not-working-well-with-linux-quot-Find-quot/m-p/287103#M99224</link>
      <description>&lt;P&gt;Hi Guys,&lt;BR /&gt;
Am i not sure if anyone has a solution for this.&lt;BR /&gt;
But I am not able to get any output when i run the linux find command with the "-ls" flag through a script.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;find . -maxdepth 1 -type f -name "*.xml" -mmin 600 -ls 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Running the "find" command without "ls" flag seem to work fine &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;find . -maxdepth 1 -type f -name "*.xml" -mmin 600 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there some sort of limitations when it comes to scripted inputs &lt;/P&gt;

&lt;P&gt;Sam&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 03:34:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-and-not-working-well-with-linux-quot-Find-quot/m-p/287103#M99224</guid>
      <dc:creator>samaikins</dc:creator>
      <dc:date>2016-04-11T03:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Input and not working well with linux "Find" Command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-and-not-working-well-with-linux-quot-Find-quot/m-p/287104#M99225</link>
      <description>&lt;P&gt;How have you defined timestamping for this sourcetype? The &lt;CODE&gt;-ls&lt;/CODE&gt; option means the output includes a timestamp. Depending on your settings, splunk could be dropping these events entirely (if the timestamp is too far astray from current time), or indexing them with a timestamp wildly different from your expectations.&lt;/P&gt;

&lt;P&gt;I would change the &lt;CODE&gt;props.conf&lt;/CODE&gt; settings for this sourcetype to force  CURRENT time only, if you haven't already.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your_find_command_sourcetype]
DATETIME_CONFIG = CURRENT
...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Apr 2016 14:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-and-not-working-well-with-linux-quot-Find-quot/m-p/287104#M99225</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2016-04-11T14:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Scripted Input and not working well with linux "Find" Command</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-and-not-working-well-with-linux-quot-Find-quot/m-p/287105#M99226</link>
      <description>&lt;P&gt;Thanks  twinspop , that solved it .&lt;BR /&gt;
Cheers!!!!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 09:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Scripted-Input-and-not-working-well-with-linux-quot-Find-quot/m-p/287105#M99226</guid>
      <dc:creator>samaikins</dc:creator>
      <dc:date>2016-04-12T09:38:26Z</dc:date>
    </item>
  </channel>
</rss>

