<?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: Am I using the transaction command correctly? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Am-I-using-the-transaction-command-correctly/m-p/157385#M185804</link>
    <description>&lt;P&gt;Got it. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2013 17:11:33 GMT</pubDate>
    <dc:creator>Craigrow</dc:creator>
    <dc:date>2013-11-27T17:11:33Z</dc:date>
    <item>
      <title>Am I using the transaction command correctly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Am-I-using-the-transaction-command-correctly/m-p/157383#M185802</link>
      <description>&lt;P&gt;I have a log which is tracking objects as they get moved around by a state machine. The log records a timestamp, the GUID of the object that was moved and the to and from states for the object. &lt;/P&gt;

&lt;P&gt;When the state machine moves object to state=foo, this is the beginning of the transaction I want to see. Then the object will then cycle between states foo and bar for some time. Eventually they leave state=foo and go to a state other than foo or bar. That is the end of the transaction. &lt;/P&gt;

&lt;P&gt;This is the search that I wrote. When I look at these transactions I'm not seeing what I expected. Am I doing this correctly?&lt;/P&gt;

&lt;P&gt;transaction ObjectGUID startswith(ToState=foo AND FromState!=bar) endswith(FromState=foo AND ToState!=bar)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2013 22:44:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Am-I-using-the-transaction-command-correctly/m-p/157383#M185802</guid>
      <dc:creator>Craigrow</dc:creator>
      <dc:date>2013-11-26T22:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the transaction command correctly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Am-I-using-the-transaction-command-correctly/m-p/157384#M185803</link>
      <description>&lt;P&gt;You're missing equal signs. &lt;CODE&gt;startswith&lt;/CODE&gt; and &lt;CODE&gt;endswith&lt;/CODE&gt; options need to be followed by &lt;CODE&gt;=&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Example dataset: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Tue Nov 26 19:25:51 EST 2013 ToState=foo FromState=qux objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:25:52 EST 2013 ToState=bar objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:25:53 EST 2013 ToState=foo objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:25:54 EST 2013 ToState=bar objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:25:55 EST 2013 ToState=foo objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:25:56 EST 2013 ToState=baz FromState=foo objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:25:57 EST 2013 ToState=qux objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:25:58 EST 2013 ToState=baz objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:25:59 EST 2013 ToState=qux objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:26:00 EST 2013 ToState=baz objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:26:01 EST 2013 ToState=qux objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:26:02 EST 2013 ToState=baz objectGUID=abc&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=main | transaction objectGUID startswith=(ToState=foo AND FromState!=bar) endswith=(FromState=foo AND ToState!=bar)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Results: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Tue Nov 26 19:25:51 EST 2013 ToState=foo FromState=qux objectGUID=abc &lt;BR /&gt;
Tue Nov 26 19:25:52 EST 2013 ToState=bar objectGUID=abc &lt;BR /&gt;
Tue Nov 26 19:25:53 EST 2013 ToState=foo objectGUID=abc &lt;BR /&gt;
Tue Nov 26 19:25:54 EST 2013 ToState=bar objectGUID=abc &lt;BR /&gt;
Tue Nov 26 19:25:55 EST 2013 ToState=foo objectGUID=abc&lt;BR /&gt;
Tue Nov 26 19:25:56 EST 2013 ToState=baz FromState=foo objectGUID=abc&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 00:41:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Am-I-using-the-transaction-command-correctly/m-p/157384#M185803</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2013-11-27T00:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the transaction command correctly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Am-I-using-the-transaction-command-correctly/m-p/157385#M185804</link>
      <description>&lt;P&gt;Got it. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 17:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Am-I-using-the-transaction-command-correctly/m-p/157385#M185804</guid>
      <dc:creator>Craigrow</dc:creator>
      <dc:date>2013-11-27T17:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the transaction command correctly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Am-I-using-the-transaction-command-correctly/m-p/157386#M185805</link>
      <description>&lt;P&gt;Got it. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2013 17:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Am-I-using-the-transaction-command-correctly/m-p/157386#M185805</guid>
      <dc:creator>Craigrow</dc:creator>
      <dc:date>2013-11-27T17:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Am I using the transaction command correctly?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Am-I-using-the-transaction-command-correctly/m-p/157387#M185806</link>
      <description>&lt;P&gt;Hi Craig, it your question was answered, please check the "accept" icon, it will help the other user to find useful information and reward the person that answered.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2013 01:25:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Am-I-using-the-transaction-command-correctly/m-p/157387#M185806</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-11-29T01:25:03Z</dc:date>
    </item>
  </channel>
</rss>

