<?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: Get the number of events returned in a csv through a text input in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-the-number-of-events-returned-in-a-csv-through-a-text-input/m-p/510261#M34021</link>
    <description>&lt;P&gt;One other question to add to this ,if there were multiple columns,&amp;nbsp; for example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;Stock Ticker&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Stock price&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Company Name&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Address&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Owner&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;IBM&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;120&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;IBM&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;1 Main Street&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Neera&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;NFLX&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;240&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Netflix&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;23 Exchange Blvd&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Jill&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;EE&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;360&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Eric's Electric&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;999 Ways And Means&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Eric&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;Spl&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;480&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Splunk&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;10 Joseph Street&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Paul&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the user typed in&amp;nbsp; "ee"&lt;/P&gt;&lt;P&gt;I've tried with&amp;nbsp; :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| inputlookup Stocks.csv where Stock_ticker="*$Stocks$*"|where Stock_price="*$Stocks$*" |where Company_Name&amp;nbsp;="*$Stocks$*" |where Address&amp;nbsp; ="*$Stocks$*" |where Owner ="*$Stocks$*"&amp;nbsp;&lt;BR /&gt;| stats count&lt;/P&gt;&lt;P&gt;and the return value is always 0..... is there&amp;nbsp; a way to &lt;STRONG&gt;return the number of rows&amp;nbsp; 3&lt;/STRONG&gt;,&amp;nbsp; instead of returning&amp;nbsp; an incorrect value of 0 or returning an incorrect value of 4 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jul 2020 16:49:51 GMT</pubDate>
    <dc:creator>learningsplunk</dc:creator>
    <dc:date>2020-07-21T16:49:51Z</dc:date>
    <item>
      <title>Get the number of events returned in a csv through a text input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-the-number-of-events-returned-in-a-csv-through-a-text-input/m-p/510164#M34015</link>
      <description>&lt;P&gt;example file : Stocks.csv&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="50%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Stock ticker&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Stock price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;IBM&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;120&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;NFLX&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;240&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="10px"&gt;APPL&lt;/TD&gt;&lt;TD width="25%" height="10px"&gt;999&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in the dashboard it will show:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Number of stocks selected by input&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;User has a text input where they can put a search term that will search both columns at once. ( The token for the search query is $Stocks$)&lt;BR /&gt;&lt;BR /&gt;If the user puts in say "L"&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is what will return :&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="50%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;Stock ticker&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;Stock price&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;NFLX&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;240&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;APPL&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;999&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="25%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="25%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And in the dashboard it will show:&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="50%" height="25px"&gt;Number of stocks selected by input&lt;/TD&gt;&lt;TD width="50%" height="25px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;I've tried this query :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;|inputlookup&amp;nbsp;Stocks.csv |stats count as Total&amp;nbsp; &amp;nbsp; ( which only gets the total number of stocks back in the csv file.... NOT the actual number of stocks selected by the user from their text input......)&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;However is there any way possible to get the " Number of stocks selected by input" correctly ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 05:54:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Get-the-number-of-events-returned-in-a-csv-through-a-text-input/m-p/510164#M34015</guid>
      <dc:creator>learningsplunk</dc:creator>
      <dc:date>2020-07-21T05:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get the number of events returned in a csv through a text input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-the-number-of-events-returned-in-a-csv-through-a-text-input/m-p/510209#M34016</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223152"&gt;@learningsplunk&lt;/a&gt;&amp;nbsp;try the following, where token from the text box is &lt;STRONG&gt;$Stocks$&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| inputlookup Stocks.csv where Stock_ticker="*$Stocks$*"
| stats count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 11:43:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Get-the-number-of-events-returned-in-a-csv-through-a-text-input/m-p/510209#M34016</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-07-21T11:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: Get the number of events returned in a csv through a text input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-the-number-of-events-returned-in-a-csv-through-a-text-input/m-p/510242#M34017</link>
      <description>&lt;P&gt;Well then, looks like it works,! Wasn't aware that you could use the token to actually pass said value(s) in that statement.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 14:43:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Get-the-number-of-events-returned-in-a-csv-through-a-text-input/m-p/510242#M34017</guid>
      <dc:creator>learningsplunk</dc:creator>
      <dc:date>2020-07-21T14:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get the number of events returned in a csv through a text input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-the-number-of-events-returned-in-a-csv-through-a-text-input/m-p/510246#M34018</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/223152"&gt;@learningsplunk&lt;/a&gt;&amp;nbsp;this would be a good Doc page to start reading about Tokens in Dashboards:&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Viz/tokens&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 15:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Get-the-number-of-events-returned-in-a-csv-through-a-text-input/m-p/510246#M34018</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-07-21T15:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get the number of events returned in a csv through a text input</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Get-the-number-of-events-returned-in-a-csv-through-a-text-input/m-p/510261#M34021</link>
      <description>&lt;P&gt;One other question to add to this ,if there were multiple columns,&amp;nbsp; for example :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;Stock Ticker&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Stock price&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Company Name&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Address&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Owner&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;IBM&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;120&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;IBM&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;1 Main Street&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Neera&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;NFLX&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;240&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Netflix&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;23 Exchange Blvd&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Jill&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;EE&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;360&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Eric's Electric&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;999 Ways And Means&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Eric&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;Spl&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;480&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Splunk&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;10 Joseph Street&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Paul&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the user typed in&amp;nbsp; "ee"&lt;/P&gt;&lt;P&gt;I've tried with&amp;nbsp; :&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;| inputlookup Stocks.csv where Stock_ticker="*$Stocks$*"|where Stock_price="*$Stocks$*" |where Company_Name&amp;nbsp;="*$Stocks$*" |where Address&amp;nbsp; ="*$Stocks$*" |where Owner ="*$Stocks$*"&amp;nbsp;&lt;BR /&gt;| stats count&lt;/P&gt;&lt;P&gt;and the return value is always 0..... is there&amp;nbsp; a way to &lt;STRONG&gt;return the number of rows&amp;nbsp; 3&lt;/STRONG&gt;,&amp;nbsp; instead of returning&amp;nbsp; an incorrect value of 0 or returning an incorrect value of 4 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 16:49:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Get-the-number-of-events-returned-in-a-csv-through-a-text-input/m-p/510261#M34021</guid>
      <dc:creator>learningsplunk</dc:creator>
      <dc:date>2020-07-21T16:49:51Z</dc:date>
    </item>
  </channel>
</rss>

