<?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 modify my search to create a table showing the distinct count of user sign-in and sign-ups by product? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-create-a-table-showing-the-distinct/m-p/216855#M63673</link>
    <description>&lt;P&gt;Im just working through the logic now, without having sample data to test on I might not get answer for you, but...&lt;BR /&gt;
This: &lt;BR /&gt;
table product Successful sign-UP, Failed sign-UP, Successful sign-IN, Failed sign-IN &lt;BR /&gt;
Needs to be this for starters:&lt;BR /&gt;
table product "Successful sign-UP", "Failed sign-UP", "Successful sign-IN", "Failed sign-IN"&lt;/P&gt;

&lt;P&gt;I'll let you know if I crack the rest.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Sep 2016 06:02:39 GMT</pubDate>
    <dc:creator>mrgibbon</dc:creator>
    <dc:date>2016-09-30T06:02:39Z</dc:date>
    <item>
      <title>How to modify my search to create a table showing the distinct count of user sign-in and sign-ups by product?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-create-a-table-showing-the-distinct/m-p/216854#M63672</link>
      <description>&lt;P&gt;Say I have the following 4 logs:&lt;BR /&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/1922i70DCFA133F4C463F/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;And I want to create the final output table as: &lt;BR /&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/1923i876392C59A0AE58B/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I want to count the distinct number of users that successfully and unsuccessfully signed-up and signed-in by product for a particular day. Additionally I want to exclude those sign-in results where api=10 or api=20.&lt;/P&gt;

&lt;P&gt;I was thinking something along the lines of the following but it is giving me null results:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc*
| bucket _time span=1d
| eval signup=if(search="sign-up","1","0")
| eval signin=if(search="sign-in","1","0")
| eval message=
case(signup=1 AND errorcode="success" ,"Successful sign-UP", sign-up=1 AND errorcode="fail"  ,"Failed sign-UP", 
signin=1 AND errorcode="success" ,"Successful sign-IN", sign-in=1 AND errorcode="user not found"  ,"User not found sign-IN")
| chart dc(user) over product by message
| table product Successful sign-UP, Failed sign-UP, Successful sign-IN, Failed sign-IN 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Sep 2016 05:30:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-create-a-table-showing-the-distinct/m-p/216854#M63672</guid>
      <dc:creator>saimaday2</dc:creator>
      <dc:date>2016-09-29T05:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify my search to create a table showing the distinct count of user sign-in and sign-ups by product?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-create-a-table-showing-the-distinct/m-p/216855#M63673</link>
      <description>&lt;P&gt;Im just working through the logic now, without having sample data to test on I might not get answer for you, but...&lt;BR /&gt;
This: &lt;BR /&gt;
table product Successful sign-UP, Failed sign-UP, Successful sign-IN, Failed sign-IN &lt;BR /&gt;
Needs to be this for starters:&lt;BR /&gt;
table product "Successful sign-UP", "Failed sign-UP", "Successful sign-IN", "Failed sign-IN"&lt;/P&gt;

&lt;P&gt;I'll let you know if I crack the rest.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Sep 2016 06:02:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-create-a-table-showing-the-distinct/m-p/216855#M63673</guid>
      <dc:creator>mrgibbon</dc:creator>
      <dc:date>2016-09-30T06:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify my search to create a table showing the distinct count of user sign-in and sign-ups by product?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-create-a-table-showing-the-distinct/m-p/216856#M63674</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=abc* 
| eval message=
    case(match(_raw, "sign-up") AND errorcode="success", "Successful sign-UP", match(_raw, "sign-up") AND errorcode="fail" ,"Failed sign-UP", 
    match(_raw, "sign-in") AND errorcode="success", "Successful sign-IN", match(_raw, "sign-in") AND errorcode="user not found", "User not found sign-IN") 
| chart dc(user) over product by message
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Oct 2016 22:59:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-modify-my-search-to-create-a-table-showing-the-distinct/m-p/216856#M63674</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-07T22:59:12Z</dc:date>
    </item>
  </channel>
</rss>

