Json – how to select Any of available fields with jq?
I'm trying to filter some journald logs which might have some-what similar information in different keys. journalctl -o json | head -n 1000 | jq '.UNIT, .USER_UNIT, ._SYSTEMD_UNIT Those 3 keys might have the unit name, depending on how the…