<?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: Counting session IDs across multiple fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Counting-session-IDs-across-multiple-fields/m-p/479026#M134290</link>
    <description>&lt;P&gt;If what you want is "the count of unique session IDS" then try &lt;CODE&gt;... | stats count, dc(session_id) by userAgent, browserVersion, osName&lt;/CODE&gt;.&lt;BR /&gt;
If you want "to sum them up" then you're likely out of luck since non-numeric values (which is what session IDs probably are) can't be summed.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Nov 2019 03:43:02 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-11-06T03:43:02Z</dc:date>
    <item>
      <title>Counting session IDs across multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-session-IDs-across-multiple-fields/m-p/479025#M134289</link>
      <description>&lt;P&gt;Hi all, brand new to splunk search syntax. I have a command like so:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | stats count by userAgent, browserVersion, osName&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;That yields a table with those three columns about browsers (user agent, browser version &amp;amp; the OS) plus a fourth column, containing the total count of each row. Nice! However, I need a final row containing the count of unique session IDs for those rows. I know I can get access to the session IDs via &lt;CODE&gt;session_id&lt;/CODE&gt; but I don't see how to sum them up (&lt;CODE&gt;dc()&lt;/CODE&gt; command...?) for the unique combinations of userAgent-browserVersion-osName. &lt;/P&gt;

&lt;P&gt;Any suggestions? &lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 00:48:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-session-IDs-across-multiple-fields/m-p/479025#M134289</guid>
      <dc:creator>benkeen</dc:creator>
      <dc:date>2019-11-06T00:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Counting session IDs across multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-session-IDs-across-multiple-fields/m-p/479026#M134290</link>
      <description>&lt;P&gt;If what you want is "the count of unique session IDS" then try &lt;CODE&gt;... | stats count, dc(session_id) by userAgent, browserVersion, osName&lt;/CODE&gt;.&lt;BR /&gt;
If you want "to sum them up" then you're likely out of luck since non-numeric values (which is what session IDs probably are) can't be summed.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 03:43:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-session-IDs-across-multiple-fields/m-p/479026#M134290</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-11-06T03:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Counting session IDs across multiple fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-session-IDs-across-multiple-fields/m-p/479027#M134291</link>
      <description>&lt;P&gt;Hope i understand the requirement. Please try the below query.&lt;/P&gt;

&lt;P&gt;| stats count(session_id) by userAgent, browserVersion, osName&lt;/P&gt;

&lt;P&gt;Please let me know if it doesn't meet your requirement&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 05:52:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-session-IDs-across-multiple-fields/m-p/479027#M134291</guid>
      <dc:creator>kartm2020</dc:creator>
      <dc:date>2019-11-06T05:52:11Z</dc:date>
    </item>
  </channel>
</rss>

