FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
+1 vote
392 views 3 comments
by anonymous
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 anonymous

Hi,

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

EB.

by anonymous

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 anonymous

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

For example:

logread | grep timeout

EB.

by anonymous
There are change configuration entries only :( How to diagnose problem occured week ago?
+1 vote
by anonymous
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.