<?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 get a field from a unique transaction and group another transaction by the unique field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-field-from-a-unique-transaction-and-group-another/m-p/242323#M72084</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;[01/May/2015:20:39:47 -0400] Connections=12345  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=12345  random=1 - RESULT err=0 UT=45 nentries=0 etime=0.000000 LoginString="randomString"
[01/May/2015:20:39:47 -0400] Connections=12345  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=223333  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=223333  random=1 - RESULT err=0 UT=45 nentries=0 etime=0.000000 LoginString="veryUnRandom"
[01/May/2015:20:39:47 -0400] Connections=55555  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=55555  random=1 - RESULT err=0 UT=45 nentries=0 etime=0.000000 LoginString="veryUnRandom"
[01/May/2015:20:39:47 -0400] Connections=55555  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=55555  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=55555  random=1 - RESULT err=0 UT=45 nentries=0 etime=0.000000 LoginString="veryUnRandom"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this instance I would want my timechart to have 2 for randomString and 1 for notSoRandom and 3 for VeryUnRandom&lt;/P&gt;

&lt;P&gt;The issue I am having is how do I group by the LoginString.  Right now if I transaction by Connections I have a giant string of the UT=45 and UT=10 but all I want is the count for the number of UT=10 appears in the event&lt;/P&gt;</description>
    <pubDate>Tue, 11 Oct 2016 16:34:33 GMT</pubDate>
    <dc:creator>jegreene</dc:creator>
    <dc:date>2016-10-11T16:34:33Z</dc:date>
    <item>
      <title>How to get a field from a unique transaction and group another transaction by the unique field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-field-from-a-unique-transaction-and-group-another/m-p/242320#M72081</link>
      <description>&lt;P&gt;I have an event that will generate a login string for a user. Once that login string is generated, the connection string should be tied to that very same login string and be able to be grouped by.  However, that login string only exists in the initial connection.&lt;/P&gt;

&lt;P&gt;When the connection string is generated, a unique token is tied to it, lets say it's 10.  I want to count the number of times the unique token happens (lets say it's 45) and group by the login string.&lt;/P&gt;

&lt;P&gt;Variable:&lt;BR /&gt;
LoginString&lt;BR /&gt;
Connections&lt;BR /&gt;
UT=10&lt;BR /&gt;
UT=45&lt;/P&gt;

&lt;P&gt;So essentially I want to grab the login string where UT=10 and then tie that LoginString to the Connections.  I want to then count the number of times UT=45 happens on that same connection, and group that count by LoginString in a timechart&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 13:48:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-field-from-a-unique-transaction-and-group-another/m-p/242320#M72081</guid>
      <dc:creator>jegreene</dc:creator>
      <dc:date>2016-10-11T13:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a field from a unique transaction and group another transaction by the unique field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-field-from-a-unique-transaction-and-group-another/m-p/242321#M72082</link>
      <description>&lt;P&gt;Can we have some sample events.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 16:03:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-field-from-a-unique-transaction-and-group-another/m-p/242321#M72082</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-11T16:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a field from a unique transaction and group another transaction by the unique field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-field-from-a-unique-transaction-and-group-another/m-p/242322#M72083</link>
      <description>&lt;P&gt;Not sure I understand your question. Sharing some samples might help. In the meantime, try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | eventstats values(login_string) as LS by unique_token | stats count(eval(UT=45)) by Connection_String
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Oct 2016 16:03:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-field-from-a-unique-transaction-and-group-another/m-p/242322#M72083</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-11T16:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a field from a unique transaction and group another transaction by the unique field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-field-from-a-unique-transaction-and-group-another/m-p/242323#M72084</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;[01/May/2015:20:39:47 -0400] Connections=12345  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=12345  random=1 - RESULT err=0 UT=45 nentries=0 etime=0.000000 LoginString="randomString"
[01/May/2015:20:39:47 -0400] Connections=12345  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=223333  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=223333  random=1 - RESULT err=0 UT=45 nentries=0 etime=0.000000 LoginString="veryUnRandom"
[01/May/2015:20:39:47 -0400] Connections=55555  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=55555  random=1 - RESULT err=0 UT=45 nentries=0 etime=0.000000 LoginString="veryUnRandom"
[01/May/2015:20:39:47 -0400] Connections=55555  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=55555  - RESULT error=0 UT=10 nentries=0 etime=0.000000
[01/May/2015:20:39:47 -0400] Connections=55555  random=1 - RESULT err=0 UT=45 nentries=0 etime=0.000000 LoginString="veryUnRandom"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In this instance I would want my timechart to have 2 for randomString and 1 for notSoRandom and 3 for VeryUnRandom&lt;/P&gt;

&lt;P&gt;The issue I am having is how do I group by the LoginString.  Right now if I transaction by Connections I have a giant string of the UT=45 and UT=10 but all I want is the count for the number of UT=10 appears in the event&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 16:34:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-field-from-a-unique-transaction-and-group-another/m-p/242323#M72084</guid>
      <dc:creator>jegreene</dc:creator>
      <dc:date>2016-10-11T16:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a field from a unique transaction and group another transaction by the unique field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-field-from-a-unique-transaction-and-group-another/m-p/242324#M72085</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;base search | eventstats values(loginString) as LS by Connections | where UT=45 | stats count by LS
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Oct 2016 16:46:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-a-field-from-a-unique-transaction-and-group-another/m-p/242324#M72085</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-11T16:46:14Z</dc:date>
    </item>
  </channel>
</rss>

