<?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: Creating a Data Table from CSV in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54168#M13219</link>
    <description>&lt;P&gt;Try &lt;CODE&gt;chart&lt;/CODE&gt; instead of &lt;CODE&gt;stats&lt;/CODE&gt;;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | chart avg(Duration) AS Duration over OperationName by When
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
    <pubDate>Fri, 07 Sep 2012 13:44:11 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2012-09-07T13:44:11Z</dc:date>
    <item>
      <title>Creating a Data Table from CSV</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54167#M13218</link>
      <description>&lt;P&gt;I am new to Splunk and only really understand the STATS Functions. &lt;/P&gt;

&lt;P&gt;I have some CSV files that contain the fields that contain average response times for some testing that is performed monthly. ("Date", "OperationName", "Duration", "When")&lt;/P&gt;

&lt;P&gt;This is the function I am running and each line only has one line so this kind of works for what I want to present in Splunk. Is there a better way to do this?&lt;/P&gt;

&lt;P&gt;index="perf_results" | stats avg(Duration) as Duration by OperationName, When&lt;/P&gt;

&lt;P&gt;What is getting returned looks like this&lt;/P&gt;

&lt;P&gt;OperationName                           When                    Duration&lt;BR /&gt;
Event 1                                 May                       165&lt;BR /&gt;
Event 1                                 June                      168&lt;BR /&gt;
Event 1                                 July                      110&lt;BR /&gt;
Event 1                                 August                    114&lt;BR /&gt;
Event 2                                 May                       686&lt;BR /&gt;
Event 2                                 June                      885&lt;BR /&gt;
Event 2                                 July                      777&lt;BR /&gt;
Event 2                                 August                    600&lt;/P&gt;

&lt;P&gt;What I would like is a report that presents information like this:&lt;/P&gt;

&lt;P&gt;OperationName                           May       June         July        August&lt;BR /&gt;
Event 1                                 165         168         110         114&lt;BR /&gt;
Event 2                                 686         885         777         600&lt;BR /&gt;
Event 3                                 1000       1004         1100       1000&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2012 13:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54167#M13218</guid>
      <dc:creator>ezajac</dc:creator>
      <dc:date>2012-09-07T13:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Data Table from CSV</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54168#M13219</link>
      <description>&lt;P&gt;Try &lt;CODE&gt;chart&lt;/CODE&gt; instead of &lt;CODE&gt;stats&lt;/CODE&gt;;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | chart avg(Duration) AS Duration over OperationName by When
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2012 13:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54168#M13219</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-07T13:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Data Table from CSV</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54169#M13220</link>
      <description>&lt;P&gt;Just to voice that this is the best answer, I cannot upvote it for political reasons &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Sep 2012 15:22:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54169#M13220</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-09-07T15:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Data Table from CSV</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54170#M13221</link>
      <description>&lt;P&gt;HAHA, .conf starts today, and you've been found wanting....&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 07:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54170#M13221</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-10T07:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Data Table from CSV</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54171#M13222</link>
      <description>&lt;P&gt;Glad to see you take your win in your stride &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 15:24:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54171#M13222</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2012-09-10T15:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Data Table from CSV</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54172#M13223</link>
      <description>&lt;P&gt;While your soul is withering away at the slot machines, doused in cheap liquor - just think of all the fun I'll have with my Karma points.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 18:06:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-a-Data-Table-from-CSV/m-p/54172#M13223</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2012-09-10T18:06:36Z</dc:date>
    </item>
  </channel>
</rss>

