<?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 Transaction using datamodel in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transaction-using-datamodel/m-p/524380#M147919</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to calculate the browse time and bandwith usage of users by looking at the log files of the firewall. As far as i can understand the best way to this is to use transaction command.&amp;nbsp; However, to make the transaction command more efficient, i tried to use it with tstats (which may be completely wrong). my assumption is that if there is more than one log for a source IP to a destination IP for the same time value, it is for the same session.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats sum(datamodel.mbyte) as mbyte from datamodel=datamodel by _time source destination
| transaction source destination maxpause=1m&lt;/LI-CODE&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;is there a more efficient way to calculate these values?&lt;/LI&gt;&lt;LI&gt;Max duration value for my query is always equals to maxpause value. Shouldn't be values greater than maxpause.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Tue, 13 Oct 2020 11:00:48 GMT</pubDate>
    <dc:creator>rkd</dc:creator>
    <dc:date>2020-10-13T11:00:48Z</dc:date>
    <item>
      <title>Transaction using datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-using-datamodel/m-p/524380#M147919</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to calculate the browse time and bandwith usage of users by looking at the log files of the firewall. As far as i can understand the best way to this is to use transaction command.&amp;nbsp; However, to make the transaction command more efficient, i tried to use it with tstats (which may be completely wrong). my assumption is that if there is more than one log for a source IP to a destination IP for the same time value, it is for the same session.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my query:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats sum(datamodel.mbyte) as mbyte from datamodel=datamodel by _time source destination
| transaction source destination maxpause=1m&lt;/LI-CODE&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;is there a more efficient way to calculate these values?&lt;/LI&gt;&lt;LI&gt;Max duration value for my query is always equals to maxpause value. Shouldn't be values greater than maxpause.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 11:00:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-using-datamodel/m-p/524380#M147919</guid>
      <dc:creator>rkd</dc:creator>
      <dc:date>2020-10-13T11:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction using datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-using-datamodel/m-p/524435#M147936</link>
      <description>&lt;P&gt;I wonder if you might misunderstand the &lt;FONT face="courier new,courier"&gt;transaction&lt;/FONT&gt; command.&amp;nbsp; It merges multiple events based on shared elements.&amp;nbsp; The &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; command with a &lt;FONT face="courier new,courier"&gt;by&lt;/FONT&gt; clause does a similar thing so you probably don't need both commands.&amp;nbsp; Have you tried &lt;FONT face="courier new,courier"&gt;tstats&lt;/FONT&gt; by itself to see if it produces the desired results?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2020 14:42:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-using-datamodel/m-p/524435#M147936</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-10-13T14:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction using datamodel</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-using-datamodel/m-p/524533#M147956</link>
      <description>&lt;P&gt;Well i may be wrong about transaction, but let me clarify what i need by giving examples. Lets say that i have data as follows:&lt;/P&gt;&lt;TABLE border="1" width="63.87393976191791%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;Event ID&lt;/TD&gt;&lt;TD width="16.54040404040404%" height="25px"&gt;Time&lt;/TD&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;Source&lt;/TD&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;Destination&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;1&lt;/TD&gt;&lt;TD width="16.54040404040404%" height="25px"&gt;08:00:00&lt;/TD&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;S1&lt;/TD&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;D1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="16.54040404040404%" height="25px"&gt;08:00:45&lt;/TD&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;S1&lt;/TD&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;D1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;3&lt;/TD&gt;&lt;TD width="16.54040404040404%" height="25px"&gt;08:01:30&lt;/TD&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;S1&lt;/TD&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;D1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;4&lt;/TD&gt;&lt;TD width="16.54040404040404%" height="25px"&gt;08:02:31&lt;/TD&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;S1&lt;/TD&gt;&lt;TD width="16.666666666666664%" height="25px"&gt;D1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By using transaction i want to group Event ID 1, 2 and 3.&amp;nbsp; Because, the time difference between consecutive events are less than 1min. Here is my desired output:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;Transaction ID&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Source&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Destination&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;Duration&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="25px"&gt;1&lt;/TD&gt;&lt;TD height="25px"&gt;S1&lt;/TD&gt;&lt;TD height="25px"&gt;D1&lt;/TD&gt;&lt;TD height="25px"&gt;90&lt;/TD&gt;&lt;TD height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%" height="25px"&gt;2&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;S1&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;D1&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;0&lt;/TD&gt;&lt;TD width="20%" height="25px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shouldn't transaction command do that? Am i missing something?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 05:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-using-datamodel/m-p/524533#M147956</guid>
      <dc:creator>Kaand</dc:creator>
      <dc:date>2020-10-14T05:59:43Z</dc:date>
    </item>
  </channel>
</rss>

