Hi Craig.
Um, ok, to answer your question/s:
RasPi Buster.
NR 2.2.2
Mosquito... Stuck.
ver
? version
? Neither seem to work.
But skipping that for a second:
The broker is run on the RasPi (mentioned above)
but looking where you said, I see nothing.
Or at least: on mosquitto log.
Ok, sorry... in the mosquitto
directory. Look below.
The version:
pi@TimePi:/var/log $ mosquitto -h
mosquitto version 1.5.7
mosquitto is an MQTT v3.1.1 broker.
Usage: mosquitto [-c config_file] [-d] [-h] [-p port]
-c : specify the broker config file.
-d : put the broker into the background after starting.
-h : display this help.
-p : start the broker listening on the specified port.
Not recommended in conjunction with the -c option.
-v : verbose mode - enable all logging types. This overrides
any logging options given in the config file.
See http://mosquitto.org/ for more information.
pi@TimePi:/var/log $
I don't know if that is an old or new version, but it was all built about a month or two ago from a new build/flash/machine (everything)
Looking at the log:
(Great I can't parse the timestamps.)
Alas the log is now in the .gz
format. I don't know how to get into it at this point in time.
I'll do some digging.
Back soon.
Ok, after digging I found this:
0.155
is the tail of the IP address.
cat mosquitto.log.2 | grep 0.155
1649615710: New connection from 192.168.0.155 on port 1883.
1649615710: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
1649621392: New connection from 192.168.0.155 on port 1883.
1649621392: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
1649634374: New connection from 192.168.0.155 on port 1883.
1649634374: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
grep: (standard input): binary file matches
But I don't know how to convert the timestamps to English.
Ok, progress.
Those are not in the correct time frame.
These may be.
cat mosquitto.log.1 | grep 0.155
1649697835: New connection from 192.168.0.155 on port 1883.
1649697835: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
1649729172: New connection from 192.168.0.155 on port 1883.
1649729172: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
1649738797: New connection from 192.168.0.155 on port 1883.
1649738797: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
1649766881: New connection from 192.168.0.155 on port 1883.
1649766881: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
Oh, before we go further, here is what I am seeing causing the concern:
I am not finding these messages in the MQTT log files.
These are the log files I have/see:
ls -l
total 1228
-rw------- 1 mosquitto mosquitto 680235 Apr 13 19:23 mosquitto.log
-rw------- 1 mosquitto mosquitto 79534 Apr 13 00:00 mosquitto.log.1.gz
-rw------- 1 mosquitto mosquitto 75295 Apr 12 00:00 mosquitto.log.2.gz
-rw------- 1 mosquitto mosquitto 78934 Apr 11 00:00 mosquitto.log.3.gz
-rw------- 1 mosquitto mosquitto 79332 Apr 10 00:00 mosquitto.log.4.gz
-rw------- 1 mosquitto mosquitto 79301 Apr 9 00:00 mosquitto.log.5.gz
-rw------- 1 mosquitto mosquitto 79498 Apr 8 00:00 mosquitto.log.6.gz
-rw------- 1 mosquitto mosquitto 79758 Apr 7 00:00 mosquitto.log.7.gz
I've looking in 1
, 2
and 3
.
(Back on the NUC - big machine)
This is what I am seeing:
me@me-desktop:~/temp$ ls -l mosquitto.log.?
-rw------- 1 me me 842953 Apr 13 19:18 mosquitto.log.1
-rw------- 1 me me 792957 Apr 13 19:13 mosquitto.log.2
-rw------- 1 me me 841932 Apr 13 19:13 mosquitto.log.3
me@me-desktop:~/temp$ cat mosquitto.log.? | grep 0.155
1649697835: New connection from 192.168.0.155 on port 1883.
1649697835: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
1649729172: New connection from 192.168.0.155 on port 1883.
1649729172: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
1649738797: New connection from 192.168.0.155 on port 1883.
1649738797: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
1649766881: New connection from 192.168.0.155 on port 1883.
1649766881: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
1649615710: New connection from 192.168.0.155 on port 1883.
1649615710: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
1649621392: New connection from 192.168.0.155 on port 1883.
1649621392: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
1649634374: New connection from 192.168.0.155 on port 1883.
1649634374: New client connected from 192.168.0.155 as 192.168.0.99 (c1, k60).
grep: (standard input): binary file matches
me@me-desktop:~/temp$
The dates of the files are today's as they were copied here today/now.
But I search for the IP address and get the lower part.
But those numbers are not of the date in question.
They are April 13.
From the RasPi directory these are the dates shown.
pi@TimePi:/var/log/mosquitto $ ls -l
total 1228
-rw------- 1 mosquitto mosquitto 680235 Apr 13 19:23 mosquitto.log
-rw------- 1 mosquitto mosquitto 79534 Apr 13 00:00 mosquitto.log.1.gz
-rw------- 1 mosquitto mosquitto 75295 Apr 12 00:00 mosquitto.log.2.gz
-rw------- 1 mosquitto mosquitto 78934 Apr 11 00:00 mosquitto.log.3.gz
-rw------- 1 mosquitto mosquitto 79332 Apr 10 00:00 mosquitto.log.4.gz
-rw------- 1 mosquitto mosquitto 79301 Apr 9 00:00 mosquitto.log.5.gz
-rw------- 1 mosquitto mosquitto 79498 Apr 8 00:00 mosquitto.log.6.gz
-rw------- 1 mosquitto mosquitto 79758 Apr 7 00:00 mosquitto.log.7.gz
pi@TimePi:/var/log/mosquitto $
So if I am looking for April 12 22:xx:xx time.... Which would you pick?