<?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: DBConnect Query Failing After Upgrade in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/DBConnect-Query-Failing-After-Upgrade/m-p/707754#M21237</link>
    <description>&lt;P&gt;Some additional information that was somehow omitted from my original post....&lt;/P&gt;&lt;P&gt;If I change date range part of the query from "(7 * 8)" to just "7".&amp;nbsp; The query runs fine.&amp;nbsp; If I change "(7 * 8)" to "(7 * 1)", the query runs fine.&amp;nbsp; If I change "(7 * 8)" to "(7 * 2)"... or any number greater than 2... the query fails with the same error as mentioned in the original post.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Dec 2024 22:47:18 GMT</pubDate>
    <dc:creator>sarge338</dc:creator>
    <dc:date>2024-12-30T22:47:18Z</dc:date>
    <item>
      <title>DBConnect Query Failing After Upgrade</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/DBConnect-Query-Failing-After-Upgrade/m-p/707736#M21234</link>
      <description>&lt;P&gt;I have a DBConnect query that runs to populate the panel of a dashboard every week.&amp;nbsp; We upgraded both the database which houses the data AND Splunk a couple of weeks ago.&amp;nbsp; The new database is Postgres 14 and Spunk is not at 9.2.3.&amp;nbsp; I have run this query directly on the Postgres box, so it appears that Postgres doesn't suddenly have an issue with it.&lt;/P&gt;
&lt;P&gt;Other panels/queries in this dashboard use the same DBConnect connection, so the path, structure, and data all appear to be good.&amp;nbsp; The issue seems to lie with the "math" in the time range, but I cannot put my finger on why.&amp;nbsp; Basically, we are trying to pull a trend of data going back 8 weeks, starting from last week.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;query=" SELECT datekey, policydisposition, count(guid) as events
FROM event_cdr
WHERE datekey &amp;gt;= CURRENT_DATE - CAST(EXTRACT(DOW FROM CURRENT_DATE) as int) - (7*8) AND
               datekey &amp;lt; CURRENT_DATE - CAST(EXTRACT(DOW FROM CURRENT_DATE) as int) AND
direction_flag = 1 AND
policydisposition = 1
GROUP BY
    datekey, policydisposition
ORDER BY
   datekey, policydisposition &lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;When I try to execute this query, I consistently get the following error:&lt;BR /&gt;"Error in 'dbxquery' command: External search command exited unexpectedly.&lt;/P&gt;
