<?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: Timechart Search using TextBox in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356987#M105607</link>
    <description>&lt;P&gt;have you tried  this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype="logger" account="0101010101" | eval account=ltrim(field10,"[") | eval account=rtrim(account,"]")  | timechart count by account 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 06 Feb 2018 02:05:16 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-02-06T02:05:16Z</dc:date>
    <item>
      <title>Timechart Search using TextBox</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356986#M105606</link>
      <description>&lt;P&gt;I want to include search box to search account and it should display the timechart also. Please help. Presently only timechart is displaying. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype="logger" | eval account=ltrim(field10,"[") | eval account=rtrim(account,"]")  | timechart count by account | search account=0101010101
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Feb 2018 01:59:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356986#M105606</guid>
      <dc:creator>sathish2k8</dc:creator>
      <dc:date>2018-02-06T01:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Search using TextBox</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356987#M105607</link>
      <description>&lt;P&gt;have you tried  this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype="logger" account="0101010101" | eval account=ltrim(field10,"[") | eval account=rtrim(account,"]")  | timechart count by account 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Feb 2018 02:05:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356987#M105607</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-06T02:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Search using TextBox</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356988#M105608</link>
      <description>&lt;P&gt;how it gets input from text box do we need to use append keyword?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 02:12:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356988#M105608</guid>
      <dc:creator>sathish2k8</dc:creator>
      <dc:date>2018-02-06T02:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Search using TextBox</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356989#M105609</link>
      <description>&lt;P&gt;if you have input like this in xml:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
   &amp;lt;label&amp;gt;sample&amp;lt;/label&amp;gt;
   &amp;lt;fieldset submitButton="false"&amp;gt;
     &amp;lt;input type="text" token="account"&amp;gt;
       &amp;lt;label&amp;gt;Account&amp;lt;/label&amp;gt;
       &amp;lt;initialValue&amp;gt;&amp;lt;/initialValue&amp;gt;
     &amp;lt;/input&amp;gt;
   &amp;lt;/fieldset&amp;gt;
 &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then you can use token value to search like &lt;CODE&gt;$account$&lt;/CODE&gt;&lt;BR /&gt;
then try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype="logger"| eval account=ltrim(field10,"[") | eval account=rtrim(account,"]")  |search account="$account$"| timechart count by account
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Feb 2018 02:29:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356989#M105609</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-06T02:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Search using TextBox</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356990#M105610</link>
      <description>&lt;P&gt;Hey @sathish2k8&lt;/P&gt;

&lt;P&gt;Go to &lt;CODE&gt;dashboards&amp;gt;&amp;gt;create new dashboard&lt;/CODE&gt; and put following XML&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="true"&amp;gt;
    &amp;lt;input type="time" token="field1" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;TimePicker&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
      &amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
    &amp;lt;input type="text" token="account" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Account&amp;lt;/label&amp;gt;
      &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=os sourcetype="logger" | eval account=ltrim(field10,"[") | eval account=rtrim(account,"]")  |search account="$account$"  |  timechart count by account&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$field1.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$field1.latest$&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 06:23:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356990#M105610</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-06T06:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Search using TextBox</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356991#M105611</link>
      <description>&lt;P&gt;not working, chart not loading. &lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 12:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356991#M105611</guid>
      <dc:creator>sathish2k8</dc:creator>
      <dc:date>2018-02-06T12:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart Search using TextBox</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356992#M105612</link>
      <description>&lt;P&gt;i have changed my xml pls check again.&lt;BR /&gt;
as you are formatting &lt;CODE&gt;account&lt;/CODE&gt; then the search should be after &lt;CODE&gt;eval&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=os sourcetype="logger" | eval account=ltrim(field10,"[") | eval account=rtrim(account,"]")  |search account="$account$"  |  timechart count by account
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also after this whenever you enter the text in text box after hitting enter. open in search and see what is getting substituted in the place of account and troubleshoot in that way.&lt;/P&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Feb 2018 12:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-Search-using-TextBox/m-p/356992#M105612</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-06T12:57:43Z</dc:date>
    </item>
  </channel>
</rss>

