<?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: Streamed search execute failed because: Invalid number in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Streamed-search-execute-failed-because-Invalid-number/m-p/121958#M2719</link>
    <description>&lt;P&gt;Try removing &lt;CODE&gt;tostring()&lt;/CODE&gt;.  Then &lt;CODE&gt;timechart max(diff)&lt;/CODE&gt; will have a number to work with.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jan 2015 13:36:02 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2015-01-29T13:36:02Z</dc:date>
    <item>
      <title>Streamed search execute failed because: Invalid number</title>
      <link>https://community.splunk.com/t5/Reporting/Streamed-search-execute-failed-because-Invalid-number/m-p/121957#M2718</link>
      <description>&lt;P&gt;I am working on a new report and I am getting an error message I do not understand. Any help understanding the error message is much appreciated.&lt;/P&gt;

&lt;P&gt;I want to diff the event time stamp which I have extracted out to a field named eventTime from a field called submissionReceived.&lt;/P&gt;

&lt;P&gt;query&lt;/P&gt;

&lt;P&gt;eventtype=test | rex "(?i)(?P\d+-\d+-\d+\s+\d+:\d+:\d+.\d+)\s+\w+(?:=[^=]*){10}" | eval et = strptime(eventTime, "%Y-%m-%d %H:%M:%S.%4N") | eval sr = strptime(submissionReceived, "%Y-%m-%d %H:%M:%S.%4N") | eval diff = tostring((et - sr), "duration") | timechart max(diff) by gID usenull=f useother=f&lt;/P&gt;

&lt;P&gt;I am getting this back from the indexer&lt;/P&gt;

&lt;P&gt;Streamed search execute failed because: Invalid number&lt;/P&gt;

&lt;P&gt;event example&lt;/P&gt;

&lt;P&gt;2015-01-29 07:03:19.9660 server=test instance=Main gID=1059 event=SubmStart submissionID=4cfa5b2d-f85d-4262-ba86-51f6783e4efc cID=100403 uID=2003484 tradingPartnerID=4000101 submissionReceived="2015-01-29 07:03:19.9348" pID=10056 &lt;/P&gt;

&lt;P&gt;I have no clue why I am getting this message. I don't see any errors in the splunkd.log. I looked at the job inspector, but nothing stood out. I can run a query just with the eventtype and the rex and I do not get the error so the issue is beyond the rex entry.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:21:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Streamed-search-execute-failed-because-Invalid-number/m-p/121957#M2718</guid>
      <dc:creator>ebailey</dc:creator>
      <dc:date>2015-01-29T13:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Streamed search execute failed because: Invalid number</title>
      <link>https://community.splunk.com/t5/Reporting/Streamed-search-execute-failed-because-Invalid-number/m-p/121958#M2719</link>
      <description>&lt;P&gt;Try removing &lt;CODE&gt;tostring()&lt;/CODE&gt;.  Then &lt;CODE&gt;timechart max(diff)&lt;/CODE&gt; will have a number to work with.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:36:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Streamed-search-execute-failed-because-Invalid-number/m-p/121958#M2719</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-01-29T13:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Streamed search execute failed because: Invalid number</title>
      <link>https://community.splunk.com/t5/Reporting/Streamed-search-execute-failed-because-Invalid-number/m-p/121959#M2720</link>
      <description>&lt;P&gt;I took your suggestion and wrote the eval a different way. &lt;/P&gt;

&lt;P&gt;eventtype=test | rex "(?i)(?Pd+-d+-d+s+d+:d+:d+.d+)s+w+(?:=[^=]*){10}"  | eval diff = strptime(eventTime, "%Y-%m-%d %H:%M:%S.%4N") - strptime(submissionReceived, "%Y-%m-%d %H:%M:%S.%4N")  | timechart max(diff) by gID usenull=f useother=f&lt;/P&gt;

&lt;P&gt;This seems to works. I guess I was giving the timechart invalid data.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Ed&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 15:02:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Streamed-search-execute-failed-because-Invalid-number/m-p/121959#M2720</guid>
      <dc:creator>ebailey</dc:creator>
      <dc:date>2015-01-29T15:02:04Z</dc:date>
    </item>
  </channel>
</rss>

