<?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: newbe question about time spent in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531170#M8591</link>
    <description>&lt;P&gt;Ok thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;I now have a report with 3 columns :&lt;/P&gt;&lt;P&gt;orderid start end&lt;/P&gt;&lt;P&gt;Which command can I best use to subtract start from end ?&lt;/P&gt;&lt;P&gt;The minus sign does not work.&lt;/P&gt;&lt;P&gt;Subtract also not..&lt;/P&gt;&lt;P&gt;A link to the documentation is also welcome .&lt;/P&gt;</description>
    <pubDate>Fri, 27 Nov 2020 14:37:15 GMT</pubDate>
    <dc:creator>mpjjonker</dc:creator>
    <dc:date>2020-11-27T14:37:15Z</dc:date>
    <item>
      <title>newbe question about time spent</title>
      <link>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531156#M8588</link>
      <description>&lt;DIV&gt;Good day,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am new to Splunk and just have completed the fundamentals I course.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For my first use case I am looking for an example where I can create reports/dashboard on average time spent in our systems.&lt;/DIV&gt;&lt;DIV&gt;I have a key (orderid) and multiple systems log events where they provide this orderid as field.&lt;/DIV&gt;&lt;DIV&gt;In some systems the process continues after a human has acted. This might take hours or days.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I need to display stats like: average time to process an order end to end.&lt;/DIV&gt;&lt;DIV&gt;But also the number of orders that have started but have not yet ended.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Can you point me to a sample/documentation that will help me to achieve this ?&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 Nov 2020 14:00:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531156#M8588</guid>
      <dc:creator>mpjjonker</dc:creator>
      <dc:date>2020-11-27T14:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: newbe question about time spent</title>
      <link>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531166#M8589</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats first(_time) as start last(_time) as end by orderid&lt;/LI-CODE&gt;&lt;P&gt;How do you know which event is the end of the process?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 14:01:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531166#M8589</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-27T14:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: newbe question about time spent</title>
      <link>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531169#M8590</link>
      <description>&lt;P&gt;Thanks I will try this out.&lt;/P&gt;&lt;P&gt;The last step of the process is in another system, so I can use the host field (I hope) to now the last _time&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 14:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531169#M8590</guid>
      <dc:creator>mpjjonker</dc:creator>
      <dc:date>2020-11-27T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: newbe question about time spent</title>
      <link>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531170#M8591</link>
      <description>&lt;P&gt;Ok thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;I now have a report with 3 columns :&lt;/P&gt;&lt;P&gt;orderid start end&lt;/P&gt;&lt;P&gt;Which command can I best use to subtract start from end ?&lt;/P&gt;&lt;P&gt;The minus sign does not work.&lt;/P&gt;&lt;P&gt;Subtract also not..&lt;/P&gt;&lt;P&gt;A link to the documentation is also welcome .&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 14:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531170#M8591</guid>
      <dc:creator>mpjjonker</dc:creator>
      <dc:date>2020-11-27T14:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: newbe question about time spent</title>
      <link>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531171#M8592</link>
      <description>&lt;P&gt;maybe this one:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/Subtracting-two-timestamps/m-p/230899" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/Subtracting-two-timestamps/m-p/230899&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 14:38:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531171#M8592</guid>
      <dc:creator>mpjjonker</dc:creator>
      <dc:date>2020-11-27T14:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: newbe question about time spent</title>
      <link>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531176#M8593</link>
      <description>&lt;P&gt;depending on the ordering of the events you may find that start is a bigger number than end - you need to subtract the smaller number from the larger to get the time difference in seconds&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 15:02:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531176#M8593</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-27T15:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: newbe question about time spent</title>
      <link>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531177#M8594</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp; I think I run into the issue you hinted at when you asked me how do I know the end. I am getting negative durations (meaning end is before start)...&lt;BR /&gt;&lt;BR /&gt;How should I use this host field to tell Splunk that the time for this event is to be considered last (or first depending on the host) ?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 15:13:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531177#M8594</guid>
      <dc:creator>mpjjonker</dc:creator>
      <dc:date>2020-11-27T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: newbe question about time spent</title>
      <link>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531185#M8595</link>
      <description>&lt;P&gt;The issue is that the order the events are normally processed (without a sort) is most recent to least recent, so first is actually most recent i.e. latest event so you probably need to name them differently. That's why I said subtract the lower number from the larger number. You could also capture the last host (first found).&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats first(_time) as end last(_time) as start first(host) as finalhost by orderid
| eval duration=end-start&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 16:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/newbe-question-about-time-spent/m-p/531185#M8595</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-27T16:18:47Z</dc:date>
    </item>
  </channel>
</rss>

