<?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 does transaction command work? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38413#M8717</link>
    <description>&lt;P&gt;well according to your example it looks like the host field is either 'Sa' or 'Sb' and tag is either '1' or '2' and this is why the transaction command is grouping them this way. read more here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Transaction"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2013 09:38:05 GMT</pubDate>
    <dc:creator>MuS</dc:creator>
    <dc:date>2013-08-19T09:38:05Z</dc:date>
    <item>
      <title>how does transaction command work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38410#M8714</link>
      <description>&lt;P&gt;i am still confused after reading the reference&lt;BR /&gt;
for example i fabricated some data&lt;BR /&gt;
and search with "&lt;EM&gt;|transaction host tag"&lt;BR /&gt;
Splunk gave me 2 sets of events:&lt;BR /&gt;
1   »  13-8-20 上午12:01:00.000&lt;BR /&gt;&lt;BR /&gt;
20130820 00:01:00 host=Sb tag=2 this is event5&lt;BR /&gt;
20130820 00:02:00 tag=2 this is event6&lt;BR /&gt;
20130821 00:02:00 host=Sa tag=2 this is event7&lt;BR /&gt;
**20130821 00:03:00 host=Sa this is event8&lt;/EM&gt;* &lt;BR /&gt;
2   »  13-8-19 上午12:00:00.000&lt;BR /&gt;&lt;BR /&gt;
&lt;STRONG&gt;20130819 00:00:00 host=Sa this is event1&lt;/STRONG&gt;&lt;BR /&gt;
20130819 00:01:00 host=Sa tag=1 this is event2&lt;BR /&gt;
20130819 00:02:00 tag=1 this is event3&lt;BR /&gt;
20130820 00:03:00 host=Sb tag=1 this is event4&lt;/P&gt;

&lt;P&gt;you can see that event1 and event8 are similar with a same field/value "host=Sa", but were put into different set&lt;BR /&gt;
what arguments can i use to force results contain both fields an exactly the same values?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:35:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38410#M8714</guid>
      <dc:creator>crazyeva</dc:creator>
      <dc:date>2020-09-28T14:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: how does transaction command work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38411#M8715</link>
      <description>&lt;P&gt;Hi crazyeva&lt;/P&gt;

&lt;P&gt;if your host field really is &lt;CODE&gt;host=Sa this is eventX&lt;/CODE&gt; then you could use&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;endswith=&amp;lt;filter-string&amp;gt;
Description: A search or eval filtering expression which if satisfied by an event marks the end of a transaction.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and or&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;startswith=&amp;lt;filter-string&amp;gt;
Description: A search or eval filtering expression which if satisfied by an event marks the beginning of a new transaction.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with your transaction like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yourSearch | transaction startswith="Sa this is event8" ....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;hope this helps, cheers - MuS&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 08:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38411#M8715</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-08-19T08:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: how does transaction command work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38412#M8716</link>
      <description>&lt;P&gt;Thank you very much, "startswith" or "endswith" may settle my problem with right looking results&lt;BR /&gt;
But I just want to understand what "transaction" do when deciding put which events together.&lt;BR /&gt;
When I transaction two fields, why does it group two events which have one field different value(the other is same). And put two events with only field, same value separately into two sets.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 09:28:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38412#M8716</guid>
      <dc:creator>crazyeva</dc:creator>
      <dc:date>2013-08-19T09:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: how does transaction command work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38413#M8717</link>
      <description>&lt;P&gt;well according to your example it looks like the host field is either 'Sa' or 'Sb' and tag is either '1' or '2' and this is why the transaction command is grouping them this way. read more here: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Transaction"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Transaction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 09:38:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38413#M8717</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-08-19T09:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: how does transaction command work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38414#M8718</link>
      <description>&lt;P&gt;I have read that reference, the example given is:&lt;BR /&gt;
event=1 host=a&lt;BR /&gt;
event=2 host=a cookie=b&lt;BR /&gt;
event=3 cookie=b&lt;BR /&gt;
this is how i imagine it works:&lt;BR /&gt;
event1 join event2 on host=a, event2 join event3 on cookie=b&lt;BR /&gt;
this 3 are the same with my data.&lt;BR /&gt;
then go on in my data:&lt;BR /&gt;
event 3 join event4 on tag=1, but event4 doesnot join event5 although on host=Sb?&lt;BR /&gt;
Does it mean: when transaction two fields, if an event misses one field, say "host", splunk will consider it has a field host="Sa or Sb or anything" that will match next event's host, nomatter what value it is?&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 10:02:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38414#M8718</guid>
      <dc:creator>crazyeva</dc:creator>
      <dc:date>2013-08-19T10:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: how does transaction command work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38415#M8719</link>
      <description>&lt;P&gt;no, if there is a transitive relationship between the fields in the fields list, the transaction command will use it. Best for you would be to create field extraction for 'eventX' and use this in transaction.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2013 10:43:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38415#M8719</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-08-19T10:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: how does transaction command work?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38416#M8720</link>
      <description>&lt;P&gt;Thank you.&lt;BR /&gt;
I begin understand this.&lt;BR /&gt;
"eventX" is just a tag for myself to recognize each event. since I fabricated these data.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2013 01:55:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/how-does-transaction-command-work/m-p/38416#M8720</guid>
      <dc:creator>crazyeva</dc:creator>
      <dc:date>2013-08-20T01:55:55Z</dc:date>
    </item>
  </channel>
</rss>

