Log in or sign up to continue



set file=$system.Util.ManagerDirectory()_"messages.log"
open file:("RS"):1 w $T  open 2:99
try { for n=1:1 use file read lin use 2 write lin,! } catch { close 2,file  write n_" lines",! }

then use ^SPOOL mapping (OEX) to work on it with SQL

I want to get logs in a structured way.

Hi @Eduard Lebedyuk,

How about a custom class query (that read cconsole\messages.log) to solve your problem. ?
(Robert's solution would be faster to code.)