<?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 Insert data through a form/view? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Insert-data-through-a-form-view/m-p/47405#M2334</link>
    <description>&lt;P&gt;Is it possible that splunk read data through a view and after I click submit button, it will pull the data into a index? How can I do that?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Aug 2013 10:19:17 GMT</pubDate>
    <dc:creator>cycheng</dc:creator>
    <dc:date>2013-08-27T10:19:17Z</dc:date>
    <item>
      <title>Insert data through a form/view?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Insert-data-through-a-form-view/m-p/47405#M2334</link>
      <description>&lt;P&gt;Is it possible that splunk read data through a view and after I click submit button, it will pull the data into a index? How can I do that?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 10:19:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Insert-data-through-a-form-view/m-p/47405#M2334</guid>
      <dc:creator>cycheng</dc:creator>
      <dc:date>2013-08-27T10:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data through a form/view?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Insert-data-through-a-form-view/m-p/47406#M2335</link>
      <description>&lt;P&gt;As far as I know, this functionality is not supported out of the box. Data onboarding best-practice typically involves examining the data away from Splunk before loading it in.&lt;/P&gt;

&lt;P&gt;Uploading a file via the Manager console (&lt;STRONG&gt;Manager » Add data » A file or directory of files&lt;/STRONG&gt;) is probably the closest you'll get to what your after when you use it conjunction with the "Preview data before indexing" used. There's a few button clicks involved, but it does what you're after.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 12:46:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Insert-data-through-a-form-view/m-p/47406#M2335</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2013-08-27T12:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data through a form/view?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Insert-data-through-a-form-view/m-p/47407#M2336</link>
      <description>&lt;P&gt;I do something like this to allow users to submit comments / ratings / observations about events. The basic idea is that you create a 'custom command' which is a script that process the input of a search. The input is generated within a view (text box or other form selections). The values are submitted to a search module which makes the call to the custom command.&lt;/P&gt;

&lt;P&gt;so a basic diagrammy thing:&lt;/P&gt;

&lt;P&gt;view&lt;BR /&gt;
   form fields&lt;BR /&gt;
        submit button&lt;BR /&gt;
             search - &lt;BR /&gt;
              | eval value1=$formfield1$ | eval value2=$formfield2$ | &lt;MY_CUSTOM_COMMAND_NAME&gt;&lt;/MY_CUSTOM_COMMAND_NAME&gt;&lt;/P&gt;

&lt;P&gt;The custom command refers to a script, perl in my case, that resides in $splunk_home$/etc/apps/my_app/bin. This script simply reads the input from the search and writes the data. I write data to a database which I then create a scripted input in order to have splunk monitor and index those user submitted events. You might prefer to use a 'lookup' if the data is more supplemental to your existing events rather then separate events. &lt;/P&gt;

&lt;P&gt;I write to a database but you could easily just write to a csv that is being monitored or is being used as a lookup table.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Insert-data-through-a-form-view/m-p/47407#M2336</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2020-09-28T15:10:51Z</dc:date>
    </item>
  </channel>
</rss>

