On 2020-11-20 at 10:18 +0000, Tim Bray via mailop wrote: > On 20/11/2020 08:01, Andrew C Aitchison via mailop wrote: > > The developers would like to use a "standard" schema; > > does anyone use or know of a JSON schema for mail servers logs ? > > Tricky - a streaming file format is not going to be a valid JSON document?
There are three different specifications for documents where one line is one JSON object and you stream that way. They're all pretty much the same thing. Oh, one of them is now under W3C aegis: <https://www.w3.org/2018/json-ld-wg/> > Unless you do 1 JSON document per line, then but then line breaks are in > valid inside the json. JSON strings for these things use the two character sequence `\n` to handle line-breaks inside the content. FWIW, my preference is to leave Exim's logs alone. _IF_ there were a standard schema, we could look at adopting it, as long as it has escape hatches for per-MTA extensions. But I'd rather see transformations happen afterwards so that we never get into a situation where volunteer maintainers are dealing with self-righteous people declaring that we're morally wrong for going ahead and doing X without waiting for the imprimatur of others. -Phil _______________________________________________ mailop mailing list [email protected] https://list.mailop.org/listinfo/mailop
