Paydirt! I modified your search, thus:
index=uws_esm "1719" AND "0572"
| rex "(?<job_start>[^|]+)\s\(1719"
| rex "(?<job_end>\d\d\d\d\s\d\d\d\d\d\d\s\(0572\)\s\d\s)"
| eval job_start_epoch = strptime(job_start, "%m%d %H%M%S")
| eval job_end_epoch = strptime(job_end, "%m%d %H%M%S")
| eval job_dur_in_sec = job_end_epoch - job_start_epoch
| timechart count by job_dur_in_sec
So now the inevitable questions: what was the purpose of field=data , and max_match=0 ?
Also, you may notice that I replace my original rex for 0572 with a convoluted string...the consarned thing simply would NOT pull data as the original rex, not until I put that whole nonsense in there...it only pulled like four or five, and and the rest were "null". Weird, huh?
... View more