• Combine multiple log events to one doc

    By Jim Knight 2 decades ago

    I like this for errors because it's so easy. Wondering if anyone ever requested to combine multiple events into one document. For example, I have a script library for logging where I record an array of messages during the agent run and if successfully completed, it saves them to a log document or even if failure, it wraps up the log document with an error message but all the events that were recorded during the processing get written to that record.



    This method has 2 benefits:

    (1) Less performance impact during each log write.

    (2) One document per agent run - if there are many messages, they are all in one doc.



    I haven't looked in detail yet to modify this accordingly but just wondering if anyone had this request or maybe I missed something in the documentation.