<?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 is it possible to store the value into index which is given by user in textbox? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/is-it-possible-to-store-the-value-into-index-which-is-given-by/m-p/549074#M9831</link>
    <description>&lt;P&gt;Dear team,&lt;/P&gt;&lt;P&gt;Can you please help me on the below query:&lt;/P&gt;&lt;P&gt;We have a textbox in the Dashboard, whatever the value is given to the textbox that need to be stored in index.&lt;/P&gt;&lt;P&gt;is it possible in splunk?&lt;/P&gt;</description>
    <pubDate>Fri, 23 Apr 2021 07:48:56 GMT</pubDate>
    <dc:creator>vengat4043</dc:creator>
    <dc:date>2021-04-23T07:48:56Z</dc:date>
    <item>
      <title>is it possible to store the value into index which is given by user in textbox?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/is-it-possible-to-store-the-value-into-index-which-is-given-by/m-p/549074#M9831</link>
      <description>&lt;P&gt;Dear team,&lt;/P&gt;&lt;P&gt;Can you please help me on the below query:&lt;/P&gt;&lt;P&gt;We have a textbox in the Dashboard, whatever the value is given to the textbox that need to be stored in index.&lt;/P&gt;&lt;P&gt;is it possible in splunk?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 07:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/is-it-possible-to-store-the-value-into-index-which-is-given-by/m-p/549074#M9831</guid>
      <dc:creator>vengat4043</dc:creator>
      <dc:date>2021-04-23T07:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: is it possible to store the value into index which is given by user in textbox?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/is-it-possible-to-store-the-value-into-index-which-is-given-by/m-p/549079#M9832</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/217013"&gt;@vengat4043&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I try to help, but maybe I don't understand the point.&lt;/P&gt;&lt;P&gt;anyway the splunk command to collect search results on a index is: "collect"&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.3/SearchReference/Collect" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.1.3/SearchReference/Collect&lt;/A&gt;&lt;/P&gt;&lt;P&gt;now I built a dashboard with your request, a textbox and a panel with a collect comand to add the results on one index&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;test dashboard&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="true"&amp;gt;
    &amp;lt;input type="text" token="field1"&amp;gt;
      &amp;lt;label&amp;gt;textbox&amp;lt;/label&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;title&amp;gt;fieldbox&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;* | eval fieldbox="$field1$" | table fieldbox _time | head 1 | collect index="name of index"&amp;lt;/query&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;/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;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please, remember to change the name of index on the search present in Dashboard&lt;/P&gt;&lt;P&gt;I hope this can help&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 08:16:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/is-it-possible-to-store-the-value-into-index-which-is-given-by/m-p/549079#M9832</guid>
      <dc:creator>aasabatini</dc:creator>
      <dc:date>2021-04-23T08:16:17Z</dc:date>
    </item>
  </channel>
</rss>

