@rich7177
Thank you so much for this awesome reply.
here is what is happening. I tried to use your part
index=aap_prod sourcetype="HDP:PROD:OOZIE"
| transaction JobID startswith=":start:] with user-retry state" endswith="@end***]Action updated in DB!"
| search duration!=0
| rex "TOKEN\[\] APP\[(?<JobName>[^\]]*)"| rex "ACTION\[[^\@]*(?<Action>[^\d\]]*)"
| rex "JOB\[?(?<JobId>[\d-]+)-"|rename JobId as "Job ID",JobName as "Job Name"
| table "Job Name", "Job ID",StartTime , EndTime ,duration
************above part works except the start and end time*******************
if I add below mentioned part it does not return any data in the table
| stats earliest(_time) as StartTime, latest(_time) as EndTime
| eval StartTime=strftime(StartTime, "%c")|eval EndTime=strftime(EndTime, "%c")
| eval JobRunTime=tostring(duration, "duration")
The previous rex works fine in this one. just that the start and end times are not displayed in the table.
Events :
*********************************
2/18/16
7:11:46.526 PM
2016-02-18 19:11:46,526 INFO ActionStartXCommand:543 - SERVER[p01bdl841.aap.csaa.com] USER[hdfs] GROUP[-] TOKEN[] APP[WF_danlaw_journey_hive] JOB[0001550-160210171129236-oozie-oozi-W] ACTION[0001550-160210171129236-oozie-oozi-W@end] [***0001550-160210171129236-oozie-oozi-W@end***]Action updated in DB!
2/18/16
7:05:01.882 PM
2016-02-18 19:05:01,882 INFO ActionStartXCommand:543 - SERVER[p01bdl841.aap.csaa.com] USER[hdfs] GROUP[-] TOKEN[] APP[WF_danlaw_journey_hive] JOB[0001550-160210171129236-oozie-oozi-W] ACTION[0001550-160210171129236-oozie-oozi-W@:start:] Start action [0001550-160210171129236-oozie-oozi-W@:start:] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10]
*********************************
Thanks a ton for looking into this.
... View more