Hi Niketnilay,
The jobname is being extracted using regex.below is the source for the dashboard which is not working.
DFS IW Batch Job Monitor Dashboard
DFS IW Batch Job Monitor
<input type="time" token="field1">
<label></label>
<default>
<earliest>-24h</earliest>
<latest>now</latest>
</default>
</input>
<panel>
<table>
<title>IW Batch Job Duration</title>
<search>
<query>index=auto_prod_iw* "/afiw/batch/scripts/gc01*.ksh" "Job gc01* -" "started - time=" | dedup _raw |rex "\w+\/\w+\/\w+\/(?<Job_Name>\w+)\.ksh" | eval StartTime=strftime(_time,"%Y/%m/%d %H:%M:%S") | append [| search index=auto_prod_iw* "/afiw/batch/scripts/gc01*.ksh" "Job gc01* -" ("ended - time=" OR "ENDED - time") | dedup _raw |rex "\w+\/\w+\/\w+\/(?<Job_Name>\w+)\.ksh" | eval EndTime=strftime(_time,"%Y/%m/%d %H:%M:%S")] | transaction Job_Name |dedup Job_Name | table Job_Name StartTime EndTime duration |eval Duration_Min= round((duration/60),2) | rename duration AS Duration_Sec</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
<option name="wrap">true</option>
<option name="rowNumbers">false</option>
<option name="dataOverlayMode">none</option>
<option name="drilldown">cell</option>
<option name="count">10</option>
<drilldown>
<set token="tokComponent">$row.Job_Name$</set>
</drilldown>
</table>
</panel>
<panel>
<event>
<title>Errors</title>
<search>
<query>index=auto_prod_iw* "/afiw/batch/scripts/gc01*.ksh" "error" OR "abort"</query>
<earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
</event>
</panel>
<panel>
<table>
<title>Last 7 Days</title>
<search>
<query>index=auto_prod_iw* "/afiw/batch/scripts/gc01*.ksh" "Job gc01* -" "started - time=" | dedup _raw |rex "\w+\/\w+\/\w+\/(?<Job_Name>\w+)\.ksh" |Job_Name="$tokComponent$"| eval StartTime=strftime(_time,"%Y/%m/%d %H:%M:%S") | append [| search index=auto_prod_iw* "/afiw/batch/scripts/gc01*.ksh" "Job gc01* -" ("ended - time=" OR "ENDED - time") | dedup _raw |rex "\w+\/\w+\/\w+\/(?<Job_Name>\w+)\.ksh" | Job_Name="$tokComponent$"|eval EndTime=strftime(_time,"%Y/%m/%d %H:%M:%S")] | transaction Job_Name |dedup Job_Name | table Job_Name StartTime EndTime duration |eval Duration_Min= round((duration/60),2) | rename duration AS Duration_Sec</query> <earliest>$field1.earliest$</earliest>
<latest>$field1.latest$</latest>
</search>
</table>
</panel>
... View more