&lt;P&gt;The search job has failed due to an error. You may be able view the job in the Job Inspector"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Some of the search.log file is here:&lt;/P&gt;
&lt;P&gt;"12-30-2024 16:00:27.142 INFO PreviewExecutor [3835565 StatusEnforcerThread] - Preview Enforcing initialization done&lt;BR /&gt;12-30-2024 16:00:28.144 INFO ReducePhaseExecutor [3835565 StatusEnforcerThread] - ReducePhaseExecutor=1 action=PREVIEW&lt;BR /&gt;12-30-2024 16:02:27.196 ERROR ChunkedExternProcessor [3835572 phase_1] - EOF while attempting to read transport header read_size=0&lt;BR /&gt;12-30-2024 16:02:27.197 ERROR ChunkedExternProcessor [3835572 phase_1] - Error in 'dbxquery' command: External search command exited unexpectedly.&lt;BR /&gt;12-30-2024 16:02:27.197 WARN ReducePhaseExecutor [3835572 phase_1] - Not downloading remote search.log and telemetry files. Reason: No remote_event_providers.csv file.&lt;BR /&gt;12-30-2024 16:02:27.197 INFO ReducePhaseExecutor [3835572 phase_1] - Ending phase_1&lt;BR /&gt;12-30-2024 16:02:27.197 INFO UserManager [3835572 phase_1] - Unwound user context: User338 -&amp;gt; NULL&lt;BR /&gt;12-30-2024 16:02:27.197 ERROR SearchOrchestrator [3835544 searchOrchestrator] - Phase_1 failed due to : Error in 'dbxquery' command: External search command exited unexpectedly.&lt;BR /&gt;12-30-2024 16:02:27.197 INFO ReducePhaseExecutor [3835565 StatusEnforcerThread] - ReducePhaseExecutor=1 action=QUIT&lt;BR /&gt;12-30-2024 16:02:27.197 INFO DispatchExecutor [3835565 StatusEnforcerThread] - Search applied action=QUIT while status=GROUND&lt;BR /&gt;12-30-2024 16:02:27.197 INFO SearchStatusEnforcer [3835565 StatusEnforcerThread] - sid=1735574426.75524, newState=FAILED, message=Error in 'dbxquery' command: External search command exited unexpectedly.&lt;BR /&gt;12-30-2024 16:02:27.197 ERROR SearchStatusEnforcer [3835565 StatusEnforcerThread] - SearchMessage orig_component=SearchStatusEnforcer sid=1735574426.75524 message_key= message=Error in 'dbxquery' command: External search command exited unexpectedly.&lt;BR /&gt;12-30-2024 16:02:27.197 INFO SearchStatusEnforcer [3835565 StatusEnforcerThread] - State changed to FAILED: Error in 'dbxquery' command: External search command exited unexpectedly.&lt;BR /&gt;12-30-2024 16:02:27.201 INFO UserManager [3835565 StatusEnforcerThread] - Unwound user context: User338 -&amp;gt; NULL&lt;BR /&gt;12-30-2024 16:02:27.202 INFO DispatchManager [3835544 searchOrchestrator] - DispatchManager::dispatchHasFinished(id='1735574426.75524', username='User338')&lt;BR /&gt;12-30-2024 16:02:27.202 INFO UserManager [3835544 searchOrchestrator] - Unwound user context: User338 -&amp;gt; NULL&lt;BR /&gt;12-30-2024 16:02:27.202 INFO SearchOrchestrator [3835541 RunDispatch] - SearchOrchestrator is destructed. sid=1735574426.75524, eval_only=0&lt;BR /&gt;12-30-2024 16:02:27.203 INFO SearchStatusEnforcer [3835541 RunDispatch] - SearchStatusEnforcer is already terminated&lt;BR /&gt;12-30-2024 16:02:27.203 INFO UserManager [3835541 RunDispatch] - Unwound user context: User338 -&amp;gt; NULL&lt;BR /&gt;12-30-2024 16:02:27.203 INFO LookupDataProvider [3835541 RunDispatch] - Clearing out lookup shared provider map&lt;BR /&gt;12-30-2024 16:02:27.206 ERROR dispatchRunner [600422 MainThread] - RunDispatch has failed: sid=1735574426.75524, exit=-1, error=Error in 'dbxquery' command: External search command exited unexpectedly.&lt;BR /&gt;12-30-2024 16:02:27.213 INFO UserManagerPro [600422 MainThread] - Load authentication: forcing roles="db_connect_admin, db_connect_user, slc_user, user""&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 16:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/DBConnect-Query-Failing-After-Upgrade/m-p/707736#M21234</guid>
      <dc:creator>sarge338</dc:creator>
      <dc:date>2024-12-30T16:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: DBConnect Query Failing After Upgrade</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/DBConnect-Query-Failing-After-Upgrade/m-p/707754#M21237</link>
      <description>&lt;P&gt;Some additional information that was somehow omitted from my original post....&lt;/P&gt;&lt;P&gt;If I change date range part of the query from "(7 * 8)" to just "7".&amp;nbsp; The query runs fine.&amp;nbsp; If I change "(7 * 8)" to "(7 * 1)", the query runs fine.&amp;nbsp; If I change "(7 * 8)" to "(7 * 2)"... or any number greater than 2... the query fails with the same error as mentioned in the original post.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2024 22:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/DBConnect-Query-Failing-After-Upgrade/m-p/707754#M21237</guid>
      <dc:creator>sarge338</dc:creator>
      <dc:date>2024-12-30T22:47:18Z</dc:date>
    </item>
  </channel>
</rss>

