<?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 How can I count my logins by a field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-my-logins-by-a-field/m-p/602878#M209834</link>
    <description>&lt;P&gt;I have this query and&amp;nbsp;I want to count how many logins were made by id, like if a person logged in 3 times I just want to count once and if there were 15 logins in total I just want to count one per id&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;basic search 
| fields idLogin 
| stats values(idLogin) as Login, dc(idLogin) as Quantity  
| table Quantity&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; but my field idLogin is return null&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 00:22:51 GMT</pubDate>
    <dc:creator>rebecalopes241</dc:creator>
    <dc:date>2022-06-23T00:22:51Z</dc:date>
    <item>
      <title>How can I count my logins by a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-my-logins-by-a-field/m-p/602878#M209834</link>
      <description>&lt;P&gt;I have this query and&amp;nbsp;I want to count how many logins were made by id, like if a person logged in 3 times I just want to count once and if there were 15 logins in total I just want to count one per id&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;basic search 
| fields idLogin 
| stats values(idLogin) as Login, dc(idLogin) as Quantity  
| table Quantity&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; but my field idLogin is return null&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 00:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-my-logins-by-a-field/m-p/602878#M209834</guid>
      <dc:creator>rebecalopes241</dc:creator>
      <dc:date>2022-06-23T00:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How can I count my logins by a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-my-logins-by-a-field/m-p/602921#M209844</link>
      <description>&lt;P&gt;Your requirement seems self-contradictory - are you wanting the number of times each id was used to login or just a list of the ids used to login?&lt;/P&gt;&lt;P&gt;First case:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count by loginid&lt;/LI-CODE&gt;&lt;P&gt;Second case:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| dedup loginid
| table loginid&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 06:36:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-count-my-logins-by-a-field/m-p/602921#M209844</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-23T06:36:04Z</dc:date>
    </item>
  </channel>
</rss>

