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

Re: [Condor-users] Convert condor log to XML



On 12/10/07, Thanh D. Do <doducthanhbk@xxxxxxxxx> wrote:
> Hi all,
>
> Is condor create log in a standard format? If yes, it is possible to
> convert the log in to XML for further process.
>

There's no structure to the log, beyond the time stamp and then a message:
12/11 03:34:20 Shadow pid 29852 for job 6701.11099 exited with status 100

It'd be easy to convert everything into XML like this:
<record><time>12/11 03:34:20</time><message>Shadow pid 29852 for job
6701.11099 exited with status 100</message></record>

Different messages have some structure, so if you wanted to put a lot
of work into it you could do better than the simple conversion:
<record>
    <time>12/11 03:34:20</time>
    <event type=ShadowExit job=6701.11099>
         <pid>29582</pid>
         <status>100</status>
    </event>
    <rawMessage>Shadow pid 29852 for job 6701.11099 exited with status
100</rawMessage>
</record>

 But you'd have to define your own schema, and there's absolutely no
guarantee that the raw text of the condor logs won't change (because
god knows, much of the text needs improvement)

-Erik