<?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: Show fields containing X? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Show-fields-containing-X/m-p/28561#M971</link>
    <description>&lt;P&gt;Have you tried this (using your SQL as a guide to the Splunk Search Language equivalent):&lt;/P&gt;

&lt;P&gt;index=mydb sourcetype=my_table "Description"&lt;/P&gt;

&lt;P&gt;Alternatively, you can use search time field extractions to create a "description" field, then you can selectively search your data for something specific in "Description". Check it out at &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Knowledge/Addfieldsatsearchtime"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Knowledge/Addfieldsatsearchtime&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 09 May 2013 13:11:34 GMT</pubDate>
    <dc:creator>rgcurry</dc:creator>
    <dc:date>2013-05-09T13:11:34Z</dc:date>
    <item>
      <title>Show fields containing X?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Show-fields-containing-X/m-p/28560#M970</link>
      <description>&lt;P&gt;Hi, I'm using dbconnect app&lt;/P&gt;

&lt;P&gt;Have some fields that contain long strings of text, want to search for only those results that have a certain word (X) within them&lt;/P&gt;

&lt;P&gt;To phrase it another way trying to do something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbquery "MYDB" "select text_field from my_table where text_field contains "Description""
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2013 22:54:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Show-fields-containing-X/m-p/28560#M970</guid>
      <dc:creator>kbcuait</dc:creator>
      <dc:date>2013-05-08T22:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Show fields containing X?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Show-fields-containing-X/m-p/28561#M971</link>
      <description>&lt;P&gt;Have you tried this (using your SQL as a guide to the Splunk Search Language equivalent):&lt;/P&gt;

&lt;P&gt;index=mydb sourcetype=my_table "Description"&lt;/P&gt;

&lt;P&gt;Alternatively, you can use search time field extractions to create a "description" field, then you can selectively search your data for something specific in "Description". Check it out at &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/Knowledge/Addfieldsatsearchtime"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/Knowledge/Addfieldsatsearchtime&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2013 13:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Show-fields-containing-X/m-p/28561#M971</guid>
      <dc:creator>rgcurry</dc:creator>
      <dc:date>2013-05-09T13:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show fields containing X?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Show-fields-containing-X/m-p/28562#M972</link>
      <description>&lt;P&gt;Hi, "No matching events found" – I'm not sure how to search the db without using &lt;CODE&gt;| dbconnect&lt;/CODE&gt; (I don't see the db info listed in the summary anywhere)&lt;/P&gt;

&lt;P&gt;...Where to go from here?&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2013 16:11:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Show-fields-containing-X/m-p/28562#M972</guid>
      <dc:creator>kbcuait</dc:creator>
      <dc:date>2013-05-09T16:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show fields containing X?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Show-fields-containing-X/m-p/28563#M973</link>
      <description>&lt;P&gt;What you're trying to do is restrict your results in your SQL query.  It should look like this:&lt;/P&gt;

&lt;P&gt;| dbquery "MYDB" "SELECT text_field FROM my_table WHERE text_field LIKE '%Description%' "&lt;/P&gt;

&lt;P&gt;The "LIKE" command searches for any string that contains the string you feed it.  The "%" character is a wildcard, so %description% will match any text field that contains the string 'description'.&lt;/P&gt;

&lt;P&gt;Also be sure to verify the correct use of SQL quotes within your Splunk search. &lt;BR /&gt;
Here's a simple manual page on the subject:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://www.techonthenet.com/sql/like.php" target="_blank"&gt;http://www.techonthenet.com/sql/like.php&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Show-fields-containing-X/m-p/28563#M973</guid>
      <dc:creator>Jon_Webster</dc:creator>
      <dc:date>2020-09-28T13:52:33Z</dc:date>
    </item>
  </channel>
</rss>

