Isolate item from logs

I’ve got a temperature sensor with which I want to detect whether a fireplace is burning or not. So I’ve got it reporting temperatures every second. But that produces a lot of log entries…

Is it possible to isolate the logs of an item, like it’s possible with a rule or binding?

No. events.log is the logger for the event bus. There is not a separate logger per Item. All Item events share the same logger. It’s all or nothing. So you could disable logging of all Item changes.

You can set up a reges filter to remove those logs from the file entirely.

You can add a profile or a transformation so the Item changes less frequently (e.g. Basic Profiles - Transformation Services | openHAB, or Basic Profiles - Transformation Services | openHAB, or a script transform) even if it’s updating every second. With these you will get at most one change per second but only see it in events.log when there is a big enough change.

1 Like