<?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: Splunk search based on textbook field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639109#M221442</link>
    <description>&lt;P&gt;Have a hidden base search that uses the input from the text box and changes the "$host_from_textbox_token$" value from it like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults
| eval host="$host_from_textbox_token$"
| lookup dnslookup clienthost AS host OUTPUT clientip AS ipFromHost
| lookup dnslookup clientip AS host OUTPUT clienthost AS hostFromIp
| rex field=host "(?&amp;lt;barehost&amp;gt;.*?)\.\w+\.\w+$"
| eval host = mvappend(host, ipFromHost, hostFromIp, barehost)
| table host
| format&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Then use grab "$result.search$" in the "change" section to set another token and use that one everywhere else.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 23:00:52 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2023-04-06T23:00:52Z</dc:date>
    <item>
      <title>How to create Splunk search based on textbox field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639038#M221425</link>
      <description>&lt;P&gt;I have a splunk search query which shows the details but the problem here is it only shows the results if the hostname passed in the text box is with fqdn. If hostname entered is without fqdn it won't show any result. How do I make the query to work if I pass abc123.xyz.com or abc123.&lt;/P&gt;
&lt;P&gt;Apologizes if it's already answered, very new to Splunk.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 16:18:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639038#M221425</guid>
      <dc:creator>srv007</dc:creator>
      <dc:date>2023-04-10T16:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search based on textbook field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639039#M221426</link>
      <description>&lt;P&gt;Correction -&lt;/P&gt;&lt;P&gt;It's text box pannel and not text book.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 15:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639039#M221426</guid>
      <dc:creator>srv007</dc:creator>
      <dc:date>2023-04-06T15:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search based on textbook field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639043#M221428</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255618"&gt;@srv007&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;are you speaking of a text input panel to perform a search?&lt;/P&gt;&lt;P&gt;If yes, you can add an asterisk in prefix and suffix:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;input type="text" token="user"&amp;gt;
      &amp;lt;label&amp;gt;User&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;prefix&amp;gt;user="*&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;*"&amp;lt;/suffix&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;user&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;user&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 16:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639043#M221428</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-04-06T16:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search based on textbook field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639109#M221442</link>
      <description>&lt;P&gt;Have a hidden base search that uses the input from the text box and changes the "$host_from_textbox_token$" value from it like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults
| eval host="$host_from_textbox_token$"
| lookup dnslookup clienthost AS host OUTPUT clientip AS ipFromHost
| lookup dnslookup clientip AS host OUTPUT clienthost AS hostFromIp
| rex field=host "(?&amp;lt;barehost&amp;gt;.*?)\.\w+\.\w+$"
| eval host = mvappend(host, ipFromHost, hostFromIp, barehost)
| table host
| format&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Then use grab "$result.search$" in the "change" section to set another token and use that one everywhere else.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 23:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639109#M221442</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2023-04-06T23:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search based on textbox field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639164#M221461</link>
      <description>&lt;P&gt;Welcome to Splunk Community&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255618"&gt;@srv007&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;I think answer by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;should solve your problem. (Basically using wildcard).&lt;/P&gt;</description>
      <pubDate>Fri, 07 Apr 2023 06:22:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639164#M221461</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-04-07T06:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk search based on textbox field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639373#M221529</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255618"&gt;@srv007&lt;/a&gt;, I'm a Splunk Community Moderator,&lt;/P&gt;&lt;P&gt;Kindly accept the answer posted by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;,&amp;nbsp; as that's the answer to your question.&lt;/P&gt;&lt;P&gt;On my post, you can add "Karma/Upvote" if you like it. That would be appreciated!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255618"&gt;@srv007&lt;/a&gt;&amp;nbsp;, Happy Splunking!!!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Apr 2023 15:08:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-Splunk-search-based-on-textbox-field/m-p/639373#M221529</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2023-04-10T15:08:09Z</dc:date>
    </item>
  </channel>
</rss>

