<?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: Interactively open text/csv file based on the selection from the dropdown list in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363378#M66205</link>
    <description>&lt;P&gt;Try adding the lookup files through Splunk Web menu &lt;CODE&gt;Settings &amp;gt; Lookup &amp;gt; Lookup table files&lt;/CODE&gt;&lt;BR /&gt;
by default they should be stored in the following Splunk path&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`$SPLUNK_HOME/etc/apps/&amp;lt;YourAppName&amp;gt;/lookups`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So if you plan to place the files manually, you should place the same here.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2017 15:49:11 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2017-08-14T15:49:11Z</dc:date>
    <item>
      <title>Interactively open text/csv file based on the selection from the dropdown list</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363371#M66198</link>
      <description>&lt;P&gt;Hi everyone, I would like to ask on how to achieve this or if it is possible to implement. I have a dashboard with a simple drop down that shows the student name where I can select.  If I select a student name from the drop down list, I want to display the contents on a text/csv file which store in the local disk. the filename of the file is the same as the student_name it contains some information about the student.&lt;/P&gt;

&lt;P&gt;the filename format is something like below:&lt;BR /&gt;
student_name1.csv&lt;BR /&gt;
student_name2.csv&lt;BR /&gt;
student_name3.csv &lt;BR /&gt;
and so on.. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Student Record&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;

    &amp;lt;input type="dropdown" token="student_name"&amp;gt;
      &amp;lt;label&amp;gt;Student Name&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt; "SELECT student_name FROM student_records" shortnames=true | table student_name | sort student_name &amp;lt;/query&amp;gt;
      &amp;lt;/search&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;  $student_name$  &amp;lt;/query&amp;gt;
        &amp;lt;/search&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;How do I achieve this that when I select a student name from the drop down, it will open a text/csv file from the local disk?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363371#M66198</guid>
      <dc:creator>wiggler</dc:creator>
      <dc:date>2020-09-29T15:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Interactively open text/csv file based on the selection from the dropdown list</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363372#M66199</link>
      <description>&lt;P&gt;try this &lt;/P&gt;

&lt;P&gt;&amp;lt;query&amp;gt; | inputlookup  student_name*.csv | table student_name | sort student_name &amp;lt;/query&amp;gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:20:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363372#M66199</guid>
      <dc:creator>sbbadri</dc:creator>
      <dc:date>2020-09-29T15:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Interactively open text/csv file based on the selection from the dropdown list</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363373#M66200</link>
      <description>&lt;P&gt;@wiggler, have you tried the following? Token &lt;CODE&gt;$student_name$&lt;/CODE&gt; from the dropdown to be passed on to the filename for inputlookup: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&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;| inputlookup $student_name$.csv&amp;lt;/query&amp;gt;
         &amp;lt;/search&amp;gt;
       &amp;lt;/table&amp;gt;
     &amp;lt;/panel&amp;gt;
   &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 12 Aug 2017 09:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363373#M66200</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-12T09:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Interactively open text/csv file based on the selection from the dropdown list</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363374#M66201</link>
      <description>&lt;P&gt;@niketnilay, your solution works and I was able to view the csv file. Question is, what if the CSV is located under a subfolder? &lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 12:25:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363374#M66201</guid>
      <dc:creator>wiggler</dc:creator>
      <dc:date>2017-08-14T12:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Interactively open text/csv file based on the selection from the dropdown list</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363375#M66202</link>
      <description>&lt;P&gt;@sbbadri, thank for you suggestion.  &lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 12:26:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363375#M66202</guid>
      <dc:creator>wiggler</dc:creator>
      <dc:date>2017-08-14T12:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Interactively open text/csv file based on the selection from the dropdown list</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363376#M66203</link>
      <description>&lt;P&gt;@wiggler, I dont know what you imply by lookup under sub-folder. Ideally when lookup is defined it can be directly accessed by its name. Are you indexing csv file or have you uploaded them as lookup? Or is the question about lookup in separate Splunk apps with access permissions not Global?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 14:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363376#M66203</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-14T14:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Interactively open text/csv file based on the selection from the dropdown list</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363377#M66204</link>
      <description>&lt;P&gt;Hi @niketnilay, sorry for the confusion. What I mean is that under the default lookup directory,  I created a directory with CSV files on it.  but when I tried, the inputlook doesn't work on sub-directories. So I would like to know if there's an option or setting that I need to enable to make it work.  I am not sure about the access permission and global but my app is only using the default lookup path. thanks a lot &lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 14:49:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363377#M66204</guid>
      <dc:creator>wiggler</dc:creator>
      <dc:date>2017-08-14T14:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Interactively open text/csv file based on the selection from the dropdown list</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363378#M66205</link>
      <description>&lt;P&gt;Try adding the lookup files through Splunk Web menu &lt;CODE&gt;Settings &amp;gt; Lookup &amp;gt; Lookup table files&lt;/CODE&gt;&lt;BR /&gt;
by default they should be stored in the following Splunk path&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`$SPLUNK_HOME/etc/apps/&amp;lt;YourAppName&amp;gt;/lookups`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So if you plan to place the files manually, you should place the same here.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 15:49:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363378#M66205</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-14T15:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Interactively open text/csv file based on the selection from the dropdown list</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363379#M66206</link>
      <description>&lt;P&gt;@niketnilay, so it's not really possible to have a sub-folder under the default lookup just like below:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`$SPLUNK_HOME/etc/apps/&amp;lt;YourAppName&amp;gt;/lookups/mysubfolderhere`
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;then in that mysubfolderhere contains csv's that I manually upload from time to time.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 06:18:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363379#M66206</guid>
      <dc:creator>wiggler</dc:creator>
      <dc:date>2017-08-15T06:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Interactively open text/csv file based on the selection from the dropdown list</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363380#M66207</link>
      <description>&lt;P&gt;Not as far as I know!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2017 13:01:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Interactively-open-text-csv-file-based-on-the-selection-from-the/m-p/363380#M66207</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-15T13:01:18Z</dc:date>
    </item>
  </channel>
</rss>

