Re: any api to read logs ?

2018-10-04 Thread Bennett Todd
If I were to depart from the unstructured text syslog format, I'd shift to CSV; with a reasonable choice of quoting rules it can robustly round-trip a lot of tabular data, and very fast writers and parsers are available. I, personally, wouldn't find a more complex structure that easily represents

Re: any api to read logs ?

2018-10-04 Thread Philip Paeps
On 2018-10-01 09:32:58 (+0200), Patrick Ben Koetter wrote: * Илья Шипицин : Here is an idea: combine log analysis with a web API. End of problem. that was what I was going to implement. however, I do not like to implement thing that are implemented already. so, I did a google search and I

Re: any api to read logs ?

2018-10-01 Thread Илья Шипицин
пн, 1 окт. 2018 г. в 12:30, Tom Hendrikx : > Hi, > > I have a set of grok patterns for logstash. You can send the postfix > logs to logstash, have them parsed into something more or less > structured by the pattersn, then expose the logstash data through some api. > >

Re: any api to read logs ?

2018-10-01 Thread Patrick Ben Koetter
* Илья Шипицин : > > Here is an idea: combine log analysis with a web API. End of problem. > > that was what I was going to implement. > however, I do not like to implement thing that are implemented already. > so, I did a google search and I asked mailing list. > > seems, I need to implement

Re: any api to read logs ?

2018-10-01 Thread Tom Hendrikx
Hi, I have a set of grok patterns for logstash. You can send the postfix logs to logstash, have them parsed into something more or less structured by the pattersn, then expose the logstash data through some api. https://github.com/whyscream/postfix-grok-patterns/ Kind regards, Tom On

Re: any api to read logs ?

2018-09-30 Thread Илья Шипицин
вс, 30 сент. 2018 г. в 4:40, Wietse Venema : > Wietse: > > > Open a web search engine, ask for for 'logfile analysis tools'. > > ???: > > logfile analys is good for human, it is not rest api. > > I did search already > > Here is an idea: combine log analysis with a web API. End of

Re: any api to read logs ?

2018-09-29 Thread Wietse Venema
Wietse: > > Open a web search engine, ask for for 'logfile analysis tools'. ???: > logfile analys is good for human, it is not rest api. > I did search already Here is an idea: combine log analysis with a web API. End of problem. Wietse

Re: any api to read logs ?

2018-09-29 Thread Robert Schetterer
Am 29.09.2018 um 15:32 schrieb Matus UHLAR - fantomas: > On 29.09.18 16:42, Илья Шипицин wrote: >> logfile analys is good for human, it is not rest api. > > postfix produces logs, does not read nor parse them. > >> I did search already >> >> any rest api ? > > please tell us when you find one.

Re: any api to read logs ?

2018-09-29 Thread Matus UHLAR - fantomas
On 29.09.18 16:42, Илья Шипицин wrote: logfile analys is good for human, it is not rest api. postfix produces logs, does not read nor parse them. I did search already any rest api ? please tell us when you find one. guys may add it to http://www.postfix.org/addon.html#logfile

Re: any api to read logs ?

2018-09-29 Thread Илья Шипицин
logfile analys is good for human, it is not rest api. I did search already any rest api ? сб, 29 сент. 2018 г. в 16:21, Wietse Venema : > ???: > > Hello, > > > > we use automation to send messages. > > from the automation point of view it is nice to know what happened to > > message >

Re: any api to read logs ?

2018-09-29 Thread Wietse Venema
???: > Hello, > > we use automation to send messages. > from the automation point of view it is nice to know what happened to > message > > I think about the following > > 1) automation send email via smtp --> id of message > 2) automation ask postfix via (rest) api "hey, tell me

any api to read logs ?

2018-09-29 Thread Илья Шипицин
Hello, we use automation to send messages. from the automation point of view it is nice to know what happened to message I think about the following 1) automation send email via smtp --> id of message 2) automation ask postfix via (rest) api "hey, tell me history of message id ..." any