<?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: How to edit my search to create a table listing specific fields and a stats count? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-listing-specific-fields/m-p/266841#M80254</link>
    <description>&lt;P&gt;thanks. Appreciate it&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2016 20:36:44 GMT</pubDate>
    <dc:creator>jdepp</dc:creator>
    <dc:date>2016-07-25T20:36:44Z</dc:date>
    <item>
      <title>How to edit my search to create a table listing specific fields and a stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-listing-specific-fields/m-p/266839#M80252</link>
      <description>&lt;P&gt;I am trying to display a table that lists specific fields, but also a stats count of one of the fields. It works, but then one of the remaining fields does not display anything.&lt;/P&gt;

&lt;P&gt;Search String&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="/data.cycletimes/tcp/10039" | stats sum(totalPosts) as "Total New Posts" by user | rename startDate as "First Post"   | table user, "First Post" ,"Total New Posts
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the above all columns display the total except the "First Post" field. Also I would like to group it by user so that each user only appears once.&lt;BR /&gt;
I get it to work with this search, but then user appears more than once.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="/data.cycletimes/tcp/10039" | stats sum(totalPosts) as "Total New Posts" by user, startDate | rename startDate as "First Post"   | table user, "First Post" ,"Total New Posts"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Appreciate any response and help.&lt;/P&gt;

&lt;P&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/1603iE6D2D3D82256239C/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>Wed, 20 Jul 2016 16:25:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-listing-specific-fields/m-p/266839#M80252</guid>
      <dc:creator>jdepp</dc:creator>
      <dc:date>2016-07-20T16:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table listing specific fields and a stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-listing-specific-fields/m-p/266840#M80253</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="/data.cycletimes/tcp/10039" | stats first(startDate) as "First Post" sum(totalPosts) as "Total New Posts"  by user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Jul 2016 16:39:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-listing-specific-fields/m-p/266840#M80253</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-20T16:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit my search to create a table listing specific fields and a stats count?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-listing-specific-fields/m-p/266841#M80254</link>
      <description>&lt;P&gt;thanks. Appreciate it&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 20:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-edit-my-search-to-create-a-table-listing-specific-fields/m-p/266841#M80254</guid>
      <dc:creator>jdepp</dc:creator>
      <dc:date>2016-07-25T20:36:44Z</dc:date>
    </item>
  </channel>
</rss>

