<?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 How to upload file on dashboard, without navigating to another page? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-upload-file-on-dashboard-without-navigating-to-another/m-p/501394#M139599</link>
    <description>&lt;P&gt;Hi Splunkers,&lt;BR /&gt;
I have a use case to deploy, please refer the image attached.&lt;BR /&gt;
On clicking "choose file" it should browse from the local machine.&lt;BR /&gt;
On clicking upload it shall store the uploaded file on lookups directory of specific app.&lt;BR /&gt;
On Submit button we have a SPL query that will merge the lookup, also in merging the lookup, i have to use the name of the uploaded file, which has to be dynamic&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8590i2B00C0C598E01ED3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2020 04:48:49 GMT</pubDate>
    <dc:creator>sarvesh_11</dc:creator>
    <dc:date>2020-03-27T04:48:49Z</dc:date>
    <item>
      <title>How to upload file on dashboard, without navigating to another page?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-upload-file-on-dashboard-without-navigating-to-another/m-p/501394#M139599</link>
      <description>&lt;P&gt;Hi Splunkers,&lt;BR /&gt;
I have a use case to deploy, please refer the image attached.&lt;BR /&gt;
On clicking "choose file" it should browse from the local machine.&lt;BR /&gt;
On clicking upload it shall store the uploaded file on lookups directory of specific app.&lt;BR /&gt;
On Submit button we have a SPL query that will merge the lookup, also in merging the lookup, i have to use the name of the uploaded file, which has to be dynamic&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/8590i2B00C0C598E01ED3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 04:48:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-upload-file-on-dashboard-without-navigating-to-another/m-p/501394#M139599</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2020-03-27T04:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file on dashboard, without navigating to another page?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-upload-file-on-dashboard-without-navigating-to-another/m-p/501395#M139600</link>
      <description>&lt;P&gt;You need to write JavaScript and python for this.&lt;/P&gt;

&lt;P&gt;Frankly, it's not easy.&lt;/P&gt;

&lt;P&gt;You could extend the rest api to create a file upload endpoint that does most of the logic.  &lt;/P&gt;

&lt;P&gt;The endpoint would be coded so that it accepts file of csv format and puts it in the correct app.&lt;/P&gt;

&lt;P&gt;The JavaScript would be coded so that it uploads the file to the endpoint while staying on the same page.&lt;/P&gt;

&lt;P&gt;The last time I wrote JS to handle a file upload I followed tutorials like this one: &lt;A href="https://www.w3schools.com/jsref/prop_fileupload_files.asp"&gt;https://www.w3schools.com/jsref/prop_fileupload_files.asp&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2020 10:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-upload-file-on-dashboard-without-navigating-to-another/m-p/501395#M139600</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-03-27T10:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file on dashboard, without navigating to another page?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-upload-file-on-dashboard-without-navigating-to-another/m-p/536616#M151735</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/44240"&gt;@sarvesh_11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you find any workaround to upload the file to Splunk server via dashboard??&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 05:29:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-upload-file-on-dashboard-without-navigating-to-another/m-p/536616#M151735</guid>
      <dc:creator>gaurav_maniar</dc:creator>
      <dc:date>2021-01-21T05:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file on dashboard, without navigating to another page?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-upload-file-on-dashboard-without-navigating-to-another/m-p/536621#M151737</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/44240"&gt;@sarvesh_11&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can launch inbuilt upload lookup file page from the dashboard. User will upload the CSV file and come back to the dashboard and provide the CSV file name which will be used in your search. Try this.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Upload Lookup File&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;html&amp;gt;
        &amp;lt;a href="/manager/$env:app$/data/lookup-table-files/_new?action=edit" target="_blank"&amp;gt;Upload Lookup File&amp;lt;/a&amp;gt;
        &amp;lt;p&amp;gt; Click on above link to upload a CSV lookup file and save. Come back to this page and provide &amp;lt;b&amp;gt;Destination filename&amp;lt;/b&amp;gt; in text below input.&amp;lt;/p&amp;gt;
      &amp;lt;/html&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;input type="text" token="file_name" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;CSV Lookup File Name (Suffix with ".csv")&amp;lt;/label&amp;gt;
      &amp;lt;/input&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;event&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" | lookup $file_name$ field as event_field OUTPUT output_field&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="list.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/event&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;If this reply helps you, an upvote/like would be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 06:18:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-upload-file-on-dashboard-without-navigating-to-another/m-p/536621#M151737</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2021-01-21T06:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to upload file on dashboard, without navigating to another page?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-upload-file-on-dashboard-without-navigating-to-another/m-p/536625#M151740</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we did exactly the same what you mentioned.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2021 06:50:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-upload-file-on-dashboard-without-navigating-to-another/m-p/536625#M151740</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2021-01-21T06:50:38Z</dc:date>
    </item>
  </channel>
</rss>

