<?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: How to create a basic query to add all sub processing time for fileprocessing? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-basic-query-to-add-all-sub-processing-time-for/m-p/430083#M168422</link>
    <description>&lt;P&gt;Assuming you already have the fields extracted with the file name in 'filename' and time taken in 'timeTaken' then this should work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ABC source=trxfxfgf.log | stats sum(timeTaken) as TotalTime by filename
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 09 Jul 2018 18:20:44 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2018-07-09T18:20:44Z</dc:date>
    <item>
      <title>How to create a basic query to add all sub processing time for fileprocessing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-basic-query-to-add-all-sub-processing-time-for/m-p/430082#M168421</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have some events which are related to file processing.&lt;BR /&gt;
each file process have sub process with sub process ID and time taken to  complete that sub process.&lt;BR /&gt;
to know time taken for file process i need to add all sub process times. &lt;BR /&gt;
my events are like this.&lt;/P&gt;

&lt;P&gt;index=ABC source=trxfxfgf.log&lt;/P&gt;

&lt;P&gt;Event 1 :  myfile.txt  sub_process_id: asgr1001  Total Time Taken: 10sec&lt;BR /&gt;
Event 2 :  myfile.txt  sub_process_id: shhhtsh1002  Total Time Taken: 20sec.&lt;BR /&gt;
Event 3 :  myfile.txt  sub_process_id: shsdthds1003  Total Time Taken: 30sec.&lt;BR /&gt;
Event 4:  myfile.txt  sub_process_id: tdhtr1004  Total Time Taken: 40sec.&lt;BR /&gt;
Event 5 :  myfile.txt  sub_process_id: rehttr1005  Total Time Taken: 50sec.&lt;/P&gt;

&lt;P&gt;i want to display&lt;BR /&gt;
filename      timeTaken&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;myfile.txt        150sec&lt;/P&gt;

&lt;P&gt;Please help me with basic query to add all sub process time.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:21:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-basic-query-to-add-all-sub-processing-time-for/m-p/430082#M168421</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2020-09-29T20:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a basic query to add all sub processing time for fileprocessing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-basic-query-to-add-all-sub-processing-time-for/m-p/430083#M168422</link>
      <description>&lt;P&gt;Assuming you already have the fields extracted with the file name in 'filename' and time taken in 'timeTaken' then this should work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ABC source=trxfxfgf.log | stats sum(timeTaken) as TotalTime by filename
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Jul 2018 18:20:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-basic-query-to-add-all-sub-processing-time-for/m-p/430083#M168422</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-07-09T18:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a basic query to add all sub processing time for fileprocessing?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-basic-query-to-add-all-sub-processing-time-for/m-p/430084#M168423</link>
      <description>&lt;P&gt;Thanks Rich, it helped me a lot&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2018 18:53:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-basic-query-to-add-all-sub-processing-time-for/m-p/430084#M168423</guid>
      <dc:creator>sravankaripe</dc:creator>
      <dc:date>2018-07-09T18:53:33Z</dc:date>
    </item>
  </channel>
</rss>

