<?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 to search transactions across different hosts with with the same uuid? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-transactions-across-different-hosts-with-with-the/m-p/240312#M71412</link>
    <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I have a few sources that report a GUID/UUID across different hosts. (basically load balancers, intermediate proxies, auth, and different app servers all writing uuid in logs)'&lt;BR /&gt;
I'm interested in help with displaying 3 things;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Length of entire transaction over hosts -  one host has several steps before passing on, processing the same requests. &lt;/LI&gt;
&lt;LI&gt;time between sources (input to be charted)&lt;/LI&gt;
&lt;LI&gt;missing sources (lets say i know for sure it's supposed to be 4 different servers with the GUID, and one of the servers has several steps)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;An example dataset would be (notice same &lt;STRONG&gt;uuid&lt;/STRONG&gt;), but different hosts. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016.1.1 12:00:00.0125 host=10.1.1.30 host=www.mydomain.com src_ip=99.226.12.39 method=GET uri="/my/cool/application" uuid=28745996-dda7-eaba-8148-1615b51314a3
2016.1.1 12:00:01.0125 server=10.2.1.30  src_ip=10.1.1.30  uri="/my/cool/application" uuid=28745996-dda7-eaba-8148-1615b51314a3
2016.1.1 12:00:02.0125 hostname=10.2.1.30 step=incoming srcip=10.1.1.30 uuid=28745996-dda7-eaba-8148-1615b51314a3 
2016.1.1 12:00:04.0125 hostname=10.2.1.30 step=ok srcip=10.1.1.30 uuid=28745996-dda7-eaba-8148-1615b51314a3 
2016.1.1 12:00:07.0125 hostname=10.2.1.10 srcip=10.2.1.30  uuid=28745996-dda7-eaba-8148-1615b51314a3 status=completed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any takers would be appreciated&lt;BR /&gt;
brgds&lt;BR /&gt;
kristen&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2016 07:14:27 GMT</pubDate>
    <dc:creator>kritho</dc:creator>
    <dc:date>2016-01-21T07:14:27Z</dc:date>
    <item>
      <title>How to search transactions across different hosts with with the same uuid?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-transactions-across-different-hosts-with-with-the/m-p/240312#M71412</link>
      <description>&lt;P&gt;Hi all, &lt;/P&gt;

&lt;P&gt;I have a few sources that report a GUID/UUID across different hosts. (basically load balancers, intermediate proxies, auth, and different app servers all writing uuid in logs)'&lt;BR /&gt;
I'm interested in help with displaying 3 things;&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Length of entire transaction over hosts -  one host has several steps before passing on, processing the same requests. &lt;/LI&gt;
&lt;LI&gt;time between sources (input to be charted)&lt;/LI&gt;
&lt;LI&gt;missing sources (lets say i know for sure it's supposed to be 4 different servers with the GUID, and one of the servers has several steps)&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;An example dataset would be (notice same &lt;STRONG&gt;uuid&lt;/STRONG&gt;), but different hosts. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016.1.1 12:00:00.0125 host=10.1.1.30 host=www.mydomain.com src_ip=99.226.12.39 method=GET uri="/my/cool/application" uuid=28745996-dda7-eaba-8148-1615b51314a3
2016.1.1 12:00:01.0125 server=10.2.1.30  src_ip=10.1.1.30  uri="/my/cool/application" uuid=28745996-dda7-eaba-8148-1615b51314a3
2016.1.1 12:00:02.0125 hostname=10.2.1.30 step=incoming srcip=10.1.1.30 uuid=28745996-dda7-eaba-8148-1615b51314a3 
2016.1.1 12:00:04.0125 hostname=10.2.1.30 step=ok srcip=10.1.1.30 uuid=28745996-dda7-eaba-8148-1615b51314a3 
2016.1.1 12:00:07.0125 hostname=10.2.1.10 srcip=10.2.1.30  uuid=28745996-dda7-eaba-8148-1615b51314a3 status=completed
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any takers would be appreciated&lt;BR /&gt;
brgds&lt;BR /&gt;
kristen&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 07:14:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-transactions-across-different-hosts-with-with-the/m-p/240312#M71412</guid>
      <dc:creator>kritho</dc:creator>
      <dc:date>2016-01-21T07:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to search transactions across different hosts with with the same uuid?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-transactions-across-different-hosts-with-with-the/m-p/240313#M71413</link>
      <description>&lt;P&gt;This search will list the transaction time, in seconds, for each uuid&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| stats range(_time) as total_time by uuid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Time between sources/steps for each uuid:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere
| streamstats range(_time) as total_time earliest(step) as completed_step current=t window=2 global=f by uuid
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't know what you mean by "charted." You can make a chart that lists all the uuids along with the time, but that doesn't seem terribly useful. Exactly what do you want to see on the x-axis and the y-axis of your chart?&lt;/P&gt;

&lt;P&gt;Finally, it is hard to search for something "missing" - how would Splunk know something was missing unless it understood the overall pattern?&lt;BR /&gt;
It would be helpful to have details about how you would figure out the missing steps manually. Then perhaps the community can help you find a way to identify the missing setups.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 21:13:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-transactions-across-different-hosts-with-with-the/m-p/240313#M71413</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-01-21T21:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to search transactions across different hosts with with the same uuid?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-transactions-across-different-hosts-with-with-the/m-p/240314#M71414</link>
      <description>&lt;P&gt;Thanks Iguinn, &lt;BR /&gt;
Maybe I wasn't clear enough, &lt;BR /&gt;
The loadbalancer stamps each incoming request with uuid,  passing it along to the next service. So it would be nice to show the average transaction time for the entire service-path (not particulary by any specific uuid), as well as the time between each service as you suggested - it works &lt;BR /&gt;
Regarding "missing" parts, for easyness, just the number of events in each transaction would be nice,  any deviation would be even nicer  (I know for sure any service-path should have atleast "hits" with the same uuid statement)&lt;BR /&gt;
X-axis could be time, an y-axis could be a barchart split by duration of each transaction (ie time between events/host)&lt;/P&gt;

&lt;P&gt;brgds&lt;BR /&gt;
kristen&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 08:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-transactions-across-different-hosts-with-with-the/m-p/240314#M71414</guid>
      <dc:creator>kritho</dc:creator>
      <dc:date>2016-01-22T08:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to search transactions across different hosts with with the same uuid?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-transactions-across-different-hosts-with-with-the/m-p/240315#M71415</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Updated answer&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If you just want an average then&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; yoursearchhere
 | stats range(_time) as total_time by uuid
 | stats  avg(total_time) as "Average Transaction Time"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Average time between sources/steps for each uuid:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; yoursearchhere
 | streamstats range(_time) as total_time earliest(step) as completed_step current=t window=2 global=f by uuid
 | stats avg(total_time) as average_time by completed_step
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;For the potentially "missing steps", try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; yoursearchhere
 | stats count by uuid
 | eventstats  avg(total_time) as avg
 | where count &amp;lt; avg
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Even fancier, show all the steps for UUIDs that may have missing steps&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yoursearchhere [ search yoursearchhereagain
     | stats count by uuid
     | eventstats  avg(total_time) as avg
     | where count &amp;lt; avg | fields uuid ]
| sort uuid _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The last search will not work if there are thousands of UUIDs with missing steps.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 16:58:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-transactions-across-different-hosts-with-with-the/m-p/240315#M71415</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2016-01-22T16:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to search transactions across different hosts with with the same uuid?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-transactions-across-different-hosts-with-with-the/m-p/240316#M71416</link>
      <description>&lt;P&gt;Excellent. This works! tx&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 21:09:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-transactions-across-different-hosts-with-with-the/m-p/240316#M71416</guid>
      <dc:creator>kritho</dc:creator>
      <dc:date>2016-01-22T21:09:23Z</dc:date>
    </item>
  </channel>
</rss>

