[BUG-11664] How to distinguish which Modbus device in logs

I have been noticing the Logs filled with ReadCoilsRequest and ReadInputRegistersRequest that have timeouts and error messages indicating exception codes of Illegal Data Address. This has happened several times in the past. We have several devices that are polling, and I cannot figure out a way to tell which device is generating the problem, or better, which tag is generating it easily. Current method is to disable these devices one at a time until the problem goes away.

Is there a better way?

The wrapper log should have device-name = ... at the end of each line.

The logs in the gateway you can hover over the magnifying glass icon:

Kevin, I don’t get the magnifying glass in any of the log levels. I get a + sign to expand on some entries, but never the magnifying glass.

I am running 7.9.6 currently. Is that an 8.0 thing?

Huh, it should be there in 7.9, but something is broken in the logger system and there’s an open ticket to backport the fix from 8.0.

I’m not seeing it in the wrapper log files either. I just checked one of my other systems running 7.9.9 and the same thing.

Don’t know if this is a problem, but they are both running Java 1.8.0_161-b12

Yeah, it’s broken right now, sorry. :confused:

This post will get updated when it’s eventually fixed.

This issue was fixed in 7.9.12.