7572 questions

9026 answers

14571 comments

11782 members

0 votes
53 views 3 comments
by
I want to implement publishing data from modbus device to external mqtt broker with tls support. Where i can find mqtt publisher logs to resolve sending problem?

2 Answers

0 votes
by

Hi,

All the possible log entries could be found by typing logread in CLI.

EB.

by

Im looking for logs from modbus tcp (for example connectiom timeout, reply timeout, exception error) and for mqtt broker problems like connection timeout, invalid user or password, authentication

I get only:



root@Teltonika-TRB255:~# logread -f
Fri Jun 11 07:45:31 2021 daemon.err uhttpd[2418]: sed: write error
Fri Jun 11 07:47:34 2021 kern.notice kernel: modbus_data_sender configuration has been changed
Fri Jun 11 07:48:29 2021 kern.notice kernel: modbus_data_sender configuration has been changed
Fri Jun 11 08:00:00 2021 cron.info crond[19890]: USER root pid 13535 cmd sh /sbin/ftp_upload.sh
Fri Jun 11 08:00:00 2021 user.notice ftp_upload.sh: No FTP host provided.

by

If you know what to look for exactly, you can use grep

For example:

logread | grep timeout

EB.

by
There are change configuration entries only :( How to diagnose problem occured week ago?
0 votes
by
I've already tried grepping log with built-in -e switch.
Log seems to not have any lines containing "modbus" "timeout" or "mqtt" strings (besides "configuration change detected")
Just like it was needed to explicitly turn on more verbose modbus/mqtt logging in some config. Hence my question.