<?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 my query terminating with &amp;quot;unexpected error&amp;quot;? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386257#M172126</link>
    <description>&lt;P&gt;I see you are running the 'Dedup' command on a large data set with a huge time range. This is directly impacting your search performance and the query fails. Never run 'Dedup' Command directly over a search string. When you run a Dedup Command the text of every event in memory is retained which impacts your search performance.&lt;/P&gt;

&lt;P&gt;If you run this search for a short time duration it might work and produce results. But if you run the same search over larger time duration such as 1 year, it will require to retain the text for a long time in the memory and eventually search will fail to complete.&lt;/P&gt;

&lt;P&gt;This is the nature of the Dedup Command and this can not be an error. The dedup command is a streaming command or a dataset processing command, depending on which arguments are specified with the command. &lt;/P&gt;

&lt;P&gt;To fix this, You have to modify your search to restrict only limited dataset to be pulled out. There are multiple ways to modify your search based on your data and make the search fast.&lt;/P&gt;</description>
    <pubDate>Mon, 01 Apr 2019 20:52:09 GMT</pubDate>
    <dc:creator>ashutoshab</dc:creator>
    <dc:date>2019-04-01T20:52:09Z</dc:date>
    <item>
      <title>Why is my query terminating with "unexpected error"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386252#M172121</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am running a query to analyse 1 year of data and find out the number of users that used the application per day. But the below query is getting timeout and terminated with the error "&lt;STRONG&gt;unexpected error&lt;/STRONG&gt;"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myIndex | dedup user_id _time | timechart span=1d dc(user_id) as Users | *outploutlookup ysers.csv
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Could you please help with optimizing the above query ?&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 11:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386252#M172121</guid>
      <dc:creator>akasthi</dc:creator>
      <dc:date>2019-04-01T11:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my query terminating with "unexpected error"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386253#M172122</link>
      <description>&lt;P&gt;@akasthi &lt;/P&gt;

&lt;P&gt;Does your search work fine with different time range? like last 7 Days, last 30 days, last 2months, etc &lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 13:08:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386253#M172122</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-01T13:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my query terminating with "unexpected error"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386254#M172123</link>
      <description>&lt;P&gt;Yes, it works for the fewer time range, say 30 days, 7 days, etc&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 13:13:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386254#M172123</guid>
      <dc:creator>akasthi</dc:creator>
      <dc:date>2019-04-01T13:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my query terminating with "unexpected error"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386255#M172124</link>
      <description>&lt;P&gt;Can you please inspect Job for that?? &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Run the search.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;From the Job menu, select Inspect Job.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.5/Search/ViewsearchjobpropertieswiththeJobInspector"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.5/Search/ViewsearchjobpropertieswiththeJobInspector&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 13:16:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386255#M172124</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-01T13:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my query terminating with "unexpected error"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386256#M172125</link>
      <description>&lt;P&gt;You don't need that dedup command in there. &lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 15:47:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386256#M172125</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-04-01T15:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my query terminating with "unexpected error"?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386257#M172126</link>
      <description>&lt;P&gt;I see you are running the 'Dedup' command on a large data set with a huge time range. This is directly impacting your search performance and the query fails. Never run 'Dedup' Command directly over a search string. When you run a Dedup Command the text of every event in memory is retained which impacts your search performance.&lt;/P&gt;

&lt;P&gt;If you run this search for a short time duration it might work and produce results. But if you run the same search over larger time duration such as 1 year, it will require to retain the text for a long time in the memory and eventually search will fail to complete.&lt;/P&gt;

&lt;P&gt;This is the nature of the Dedup Command and this can not be an error. The dedup command is a streaming command or a dataset processing command, depending on which arguments are specified with the command. &lt;/P&gt;

&lt;P&gt;To fix this, You have to modify your search to restrict only limited dataset to be pulled out. There are multiple ways to modify your search based on your data and make the search fast.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 20:52:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-query-terminating-with-quot-unexpected-error-quot/m-p/386257#M172126</guid>
      <dc:creator>ashutoshab</dc:creator>
      <dc:date>2019-04-01T20:52:09Z</dc:date>
    </item>
  </channel>
</rss>

