<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Mar 9, 2015 at 12:53 AM, Lennart Poettering <span dir="ltr"><<a href="mailto:lennart@poettering.net" target="_blank">lennart@poettering.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, 06.03.15 21:28, Chris Morgan (<a href="mailto:chmorgan@gmail.com">chmorgan@gmail.com</a>) wrote:<br>
<br>
> <a href="http://www.freedesktop.org/software/systemd/man/sd_journal_add_match.html" target="_blank">http://www.freedesktop.org/software/systemd/man/sd_journal_add_match.html</a><br>
> is pretty clear that the matches are in the form of 'FIELD=value' but<br>
> it doesn't mention the why.<br>
><br>
> What if I've written a field like "FIELD", can I then match on it as<br>
> "FIELD"?<br>
<br>
</span>Hmm, not sure I understand what you mean?<br>
<br>
The journal stores key/value pairs, on display and when parsing we<br>
denote them in the form of an uppercase fied name, followed by a "=",<br>
followed by any kind of data.<br>
<br>
Hence, just "FIELD" is not something the journald would or could<br>
store. If you try to pass this to journald for it to write, it would<br>
drop this, because it's malformed and not a key/value pair.</blockquote><div><br></div><div>I think the idea was just to *match* all entries that have a given key *present* but with any value?</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>