<?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 Need help of review of 5 year old search to improve it. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-of-review-of-5-year-old-search-to-improve-it/m-p/550265#M156146</link>
    <description>&lt;P&gt;Hello - I have Splunk report that was generated 5 years ago.&amp;nbsp; I was looking for advice.&amp;nbsp; Can it be updated to work better?&amp;nbsp; It is currently running but seems to take long time to complete.&lt;/P&gt;&lt;P&gt;I tried to improve but not knowledgeable enough to make sure I will not screw it up.&lt;BR /&gt;So all insights would be greatly appreciated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Need to make sure the contents of the lookup CVS generate a complete list of jobs.&amp;nbsp; It is important to see if a job is not running.&amp;nbsp; I assume this LEFT joint from the CSV to the results.&lt;/LI&gt;&lt;LI&gt;Using the Frequency_mins to do the calculations.&amp;nbsp; It seems the original search is doing additional calculations.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I do apologize for such a large query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;index="idx_cibca_Application_prod" sourcetype = "tomcat:runtime:log:jpma" AND "lastUpdatedTS" OR "Time taken for" host=Server_1 OR host=Server_2 OR host=Server_3 OR host=Server_4 OR host=Server_5 OR host=Server_6 OR host=Server_7 OR host=Server_8 | eval Job_Thread_Name=case(like(_raw,"%tspPaymentArchiveExecutorIncrementalPoolSizeRange%") ,"tspPaymentArchiveExecutorIncrementalPoolSizeRange",like(_raw,"%completedTxnReplaceIncrementalPoolSizeRange%") ,"completedTxnReplaceIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%completedTxnBackoutCdIncrementalPoolSizeRange%") ,"completedTxnBackoutCdIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%completedTxnBackoutPdIncrementalPoolSizeRange%") ,"completedTxnBackoutPdIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%oneYearCompletedTxnArchivalIncrementalExecutor%") ,"oneYearCompletedTxnArchivalIncrementalExecutor",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%twoYearCompletedTxnArchivalIncrementalExecutor%") ,"twoYearCompletedTxnArchivalIncrementalExecutor",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%fxRateExecutorIncrementalPoolSizeRange%") ,"fxRateExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%mfAccountBalancePDExecutorIncrementalPoolSizeRange%") ,"mfAccountBalancePDExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%achPaymentExecutorWithPoolSizeRange%") ,"achPaymentExecutorWithPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%achtemplateIncrementalExecutorWithPoolSizeRange%") ,"achtemplateIncrementalExecutorWithPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%tspPaymentExecutorIncrementalPoolSizeRange%") ,"tspPaymentExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%tspTemplateExecutorIncrementalPoolSizeRange%") ,"tspTemplateExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%acctEntitlementExecutorIncrementalPoolSizeRange%") ,"acctEntitlementExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%achEntitlementExecutorIncrementalPoolSizeRange%") ,"achEntitlementExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%acttxEntitlementExecutorIncrementalPoolSizeRange%") ,"acttxEntitlementExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%atsAccountExecutorIncrementalPoolSizeRange%") ,"atsAccountExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%completedTxnCDExecutorIncrementalPoolSizeRange%") ,"completedTxnCDExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%completedTxnPDExecutorIncrementalPoolSizeRange%") ,"completedTxnPDExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%accountGroupExecutorIncrementalPoolSizeRange%") ,"accountGroupExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%accountNickNameExecutorIncrementalPoolSizeRange%") ,"accountNickNameExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%accountRetentionExecutorIncrementalPoolSizeRange%") ,"accountRetentionExecutorIncrementalPoolSizeRange",&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%mfAccountBalanceCDExecutorIncrementalPoolSizeRange%") ,"mfAccountBalanceCDExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%pymtCutoffExecutorIncrementalPoolSizeRange%") ,"pymtCutoffExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%achFileImportsExecutorWithPoolSizeRange%") ,"achFileImportsExecutorWithPoolSizeRange")&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| stats latest(_time) as _time , latest(host) as host by Job_Thread_Name &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| eval Thread_Last_Executed=strftime(_time, "%Y-%m-%d %I:%M:%S %p"), EPOC_Time=(_time) &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| eval&amp;nbsp; Lag=round((now()-EPOC_Time)/60) &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| table Job_Thread_Name, Thread_Last_Executed, host, Lag&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| lookup Application_Job_Thread_Name.csv Job_Thread_Name OUTPUTNEW Job_Name Job_Config_Name Frequency_Bucket_in_mins &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| table&amp;nbsp; Job_Name, host, Job_Thread_Name, Job_Config_Name, Frequency_Bucket_in_mins, Thread_Last_Executed, Lag&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| inputlookup&amp;nbsp; append=t Application_Job_Thread_Name.csv&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| dedup&amp;nbsp; Job_Name&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| table&amp;nbsp; Job_Name, host, Job_Thread_Name, Job_Config_Name, Frequency_Bucket_in_mins , Thread_Last_Executed, Lag&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| eval&amp;nbsp; Status=if(isnull(Lag), "NOT OK - Job not running", if(Lag&amp;lt;= if(Frequency_Bucket_in_mins&amp;gt;60, Frequency_Bucket_in_mins+10, 70),"OK","NOT OK - Job not running - Lag found"))&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| join&amp;nbsp; type=left Job_Config_Name&amp;nbsp; [ search index="idx_cibca_Application_prod" sourcetype="tomcat:runtime:log:jpma" AND "Job Details job name:" host=Server_1 OR host=Server_2 OR host=Server_3 OR host=Server_4 OR host=Server_5 OR host=Server_6 OR host=Server_7 OR host=Server_8 &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| rex "Job Details job name:(?&amp;lt;Job_Config_Name&amp;gt;.*) status:(?&amp;lt;JOB_STATUS&amp;gt;.*) timetaken:(?&amp;lt;TIMETAKEN&amp;gt;.*) minutes"&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| rex "(?&amp;lt;DATE_TIME&amp;gt;^(\d+)-(\d+)-(\d+)(\s+)(\d+):(\d+):(\d+).(\d+))" &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| stats&amp;nbsp; latest(DATE_TIME) AS Job_Status_Logged latest(JOB_STATUS) AS Job_Status, latest(TIMETAKEN) AS TIMETAKEN_IN_MINS by Job_Config_Name]&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| rename host as Thread_Host &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| table&amp;nbsp; Job_Name, Thread_Host, Job_Thread_Name, Frequency_mins, Thread_Last_Executed,Lag,Status,Job_Status,Job_Status_Logged,TIMETAKEN_IN_MINS&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| eval&amp;nbsp; Job_Status_Logged = if(isnull(Job_Status_Logged),"NA",Job_Status_Logged), Job_Status = if(isnull(Job_Status),"NA",Job_Status), TIMETAKEN_IN_MINS = if(isnull(TIMETAKEN_IN_MINS),"NA",TIMETAKEN_IN_MINS)&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;CSV File content is:&lt;/STRONG&gt;&lt;BR /&gt;Job_Config_Name,Job_Name,Job_Thread_Name,Frequency_mins&lt;BR /&gt;ach_payment_incremental_loader_task,ACH Payment,achPaymentExecutorWithPoolSizeRange,1&lt;BR /&gt;achTemplateIncrementalLoaderTask,ACH Tempate,achtemplateIncrementalExecutorWithPoolSizeRange,1&lt;BR /&gt;tsp_payment_incremental_loader_task,TSP Payments,tspPaymentExecutorIncrementalPoolSizeRange,1&lt;BR /&gt;tsp_template_incremental_loader_task,TSP Template,tspTemplateExecutorIncrementalPoolSizeRange,1&lt;BR /&gt;acct_entitlement_incremental_loader_task,Account Entitlement,acctEntitlementExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;ach_entitlement_incremental_loader_task,ACH Entitlement,achEntitlementExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;acttx_entitlement_incremental_loader_task,AT Entitlement,acttxEntitlementExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;account_incremental_job,Account,atsAccountExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;completed_txn_cd_incremental_job,Completed TXN CD,completedTxnCDExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;completed_txn_pd_incremental_job,Completed TXN PD,completedTxnPDExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;account_group_incremental_loader_task,Account Group,accountGroupExecutorIncrementalPoolSizeRange,1&lt;BR /&gt;account_nickname_incremental_job,Nick Name,accountNickNameExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;account_retention_incremental_job,Retention,accountRetentionExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;oneYearCompletedTxnArchiveIncrementalJob,One Year Retention,oneYearCompletedTxnArchivalIncrementalExecutor,60&lt;BR /&gt;twoYearCompletedTxnArchiveIncrementalJob,Two year Retention,twoYearCompletedTxnArchivalIncrementalExecutor,60&lt;BR /&gt;account_balance_cd_incremental_job,Balance Cd,mfAccountBalanceCDExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;account_balance_pd_incremental_job,Balance PD,mfAccountBalancePDExecutorIncrementalPoolSizeRange,10&lt;BR /&gt;fxrate_incremental_loader_task,FX Rate,fxRateExecutorIncrementalPoolSizeRange,30&lt;BR /&gt;completed_txn_replace_incremental_loader_task,Replace,completedTxnReplaceIncrementalPoolSizeRange,480&lt;BR /&gt;completed_txn_backout_cd_incremental_loader_task,Backout CD,completedTxnBackoutCdIncrementalPoolSizeRange,360&lt;BR /&gt;completed_txn_backout_pd_incremental_loader_task,Backout PD,completedTxnBackoutPdIncrementalPoolSizeRange,360&lt;BR /&gt;tsp_payment_archive_incremental_loader_task,TSP payment Archive,tspPaymentArchiveExecutorIncrementalPoolSizeRange,10080&lt;BR /&gt;payment_cutoff_incremental_loader_task,Payment Cutoff,pymtCutoffExecutorIncrementalPoolSizeRange,1&lt;BR /&gt;ach_fileimports_incremental_loader_task,ACH File Import,achFileImportsExecutorWithPoolSizeRange,1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 May 2021 19:27:46 GMT</pubDate>
    <dc:creator>stevenulbrich</dc:creator>
    <dc:date>2021-05-03T19:27:46Z</dc:date>
    <item>
      <title>Need help of review of 5 year old search to improve it.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-of-review-of-5-year-old-search-to-improve-it/m-p/550265#M156146</link>
      <description>&lt;P&gt;Hello - I have Splunk report that was generated 5 years ago.&amp;nbsp; I was looking for advice.&amp;nbsp; Can it be updated to work better?&amp;nbsp; It is currently running but seems to take long time to complete.&lt;/P&gt;&lt;P&gt;I tried to improve but not knowledgeable enough to make sure I will not screw it up.&lt;BR /&gt;So all insights would be greatly appreciated.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Need to make sure the contents of the lookup CVS generate a complete list of jobs.&amp;nbsp; It is important to see if a job is not running.&amp;nbsp; I assume this LEFT joint from the CSV to the results.&lt;/LI&gt;&lt;LI&gt;Using the Frequency_mins to do the calculations.&amp;nbsp; It seems the original search is doing additional calculations.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I do apologize for such a large query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;index="idx_cibca_Application_prod" sourcetype = "tomcat:runtime:log:jpma" AND "lastUpdatedTS" OR "Time taken for" host=Server_1 OR host=Server_2 OR host=Server_3 OR host=Server_4 OR host=Server_5 OR host=Server_6 OR host=Server_7 OR host=Server_8 | eval Job_Thread_Name=case(like(_raw,"%tspPaymentArchiveExecutorIncrementalPoolSizeRange%") ,"tspPaymentArchiveExecutorIncrementalPoolSizeRange",like(_raw,"%completedTxnReplaceIncrementalPoolSizeRange%") ,"completedTxnReplaceIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%completedTxnBackoutCdIncrementalPoolSizeRange%") ,"completedTxnBackoutCdIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%completedTxnBackoutPdIncrementalPoolSizeRange%") ,"completedTxnBackoutPdIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%oneYearCompletedTxnArchivalIncrementalExecutor%") ,"oneYearCompletedTxnArchivalIncrementalExecutor",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%twoYearCompletedTxnArchivalIncrementalExecutor%") ,"twoYearCompletedTxnArchivalIncrementalExecutor",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%fxRateExecutorIncrementalPoolSizeRange%") ,"fxRateExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%mfAccountBalancePDExecutorIncrementalPoolSizeRange%") ,"mfAccountBalancePDExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%achPaymentExecutorWithPoolSizeRange%") ,"achPaymentExecutorWithPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%achtemplateIncrementalExecutorWithPoolSizeRange%") ,"achtemplateIncrementalExecutorWithPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%tspPaymentExecutorIncrementalPoolSizeRange%") ,"tspPaymentExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%tspTemplateExecutorIncrementalPoolSizeRange%") ,"tspTemplateExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%acctEntitlementExecutorIncrementalPoolSizeRange%") ,"acctEntitlementExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%achEntitlementExecutorIncrementalPoolSizeRange%") ,"achEntitlementExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%acttxEntitlementExecutorIncrementalPoolSizeRange%") ,"acttxEntitlementExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%atsAccountExecutorIncrementalPoolSizeRange%") ,"atsAccountExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%completedTxnCDExecutorIncrementalPoolSizeRange%") ,"completedTxnCDExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%completedTxnPDExecutorIncrementalPoolSizeRange%") ,"completedTxnPDExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%accountGroupExecutorIncrementalPoolSizeRange%") ,"accountGroupExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%accountNickNameExecutorIncrementalPoolSizeRange%") ,"accountNickNameExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%accountRetentionExecutorIncrementalPoolSizeRange%") ,"accountRetentionExecutorIncrementalPoolSizeRange",&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%mfAccountBalanceCDExecutorIncrementalPoolSizeRange%") ,"mfAccountBalanceCDExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%pymtCutoffExecutorIncrementalPoolSizeRange%") ,"pymtCutoffExecutorIncrementalPoolSizeRange",&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;like(_raw,"%achFileImportsExecutorWithPoolSizeRange%") ,"achFileImportsExecutorWithPoolSizeRange")&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| stats latest(_time) as _time , latest(host) as host by Job_Thread_Name &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| eval Thread_Last_Executed=strftime(_time, "%Y-%m-%d %I:%M:%S %p"), EPOC_Time=(_time) &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| eval&amp;nbsp; Lag=round((now()-EPOC_Time)/60) &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| table Job_Thread_Name, Thread_Last_Executed, host, Lag&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| lookup Application_Job_Thread_Name.csv Job_Thread_Name OUTPUTNEW Job_Name Job_Config_Name Frequency_Bucket_in_mins &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| table&amp;nbsp; Job_Name, host, Job_Thread_Name, Job_Config_Name, Frequency_Bucket_in_mins, Thread_Last_Executed, Lag&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| inputlookup&amp;nbsp; append=t Application_Job_Thread_Name.csv&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| dedup&amp;nbsp; Job_Name&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| table&amp;nbsp; Job_Name, host, Job_Thread_Name, Job_Config_Name, Frequency_Bucket_in_mins , Thread_Last_Executed, Lag&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| eval&amp;nbsp; Status=if(isnull(Lag), "NOT OK - Job not running", if(Lag&amp;lt;= if(Frequency_Bucket_in_mins&amp;gt;60, Frequency_Bucket_in_mins+10, 70),"OK","NOT OK - Job not running - Lag found"))&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| join&amp;nbsp; type=left Job_Config_Name&amp;nbsp; [ search index="idx_cibca_Application_prod" sourcetype="tomcat:runtime:log:jpma" AND "Job Details job name:" host=Server_1 OR host=Server_2 OR host=Server_3 OR host=Server_4 OR host=Server_5 OR host=Server_6 OR host=Server_7 OR host=Server_8 &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| rex "Job Details job name:(?&amp;lt;Job_Config_Name&amp;gt;.*) status:(?&amp;lt;JOB_STATUS&amp;gt;.*) timetaken:(?&amp;lt;TIMETAKEN&amp;gt;.*) minutes"&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| rex "(?&amp;lt;DATE_TIME&amp;gt;^(\d+)-(\d+)-(\d+)(\s+)(\d+):(\d+):(\d+).(\d+))" &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| stats&amp;nbsp; latest(DATE_TIME) AS Job_Status_Logged latest(JOB_STATUS) AS Job_Status, latest(TIMETAKEN) AS TIMETAKEN_IN_MINS by Job_Config_Name]&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| rename host as Thread_Host &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| table&amp;nbsp; Job_Name, Thread_Host, Job_Thread_Name, Frequency_mins, Thread_Last_Executed,Lag,Status,Job_Status,Job_Status_Logged,TIMETAKEN_IN_MINS&amp;nbsp; &lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="2"&gt;| eval&amp;nbsp; Job_Status_Logged = if(isnull(Job_Status_Logged),"NA",Job_Status_Logged), Job_Status = if(isnull(Job_Status),"NA",Job_Status), TIMETAKEN_IN_MINS = if(isnull(TIMETAKEN_IN_MINS),"NA",TIMETAKEN_IN_MINS)&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;CSV File content is:&lt;/STRONG&gt;&lt;BR /&gt;Job_Config_Name,Job_Name,Job_Thread_Name,Frequency_mins&lt;BR /&gt;ach_payment_incremental_loader_task,ACH Payment,achPaymentExecutorWithPoolSizeRange,1&lt;BR /&gt;achTemplateIncrementalLoaderTask,ACH Tempate,achtemplateIncrementalExecutorWithPoolSizeRange,1&lt;BR /&gt;tsp_payment_incremental_loader_task,TSP Payments,tspPaymentExecutorIncrementalPoolSizeRange,1&lt;BR /&gt;tsp_template_incremental_loader_task,TSP Template,tspTemplateExecutorIncrementalPoolSizeRange,1&lt;BR /&gt;acct_entitlement_incremental_loader_task,Account Entitlement,acctEntitlementExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;ach_entitlement_incremental_loader_task,ACH Entitlement,achEntitlementExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;acttx_entitlement_incremental_loader_task,AT Entitlement,acttxEntitlementExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;account_incremental_job,Account,atsAccountExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;completed_txn_cd_incremental_job,Completed TXN CD,completedTxnCDExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;completed_txn_pd_incremental_job,Completed TXN PD,completedTxnPDExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;account_group_incremental_loader_task,Account Group,accountGroupExecutorIncrementalPoolSizeRange,1&lt;BR /&gt;account_nickname_incremental_job,Nick Name,accountNickNameExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;account_retention_incremental_job,Retention,accountRetentionExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;oneYearCompletedTxnArchiveIncrementalJob,One Year Retention,oneYearCompletedTxnArchivalIncrementalExecutor,60&lt;BR /&gt;twoYearCompletedTxnArchiveIncrementalJob,Two year Retention,twoYearCompletedTxnArchivalIncrementalExecutor,60&lt;BR /&gt;account_balance_cd_incremental_job,Balance Cd,mfAccountBalanceCDExecutorIncrementalPoolSizeRange,5&lt;BR /&gt;account_balance_pd_incremental_job,Balance PD,mfAccountBalancePDExecutorIncrementalPoolSizeRange,10&lt;BR /&gt;fxrate_incremental_loader_task,FX Rate,fxRateExecutorIncrementalPoolSizeRange,30&lt;BR /&gt;completed_txn_replace_incremental_loader_task,Replace,completedTxnReplaceIncrementalPoolSizeRange,480&lt;BR /&gt;completed_txn_backout_cd_incremental_loader_task,Backout CD,completedTxnBackoutCdIncrementalPoolSizeRange,360&lt;BR /&gt;completed_txn_backout_pd_incremental_loader_task,Backout PD,completedTxnBackoutPdIncrementalPoolSizeRange,360&lt;BR /&gt;tsp_payment_archive_incremental_loader_task,TSP payment Archive,tspPaymentArchiveExecutorIncrementalPoolSizeRange,10080&lt;BR /&gt;payment_cutoff_incremental_loader_task,Payment Cutoff,pymtCutoffExecutorIncrementalPoolSizeRange,1&lt;BR /&gt;ach_fileimports_incremental_loader_task,ACH File Import,achFileImportsExecutorWithPoolSizeRange,1&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 19:27:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-of-review-of-5-year-old-search-to-improve-it/m-p/550265#M156146</guid>
      <dc:creator>stevenulbrich</dc:creator>
      <dc:date>2021-05-03T19:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need help of review of 5 year old search to improve it.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-of-review-of-5-year-old-search-to-improve-it/m-p/550314#M156164</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="idx_cibca_Application_prod" sourcetype="tomcat:runtime:log:jpma" AND ("Job Details job name:" OR "lastUpdatedTS" OR "Time taken for" ) host=Server_1 OR host=Server_2 OR host=Server_3 OR host=Server_4 OR host=Server_5 OR host=Server_6 OR host=Server_7 OR host=Server_8
