<?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: How to query a field in DBXQuery that contains colon? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-field-in-DBXQuery-that-contains-colon/m-p/656251#M226665</link>
    <description>&lt;P&gt;Try brackets around the field name - [abc:def]&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2023 11:42:45 GMT</pubDate>
    <dc:creator>etoombs</dc:creator>
    <dc:date>2023-08-31T11:42:45Z</dc:date>
    <item>
      <title>How to query a field in DBXQuery that contains colon?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-field-in-DBXQuery-that-contains-colon/m-p/656121#M226617</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;How to query a field in DBXQuery that contains colon?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;I ran the following query and got an error.&amp;nbsp; Thank you&amp;nbsp;&lt;BR /&gt;| dbxquery connection=visibility query="select abc:def from tableCompany"&lt;BR /&gt;&lt;SPAN&gt;org.postgresql.util.PSQLException: ERROR: syntax error at or near ":" Position:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;I tried to put single quote&lt;BR /&gt;| dbxquery connection=visibility query="select 'abc:def' from tableCompany"&lt;BR /&gt;but it gave me the following result&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="100%"&gt;?column?&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;abc:def&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="100%"&gt;abc:def&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 14:55:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-field-in-DBXQuery-that-contains-colon/m-p/656121#M226617</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2023-08-30T14:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a field in DBXQuery that contains colon?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-field-in-DBXQuery-that-contains-colon/m-p/656251#M226665</link>
      <description>&lt;P&gt;Try brackets around the field name - [abc:def]&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 11:42:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-field-in-DBXQuery-that-contains-colon/m-p/656251#M226665</guid>
      <dc:creator>etoombs</dc:creator>
      <dc:date>2023-08-31T11:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a field in DBXQuery that contains colon?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-field-in-DBXQuery-that-contains-colon/m-p/656270#M226674</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I put brackets around the field name &lt;SPAN&gt;[abc:def]&lt;/SPAN&gt;, but it still didn't work and got the following error&lt;BR /&gt;&lt;SPAN&gt;org.postgresql.util.PSQLException: ERROR: syntax error at or near "["&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 13:26:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-field-in-DBXQuery-that-contains-colon/m-p/656270#M226674</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2023-08-31T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a field in DBXQuery that contains colon?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-field-in-DBXQuery-that-contains-colon/m-p/656284#M226682</link>
      <description>&lt;P&gt;My bad. I didn't look to see what database you were using. You may need quotes around it = "abc:def". Since you're doing this inside a quoted string, you may need to escape them as \" in the string.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 15:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-field-in-DBXQuery-that-contains-colon/m-p/656284#M226682</guid>
      <dc:creator>etoombs</dc:creator>
      <dc:date>2023-08-31T15:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to query a field in DBXQuery that contains colon?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-field-in-DBXQuery-that-contains-colon/m-p/656306#M226686</link>
      <description>&lt;P&gt;&lt;BR /&gt;Your suggestion worked. Thank you so much&lt;BR /&gt;&lt;SPAN&gt;| dbxquery connection=visibility query="select \"abc:def\" from tableCompany"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 17:59:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-a-field-in-DBXQuery-that-contains-colon/m-p/656306#M226686</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2023-08-31T17:59:47Z</dc:date>
    </item>
  </channel>
</rss>

