[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] epoch log format ~ JSON



Hi Thomas,

All history files (normal job history for the AP and EP, and the epoch history) only store ClassAds in the long format. You can get the ads in history format by using either the -json or -jsonl flags for condor_history or if using the python bindings then you can use the printJson() method for each returned ClassAd from any history query. Note that printJson() returns a string containing the ClassAd in JSON format.

-Cole Bollig

From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of Thomas Hartmann <thomas.hartmann@xxxxxxx>
Sent: Monday, November 4, 2024 9:41 AM
To: HTCondor-Users Mail List <htcondor-users@xxxxxxxxxxx>
Subject: [HTCondor-users] epoch log format ~ JSON
 
Hi all,

since JSON parsing is more widely supported, I wonder if the epoch log
can be formatted as JSON similar to the event log?
E.g.,
   EVENT_LOG_FORMAT_OPTIONS=JSON, ISO_DATE

I have not found a knob for the epoch (or a related job history knob)
and guess that only plain line-wise history and epoch formats are
available, or?

(the epoch scheme looks pretty like its history sibling so that w/o JSON
I would then try and go for adapting the history grok)

Cheers,
   Thomas