| rex "(?&amp;lt;Job_Thread_Name&amp;gt;\S+Range)"
| rex "Job Details job name:(?&amp;lt;Job_Config_Name&amp;gt;.*) status:(?&amp;lt;JOB_STATUS&amp;gt;.*) timetaken:(?&amp;lt;TIMETAKEN&amp;gt;.*) minutes" 
| rex "(?&amp;lt;DATE_TIME&amp;gt;^(\d+)-(\d+)-(\d+)(\s+)(\d+):(\d+):(\d+).(\d+))" 
| lookup Application_Job_Thread_Name.csv Job_Thread_Name OUTPUTNEW Job_Name Job_Config_Name Frequency_Bucket_in_mins&lt;/LI-CODE&gt;&lt;P&gt;I don't have the log, so I don't know if it's accurate, but I think it will be faster except for the &lt;STRONG&gt;join&lt;/STRONG&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 02:46:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-of-review-of-5-year-old-search-to-improve-it/m-p/550314#M156164</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2021-05-04T02:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need help of review of 5 year old search to improve it.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-of-review-of-5-year-old-search-to-improve-it/m-p/550377#M156179</link>
      <description>&lt;P&gt;Let me give a spin - Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 11:44:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-of-review-of-5-year-old-search-to-improve-it/m-p/550377#M156179</guid>
      <dc:creator>stevenulbrich</dc:creator>
      <dc:date>2021-05-04T11:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Need help of review of 5 year old search to improve it.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-of-review-of-5-year-old-search-to-improve-it/m-p/550459#M156213</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/184221"&gt;@to4kawa&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;now I have to post a question on combining two searches.&amp;nbsp; I failed to realize the original search is two queries.&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 23:23:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-of-review-of-5-year-old-search-to-improve-it/m-p/550459#M156213</guid>
      <dc:creator>stevenulbrich</dc:creator>
      <dc:date>2021-05-04T23:23:46Z</dc:date>
    </item>
  </channel>
</rss>

