<?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: Validate Splunk Form Input in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Validate-Splunk-Form-Input/m-p/54165#M2825</link>
    <description>&lt;P&gt;Is this possible to do ? I'm also trying to achieve something like this?&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jan 2017 06:01:50 GMT</pubDate>
    <dc:creator>rahul_jasrotia</dc:creator>
    <dc:date>2017-01-13T06:01:50Z</dc:date>
    <item>
      <title>Validate Splunk Form Input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Validate-Splunk-Form-Input/m-p/54163#M2823</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;I am new to Splunk. I have a form with 2 input boxes which I would like to validate before performing the search. I want to make sure that the user provides correct input for performing the search. I tried searching the forum and documentation but I couldn't find any info.&lt;/P&gt;

&lt;P&gt;Is there a way to do it?&lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
Suvelee&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2011 15:12:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Validate-Splunk-Form-Input/m-p/54163#M2823</guid>
      <dc:creator>sscandoit</dc:creator>
      <dc:date>2011-08-05T15:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Splunk Form Input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Validate-Splunk-Form-Input/m-p/54164#M2824</link>
      <description>&lt;P&gt;I wish I could also perform input validation in forms. For instance, I would like users to be able to type in an IP address in a text field but would like to make sure it's a valid IP address and is not a splunk search, for instance.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2013 09:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Validate-Splunk-Form-Input/m-p/54164#M2824</guid>
      <dc:creator>yoho</dc:creator>
      <dc:date>2013-11-05T09:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Splunk Form Input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Validate-Splunk-Form-Input/m-p/54165#M2825</link>
      <description>&lt;P&gt;Is this possible to do ? I'm also trying to achieve something like this?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 06:01:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Validate-Splunk-Form-Input/m-p/54165#M2825</guid>
      <dc:creator>rahul_jasrotia</dc:creator>
      <dc:date>2017-01-13T06:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Splunk Form Input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Validate-Splunk-Form-Input/m-p/54166#M2826</link>
      <description>&lt;P&gt;You can try something like this within the search query -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | gentimes start=-1 | eval IP_ADDRESS="10.10.10.10" | eval SEARCH=if(match(IP_ADDRESS,"^\d+\.\d+\.\d+\.\d+$"),[search index=&amp;lt;your_index&amp;gt; earliest=-1m | stats count as count1 by index| return $count1 ] ,"invalid input") | table SEARCH
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here if value of user entered IP_ADDRESS doesn't match the pattern, it will show "invalid input" in the results, else it shows the count from the subsearch.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2017 08:54:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Validate-Splunk-Form-Input/m-p/54166#M2826</guid>
      <dc:creator>dineshraj9</dc:creator>
      <dc:date>2017-01-13T08:54:20Z</dc:date>
    </item>
  </channel>
</rss>

