<?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: Help with search query to table single occurrence rows? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-query-to-table-single-occurrence-rows/m-p/165003#M46866</link>
    <description>&lt;P&gt;try to use "| dedup ID" search command&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2014 05:51:28 GMT</pubDate>
    <dc:creator>changwoo</dc:creator>
    <dc:date>2014-07-31T05:51:28Z</dc:date>
    <item>
      <title>Help with search query to table single occurrence rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-query-to-table-single-occurrence-rows/m-p/165002#M46865</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I have table of data as below. I have to fetch single occurrence row. Please Help&lt;/P&gt;

&lt;P&gt;Original Table &lt;/P&gt;

&lt;P&gt;ID  CA Value    GrName  UsrName DB Name&lt;/P&gt;

&lt;P&gt;X1  CA1 CA1 Usr1    …&lt;/P&gt;

&lt;P&gt;X2  CA2 CA2 Usr2    …&lt;/P&gt;

&lt;P&gt;X2  CA2 CA2 Usr2    …&lt;/P&gt;

&lt;P&gt;X3  CA5 CA5 Usr3    …&lt;/P&gt;

&lt;P&gt;X3  CA5 CA5 Usr3    …&lt;/P&gt;

&lt;P&gt;X3  CA5 CA5 Usr3    …&lt;/P&gt;

&lt;P&gt;X4  CA7 CA7 Usr4    …&lt;/P&gt;

&lt;P&gt;X4  CA7 CA7 Usr4    …&lt;/P&gt;

&lt;P&gt;X5  CA9 CA9 Usr5    …&lt;/P&gt;

&lt;P&gt;Desired Result Table&lt;/P&gt;

&lt;P&gt;ID  CA Value    GrName  UsrName DB Name&lt;/P&gt;

&lt;P&gt;X1  CA1 CA1 Usr1    …&lt;/P&gt;

&lt;P&gt;X5  CA9 CA9 Usr5    …&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Sathish R&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 04:43:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-query-to-table-single-occurrence-rows/m-p/165002#M46865</guid>
      <dc:creator>rsathish47</dc:creator>
      <dc:date>2014-07-31T04:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with search query to table single occurrence rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-query-to-table-single-occurrence-rows/m-p/165003#M46866</link>
      <description>&lt;P&gt;try to use "| dedup ID" search command&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 05:51:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-query-to-table-single-occurrence-rows/m-p/165003#M46866</guid>
      <dc:creator>changwoo</dc:creator>
      <dc:date>2014-07-31T05:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help with search query to table single occurrence rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-query-to-table-single-occurrence-rows/m-p/165004#M46867</link>
      <description>&lt;P&gt;Thanks Changwoo.. I need single occurrence row not unique row.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 06:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-query-to-table-single-occurrence-rows/m-p/165004#M46867</guid>
      <dc:creator>rsathish47</dc:creator>
      <dc:date>2014-07-31T06:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with search query to table single occurrence rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-query-to-table-single-occurrence-rows/m-p/165005#M46868</link>
      <description>&lt;P&gt;Hello Sathish,&lt;BR /&gt;
Try the below one.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=blah.. |stats list(*) as * by ID|eval a=mvcount(CA)|where a=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will give you single occurrence of ID field.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
L &lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 06:52:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-query-to-table-single-occurrence-rows/m-p/165005#M46868</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-07-31T06:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with search query to table single occurrence rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-search-query-to-table-single-occurrence-rows/m-p/165006#M46869</link>
      <description>&lt;P&gt;Thanks for the workaround.. It Works&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2014 07:16:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-search-query-to-table-single-occurrence-rows/m-p/165006#M46869</guid>
      <dc:creator>rsathish47</dc:creator>
      <dc:date>2014-07-31T07:16:06Z</dc:date>
    </item>
  </channel>
</rss>

