<?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 Scheduled report error -- Search process did not exit cleanly, exit_code=-1, description=&amp;quot;exited with code -1&amp;quot; in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Scheduled-report-error-Search-process-did-not-exit-cleanly-exit/m-p/291575#M5400</link>
    <description>&lt;P&gt;When running the following manually there are no issues.  But when this is scheduled the following error is noted and half the information is not present.&lt;/P&gt;

&lt;P&gt;[subsearch]: [1spl-ind04-dc1] Search process did not exit cleanly, exit_code=-1, description="exited with code -1". Please look in search.log for this peer in the Job Inspector for more info.&lt;BR /&gt;
[subsearch]: [1spl-ind04-dc2] Search process did not exit cleanly, exit_code=-1, description="exited with code -1". Please look in search.log for this peer in the Job Inspector for more info.&lt;/P&gt;

&lt;P&gt;|inputlookup idstoroles.csv | where like (role_name,"%External User%") | join type=left user_id[search index=onelogin event_type_id=5 |eval mytime=strftime(_time, "%Y-%m-%d") |lookup idstoroles.csv user_id &lt;BR /&gt;
|stats distinct_count(mytime) as "total logins" by role_name,user_name,user_id |where like(role_name, "%External User%")] | table username,user_name, firstname, lastname, user_id, "total logins" |outputlookup logins.csv&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:07:44 GMT</pubDate>
    <dc:creator>agreer</dc:creator>
    <dc:date>2020-09-29T16:07:44Z</dc:date>
    <item>
      <title>Scheduled report error -- Search process did not exit cleanly, exit_code=-1, description="exited with code -1"</title>
      <link>https://community.splunk.com/t5/Reporting/Scheduled-report-error-Search-process-did-not-exit-cleanly-exit/m-p/291575#M5400</link>
      <description>&lt;P&gt;When running the following manually there are no issues.  But when this is scheduled the following error is noted and half the information is not present.&lt;/P&gt;

&lt;P&gt;[subsearch]: [1spl-ind04-dc1] Search process did not exit cleanly, exit_code=-1, description="exited with code -1". Please look in search.log for this peer in the Job Inspector for more info.&lt;BR /&gt;
[subsearch]: [1spl-ind04-dc2] Search process did not exit cleanly, exit_code=-1, description="exited with code -1". Please look in search.log for this peer in the Job Inspector for more info.&lt;/P&gt;

&lt;P&gt;|inputlookup idstoroles.csv | where like (role_name,"%External User%") | join type=left user_id[search index=onelogin event_type_id=5 |eval mytime=strftime(_time, "%Y-%m-%d") |lookup idstoroles.csv user_id &lt;BR /&gt;
|stats distinct_count(mytime) as "total logins" by role_name,user_name,user_id |where like(role_name, "%External User%")] | table username,user_name, firstname, lastname, user_id, "total logins" |outputlookup logins.csv&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:07:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Scheduled-report-error-Search-process-did-not-exit-cleanly-exit/m-p/291575#M5400</guid>
      <dc:creator>agreer</dc:creator>
      <dc:date>2020-09-29T16:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled report error -- Search process did not exit cleanly, exit_code=-1, description="exited with code -1"</title>
      <link>https://community.splunk.com/t5/Reporting/Scheduled-report-error-Search-process-did-not-exit-cleanly-exit/m-p/291576#M5401</link>
      <description>&lt;P&gt;@agreer,&lt;/P&gt;

&lt;P&gt;can you please check first pipe symbol is present i.e., before inputlookup command in your scheduled search and report. sometime when do save as report option from search bar. pipe symbol will be missed.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 19:40:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Scheduled-report-error-Search-process-did-not-exit-cleanly-exit/m-p/291576#M5401</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2017-10-09T19:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled report error -- Search process did not exit cleanly, exit_code=-1, description="exited with code -1"</title>
      <link>https://community.splunk.com/t5/Reporting/Scheduled-report-error-Search-process-did-not-exit-cleanly-exit/m-p/291577#M5402</link>
      <description>&lt;P&gt;The pipe is there.  I have also seen other answers state this is due to permissions.  I have had a super user create the same report with the same result.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 19:59:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Scheduled-report-error-Search-process-did-not-exit-cleanly-exit/m-p/291577#M5402</guid>
      <dc:creator>agreer</dc:creator>
      <dc:date>2017-10-09T19:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scheduled report error -- Search process did not exit cleanly, exit_code=-1, description="exited with code -1"</title>
      <link>https://community.splunk.com/t5/Reporting/Scheduled-report-error-Search-process-did-not-exit-cleanly-exit/m-p/291578#M5403</link>
      <description>&lt;P&gt;Seems likely the subsearch is running out of space or time.  There's an easy way to invert the search, though, so that won't happen. &lt;/P&gt;

&lt;P&gt;Try running this version ... if it gets the same result, then use it instead, and add the &lt;CODE&gt;outputlookup&lt;/CODE&gt; on the end.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=onelogin event_type_id=5 
| eval mytime=strftime(_time, "%Y-%m-%d") 
| lookup idstoroles.csv user_id 
| stats distinct_count(mytime) as logcount by role_name, user_name, user_id 
| where like(role_name, "%External User%")
| append [    | inputlookup idstoroles.csv 
              | where like (role_name,"%External User%") 
              | table role_name, user_name, user_id
              | eval logcount=0
         ]
| stats sum(logcount) as "total logins" by role_name, user_name, user_id 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Oct 2017 14:21:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Scheduled-report-error-Search-process-did-not-exit-cleanly-exit/m-p/291578#M5403</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-10T14:21:04Z</dc:date>
    </item>
  </channel>
</rss>

