<?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: Fastest way to get log file duration? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Fastest-way-to-get-log-file-duration/m-p/83275#M21191</link>
    <description>&lt;P&gt;thanks, thats what I was looking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2013 12:25:31 GMT</pubDate>
    <dc:creator>jameshgibson</dc:creator>
    <dc:date>2013-01-10T12:25:31Z</dc:date>
    <item>
      <title>Fastest way to get log file duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fastest-way-to-get-log-file-duration/m-p/83271#M21187</link>
      <description>&lt;P&gt;We have a batch runner that outputs a log file for each run. We would like to be able to get the duration of each log file so we can see how the batch times change when we make modifications.&lt;/P&gt;

&lt;P&gt;Currently I am using:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;source=/some/source* | transaction maxevents=-1 maxpause=-1 maxspan=1d keepevicted=t source | table duration, source&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Unfortunatly because the log files are very large this is incredibly slow and even causes splunk to run out of memory. Is there a quicker way?&lt;/P&gt;

&lt;P&gt;NOTE: The files do not have a consistant ending line to match on but all start with the same statement.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 11:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fastest-way-to-get-log-file-duration/m-p/83271#M21187</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-01-10T11:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Fastest way to get log file duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fastest-way-to-get-log-file-duration/m-p/83272#M21188</link>
      <description>&lt;P&gt;have you thought about summary indexing your search?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 11:45:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fastest-way-to-get-log-file-duration/m-p/83272#M21188</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2013-01-10T11:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Fastest way to get log file duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fastest-way-to-get-log-file-duration/m-p/83273#M21189</link>
      <description>&lt;P&gt;The report as is doesn't run fully so I can't create a summary. Also the table ends up having multiple durations for source which doesn't make sense so I think the transaction command is either broken or I am not using it properly.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 11:58:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fastest-way-to-get-log-file-duration/m-p/83273#M21189</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-01-10T11:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Fastest way to get log file duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fastest-way-to-get-log-file-duration/m-p/83274#M21190</link>
      <description>&lt;P&gt;Maybe I'm not seeing the whole picture, but what about&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats min(_time) AS start max(_time) AS stop by source| eval dur = stop - start | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;building transactions require some memory, as you've noted..&lt;/P&gt;

&lt;P&gt;/Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 12:09:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fastest-way-to-get-log-file-duration/m-p/83274#M21190</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-01-10T12:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Fastest way to get log file duration?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Fastest-way-to-get-log-file-duration/m-p/83275#M21191</link>
      <description>&lt;P&gt;thanks, thats what I was looking for &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 12:25:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Fastest-way-to-get-log-file-duration/m-p/83275#M21191</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-01-10T12:25:31Z</dc:date>
    </item>
  </channel>
</rss>

