<?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: Form Creation, Wildcard use in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19904#M3079</link>
    <description>&lt;P&gt;Turns out it was the escape character, I tested that before, and it didn't work, tested again to try to digest what the CDATA statement does and it worked, must have fat-fingered it somewhere. So my origional code was correct except for the escape character you recommended. Thanks again!&lt;/P&gt;</description>
    <pubDate>Thu, 05 Apr 2012 14:28:51 GMT</pubDate>
    <dc:creator>jsb22</dc:creator>
    <dc:date>2012-04-05T14:28:51Z</dc:date>
    <item>
      <title>Form Creation, Wildcard use</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19899#M3074</link>
      <description>&lt;P&gt;Essentailly I'm trying to create a form that uses a wildcard by default so users can just hit search on page load and get all values of the field, then the user can input specific values in the field so they can limit what they're seeing. When I specify "&amp;lt; default&amp;gt;*&amp;lt; /default&amp;gt;" it errors out with "Error in 'search' command: Unable to parse the search: Comparator '=' is missing a term on the right hand side". THe fieldset and searchTemplate stream is as follows: &lt;/P&gt;

&lt;P&gt;&amp;lt; fieldset&amp;gt;&lt;BR /&gt;
    &amp;lt; input type="text" token="Administrator" /&amp;gt;&lt;BR /&gt;
    &amp;lt; default&amp;gt;*&amp;lt; /default&amp;gt;&lt;BR /&gt;
  &amp;lt; /fieldset&amp;gt;&lt;/P&gt;

&lt;P&gt;&amp;lt; searchTemplate&amp;gt;(index=windows_7 OR index=windows_2008_R2) source=wineventlog:security EventCode=4720 src_user=$Administrator$ | table _time, src_user, host, dest_nt_domain, signature, user, Display_Name&amp;lt; /searchTemplate&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:37:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19899#M3074</guid>
      <dc:creator>jsb22</dc:creator>
      <dc:date>2020-09-28T11:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Form Creation, Wildcard use</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19900#M3075</link>
      <description>&lt;P&gt;I may be missing something but I don't know why you have to used &lt;CODE&gt;\&lt;/CODE&gt; in your search string.. &lt;/P&gt;

&lt;P&gt;You can use HTML characters (link &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Developer/AdvancedIntro#Use_HTML_entities_for_special_characters"&gt;here&lt;/A&gt;) or you can encase your search in CDATA brackets. However I do not see any of these special characters in your XML.&lt;/P&gt;

&lt;P&gt;I have put a working form example in the comment below (for some reason I couldn't get it to appear in answer correctly.. even with "Code Sample" or backticks).&lt;/P&gt;

&lt;P&gt;Alos notice I have encased &lt;CODE&gt;$SRC$&lt;/CODE&gt; in &lt;CODE&gt;*&lt;/CODE&gt;'s, this allows for wildcarding on text entered.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;MHibbin&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2012 14:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19900#M3075</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-04-05T14:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Form Creation, Wildcard use</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19901#M3076</link>
      <description>&lt;FORM&gt;

  &lt;LABEL&gt;Simple table&lt;/LABEL&gt;

  &lt;SEARCHTEMPLATE&gt;

(index=main OR index=test) SRC=`*$SRC$*` | stats count by SRC DST

  &lt;/SEARCHTEMPLATE&gt;

  &lt;EARLIESTTIME&gt;-30d&lt;/EARLIESTTIME&gt;

  &lt;LATESTTIME&gt;-0d&lt;/LATESTTIME&gt;


  
  &lt;FIELDSET&gt;

  &lt;INPUT type="text" token="SRC" /&gt;

    &lt;LABEL&gt;SRC&lt;/LABEL&gt;

    &lt;DEFAULT&gt;*&lt;/DEFAULT&gt;

  

&lt;/FIELDSET&gt;


  
  &lt;ROW&gt;


      &lt;TABLE&gt;


          &lt;TITLE&gt;test&lt;/TITLE&gt;


          20


      &lt;/TABLE&gt;


  &lt;/ROW&gt;


&lt;/FORM&gt;</description>
      <pubDate>Thu, 05 Apr 2012 14:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19901#M3076</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-04-05T14:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Form Creation, Wildcard use</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19902#M3077</link>
      <description>&lt;P&gt;Ha! Ok... I just edited answer... was having some issues getting Splunkbase to allow my XML... kept creating a form input in the answer!!! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2012 14:22:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19902#M3077</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-04-05T14:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Form Creation, Wildcard use</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19903#M3078</link>
      <description>&lt;P&gt;Also to add in for others... the CDATA syntax would be&lt;/P&gt;

&lt;P&gt;&lt;SEARCHTEMPLATE&gt;&lt;BR /&gt;
&amp;lt;![CDATA[search_string_here]]&amp;gt;&lt;BR /&gt;
&lt;/SEARCHTEMPLATE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:37:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19903#M3078</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2020-09-28T11:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Form Creation, Wildcard use</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19904#M3079</link>
      <description>&lt;P&gt;Turns out it was the escape character, I tested that before, and it didn't work, tested again to try to digest what the CDATA statement does and it worked, must have fat-fingered it somewhere. So my origional code was correct except for the escape character you recommended. Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2012 14:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19904#M3079</guid>
      <dc:creator>jsb22</dc:creator>
      <dc:date>2012-04-05T14:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Form Creation, Wildcard use</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19905#M3080</link>
      <description>&lt;P&gt;Great News!!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Apr 2012 14:35:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Form-Creation-Wildcard-use/m-p/19905#M3080</guid>
      <dc:creator>MHibbin</dc:creator>
      <dc:date>2012-04-05T14:35:30Z</dc:date>
    </item>
  </channel>
</rss>

