I use the karaf console with the command log:tail
to view the live-logs of my openHABian system. Unfortunately, there is very much noise in my logs – for example, I use the sysinfo binding so I receive one ItemStateChangedEvent per second about my pi’s CPU temp, which can be really annoying when I am trying to debug a rule.
How can I filter this log? I tried the following variants without success:
-
log:tail light
(to only show lines matching “light” – no output) -
log:tail | grep light
(output remains unfiltered).
How can I achieve this aim? I also considered using tail
from a regular SSH shell, without karaf. But it does not union the logs of multiple files, and multitail -iw
does not look really convenient to me.
Can you give me any hint?