<?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 restrict transaction to group events from the same source and the same host? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-transaction-to-group-events-from-the-same-source/m-p/295899#M56143</link>
    <description>&lt;P&gt;stats by host , source works!! thanks very much!&lt;/P&gt;</description>
    <pubDate>Mon, 02 Apr 2018 20:18:39 GMT</pubDate>
    <dc:creator>xinde</dc:creator>
    <dc:date>2018-04-02T20:18:39Z</dc:date>
    <item>
      <title>How to restrict transaction to group events from the same source and the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-transaction-to-group-events-from-the-same-source/m-p/295897#M56141</link>
      <description>&lt;UL&gt;
&lt;LI&gt;Search a same log file on many different hosts . &lt;/LI&gt;
&lt;LI&gt;Use transaction :  startwith and  endwith to capture one  process  within this log file.&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Show the duration of this process for each host/source&lt;/P&gt;

&lt;P&gt;host="&lt;EM&gt;hosts&lt;/EM&gt;" &lt;BR /&gt;
    | rex field=_raw "Process(?&lt;PROCESSNAME&gt;.*)" &lt;BR /&gt;
    | transaction  ProcessName startswith="BEGIN" endswith="END"&lt;BR /&gt;
    | eval durationMin = round(duration/60,0)&lt;BR /&gt;
    | chart values(durationMin) by host&lt;BR /&gt;
The search return - msg from different host/source got grouped together.&lt;BR /&gt;
Is there a way to restrict transaction events only on same host/source?&lt;/PROCESSNAME&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 28 Mar 2018 19:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-transaction-to-group-events-from-the-same-source/m-p/295897#M56141</guid>
      <dc:creator>xinde</dc:creator>
      <dc:date>2018-03-28T19:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict transaction to group events from the same source and the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-transaction-to-group-events-from-the-same-source/m-p/295898#M56142</link>
      <description>&lt;P&gt;Try using &lt;CODE&gt;stats&lt;/CODE&gt; instead of &lt;CODE&gt;chart&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="*hosts*" 
| rex field=_raw "Process(?&amp;lt;ProcessName&amp;gt;.*)" 
| transaction  ProcessName startswith="BEGIN" endswith="END"
| eval durationMin = round(duration/60,0)
| stats values(durationMin) by host, source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you share some sample events, we may be able to help you improve search performance by eliminating the &lt;CODE&gt;transaction&lt;/CODE&gt; command.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 21:05:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-transaction-to-group-events-from-the-same-source/m-p/295898#M56142</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-03-28T21:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to restrict transaction to group events from the same source and the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-transaction-to-group-events-from-the-same-source/m-p/295899#M56143</link>
      <description>&lt;P&gt;stats by host , source works!! thanks very much!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 20:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-restrict-transaction-to-group-events-from-the-same-source/m-p/295899#M56143</guid>
      <dc:creator>xinde</dc:creator>
      <dc:date>2018-04-02T20:18:39Z</dc:date>
    </item>
  </channel>
</rss>

