<?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 Combine inputcsv and search to create a gauge in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Combine-inputcsv-and-search-to-create-a-gauge/m-p/112934#M29676</link>
    <description>&lt;P&gt;I am trying to create a gauge where the green, yellow, red are dynamically adjusted using average and percentages for similar traffic over the past 30 days.  The 30 day search takes a while so what I would like to do is run it overnight and dump it to a csv.  I would then like to run todays numbers on the fly and apply the results (the needle in the gauge) to the csv results.&lt;/P&gt;

&lt;P&gt;This is where I am with it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=msad "EventCode=4624"  earliest=-1d@min |stats count as today| append[|inputcsv start=29 max=1 YsForGauge.csv] | table today average Eighty Ninety-Five
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This results in a table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;today          average          Eighty          Ninety-Five
892683      
                1255.633333 2016    2257
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So the results are in two rows of the resulting table.  What I would like to do is replace the table with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;gauge today 0 average Eighty Ninety-Five
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But is failing.  Help?&lt;/P&gt;</description>
    <pubDate>Mon, 18 May 2015 15:04:02 GMT</pubDate>
    <dc:creator>ccsfdave</dc:creator>
    <dc:date>2015-05-18T15:04:02Z</dc:date>
    <item>
      <title>Combine inputcsv and search to create a gauge</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-inputcsv-and-search-to-create-a-gauge/m-p/112934#M29676</link>
      <description>&lt;P&gt;I am trying to create a gauge where the green, yellow, red are dynamically adjusted using average and percentages for similar traffic over the past 30 days.  The 30 day search takes a while so what I would like to do is run it overnight and dump it to a csv.  I would then like to run todays numbers on the fly and apply the results (the needle in the gauge) to the csv results.&lt;/P&gt;

&lt;P&gt;This is where I am with it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=msad "EventCode=4624"  earliest=-1d@min |stats count as today| append[|inputcsv start=29 max=1 YsForGauge.csv] | table today average Eighty Ninety-Five
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This results in a table:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;today          average          Eighty          Ninety-Five
892683      
                1255.633333 2016    2257
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So the results are in two rows of the resulting table.  What I would like to do is replace the table with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;gauge today 0 average Eighty Ninety-Five
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But is failing.  Help?&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2015 15:04:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-inputcsv-and-search-to-create-a-gauge/m-p/112934#M29676</guid>
      <dc:creator>ccsfdave</dc:creator>
      <dc:date>2015-05-18T15:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Combine inputcsv and search to create a gauge</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Combine-inputcsv-and-search-to-create-a-gauge/m-p/112935#M29677</link>
      <description>&lt;P&gt;Figured it out, not just append but appendcols puts it in one row and then gauge works!&lt;/P&gt;

&lt;P&gt;index=msad "EventCode=4624"  earliest=-1d@min |stats count as today| &lt;STRONG&gt;appendcols&lt;/STRONG&gt; [|inputcsv start=29 max=1 YsForGauge.csv] | gauge today 0 average Eighty Ninety-Five&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2015 15:24:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Combine-inputcsv-and-search-to-create-a-gauge/m-p/112935#M29677</guid>
      <dc:creator>ccsfdave</dc:creator>
      <dc:date>2015-05-18T15:24:33Z</dc:date>
    </item>
  </channel>
</rss>

