Re: [systemd-devel] Something wrong with sd_journal_add_match

2016-06-23 Thread Dennis Semakin
sd_journal_get_data() returns 0 (zero) in that case. 22.06.2016, 14:51, "Luca BRUNO" : > On Wednesday 22 June 2016 12:10:14 Dennis Semakin wrote: > >>  The task is to obtain messages _only_ with specified fields (e.g. >>  MESSAGE_ID=bla-bla-bla). > >>  And problem is that I can see incoming messa

Re: [systemd-devel] Something wrong with sd_journal_add_match

2016-06-22 Thread Luca BRUNO
On Wednesday 22 June 2016 12:10:14 Dennis Semakin wrote: > The task is to obtain messages _only_ with specified fields (e.g. > MESSAGE_ID=bla-bla-bla). > And problem is that I can see incoming messages even when sending tool is > not running (no execution). Looks like I got all messages from jour

[systemd-devel] Something wrong with sd_journal_add_match

2016-06-22 Thread Dennis Semakin
Hello. I've got some strange results when played with sd_journal_* functions. The task is to obtain messages _only_ with specified fields (e.g. MESSAGE_ID=bla-bla-bla) and I get it. Theoretically there is only one tool which send unique msg and one service to whom these msg. And problem is that