<?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 Search query does not return any values in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Search-query-does-not-return-any-values/m-p/508764#M86544</link>
    <description>&lt;P&gt;User complains that the following query is not returning any values in Splunk.&amp;nbsp;&lt;/P&gt;&lt;P&gt;dbquery wmsewprd&amp;nbsp; "select REC_TYPE, CODE_TYPE, CODE_DESC, SHORT_DESC, USER_ID from SYS_CODE_TYPE"&lt;/P&gt;&lt;P&gt;0 events&lt;/P&gt;&lt;P&gt;Time range picker : All time&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when he runs the same query at database end it is returning results.&lt;/P&gt;&lt;P&gt;Following is the query he is running on database.&lt;/P&gt;&lt;P&gt;select REC_TYPE, CODE_TYPE, CODE_DESC, SHORT_DESC, USER_ID from wmsew.SYS_CODE_TYPE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why it is not returning any results when we run in splunk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jul 2020 09:46:03 GMT</pubDate>
    <dc:creator>pratapa</dc:creator>
    <dc:date>2020-07-13T09:46:03Z</dc:date>
    <item>
      <title>Search query does not return any values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-query-does-not-return-any-values/m-p/508764#M86544</link>
      <description>&lt;P&gt;User complains that the following query is not returning any values in Splunk.&amp;nbsp;&lt;/P&gt;&lt;P&gt;dbquery wmsewprd&amp;nbsp; "select REC_TYPE, CODE_TYPE, CODE_DESC, SHORT_DESC, USER_ID from SYS_CODE_TYPE"&lt;/P&gt;&lt;P&gt;0 events&lt;/P&gt;&lt;P&gt;Time range picker : All time&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when he runs the same query at database end it is returning results.&lt;/P&gt;&lt;P&gt;Following is the query he is running on database.&lt;/P&gt;&lt;P&gt;select REC_TYPE, CODE_TYPE, CODE_DESC, SHORT_DESC, USER_ID from wmsew.SYS_CODE_TYPE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why it is not returning any results when we run in splunk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 09:46:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-query-does-not-return-any-values/m-p/508764#M86544</guid>
      <dc:creator>pratapa</dc:creator>
      <dc:date>2020-07-13T09:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Search query does not return any values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-query-does-not-return-any-values/m-p/508922#M86568</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/207957"&gt;@pratapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the users are trying the SPL you shared here, then The syntax is not correct&lt;/P&gt;&lt;P&gt;Please try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dbxquery connection="connection_name" query="select REC_TYPE, CODE_TYPE, CODE_DESC, SHORT_DESC, USER_ID from SYS_CODE_TYPE"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 04:14:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-query-does-not-return-any-values/m-p/508922#M86568</guid>
      <dc:creator>anilchaithu</dc:creator>
      <dc:date>2020-07-14T04:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search query does not return any values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Search-query-does-not-return-any-values/m-p/509032#M86580</link>
      <description>&lt;P&gt;This worked.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dbquery wmsewprd&amp;nbsp; "select REC_TYPE, CODE_TYPE, CODE_DESC, SHORT_DESC, USER_ID from SYS_CODE_TYPE"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We created database connection under setting-&amp;gt;External Databases and after that restarted splunk on the host.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When we tried the below query, it worked.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dbquery wmsewprd&amp;nbsp; "select REC_TYPE, CODE_TYPE, CODE_DESC, SHORT_DESC, USER_ID from SYS_CODE_TYPE"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This issue is resolved.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 10:29:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Search-query-does-not-return-any-values/m-p/509032#M86580</guid>
      <dc:creator>pratapa</dc:creator>
      <dc:date>2020-07-14T10:29:29Z</dc:date>
    </item>
  </channel>
</rss>

