<?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: Transaction command causing zero results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-causing-zero-results/m-p/81170#M20533</link>
    <description>&lt;P&gt;You sir, have solved my dilemma.  Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jun 2012 19:43:23 GMT</pubDate>
    <dc:creator>mrjester</dc:creator>
    <dc:date>2012-06-21T19:43:23Z</dc:date>
    <item>
      <title>Transaction command causing zero results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-causing-zero-results/m-p/81168#M20531</link>
      <description>&lt;P&gt;I have events that come in on a webform save action that logs the value pairs of all data elements.  They look something like this.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;06/21/2012 06:26:18 AM
LogName=Application
SourceName=WebAsset
EventCode=10001
EventType=4
Type=Information
ComputerName=dev-web
Category=0
CategoryString=none
RecordNumber=90606
Message=Message=Save
@objId=641
@user=Admin1
@rqstrName=James Doe
@alt1RqstrName=Jane Doe
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;objId is the key value for the records.&lt;/P&gt;

&lt;P&gt;I am trying to display changes per objId over time, but only if there are changes.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Application" "SourceName=WebAsset" | stats count as events by a_objId | eval include = if(events &amp;gt; 1,1,0) | search include=1 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This query works fine and returns all expected results and all fields are still available.&lt;/P&gt;

&lt;P&gt;When I add transaction a_objId to the end, it returns zero results. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Application" "SourceName=WebAsset" | stats count as events by a_objId | eval include = if(events &amp;gt; 1,1,0)  |  search include=1| transaction a_objId
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Running this search shows multiple raw events for the objId still in the results.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Application" "SourceName=WebAsset" a_objId=&amp;lt;value&amp;gt; | stats count as events by a_objId | eval include = if(events &amp;gt; 1,1,0) | search include=1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search returns the desired results, just not filtered for for objIds with multiple events.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="WinEventLog:Application" "SourceName=WebAsset" | transaction a_objId
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any ideas on what I am doing wrong here?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 16:52:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-causing-zero-results/m-p/81168#M20531</guid>
      <dc:creator>mrjester</dc:creator>
      <dc:date>2012-06-21T16:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command causing zero results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-causing-zero-results/m-p/81169#M20532</link>
      <description>&lt;P&gt;I think you're going to have trouble using transaction after a summarizing command like stats.  Can you use the eventcount field of transaction to do what you want?&lt;BR /&gt;
&lt;PRE&gt;&lt;CODE&gt;&lt;BR /&gt;
sourcetype="WinEventLog:Application" "SourceName=WebAsset" | transaction a_objId | where eventcount &amp;gt; 1&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 17:55:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-causing-zero-results/m-p/81169#M20532</guid>
      <dc:creator>cphair</dc:creator>
      <dc:date>2012-06-21T17:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command causing zero results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-causing-zero-results/m-p/81170#M20533</link>
      <description>&lt;P&gt;You sir, have solved my dilemma.  Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2012 19:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-causing-zero-results/m-p/81170#M20533</guid>
      <dc:creator>mrjester</dc:creator>
      <dc:date>2012-06-21T19:43:23Z</dc:date>
    </item>
  </channel>
</rss>

