Long time log of communication with one Device

Hello,

I wonder if there is a way to log the communication for one device or gateway for a longer time. Is there a chance to change a setting so the redis stream gets stored longer for LoraWan Frames for one device?

Any other ideas for my usecase? Basicly i want for one device the LoraFrame Logs for a longer time then i have in my settings for all other devices.

thanks and regards,
Sil

The only what I know of to do this would to use the Applications → Integrations options and use either HTTP to send post request to an external system. This would send a copy of every incoming LoRaFrame to this external system, not just the one device. But if you store the frames in a database you could easily sort them (I personally use postgres for this).

Or if you are just looking to get this information over a few hours you can open the devices LoRaWAN frames page in a web browser and leave it open. The stream will keep growing instead of only showing the last 10 frames. But as soon as you leave the page the stream will be reset to the 10 most recent frames. I do this when I just need to watch 1 device over a few hours to see how it is acting.

Hi, Thanks @ChrisG

But this does not cover downlink messages like ADR Messages for example, right?

Thanks, Silvan

Correct, that does not capture ADR messages down. I am not sure how you would collect that info over an extended period.

I will try to write a python script and “subscribe” to the redis stream. and then decode the messages and do save the messages somewhere.

if i have a solution, i will post it here.

If you need all messages and if your setup allows it, you can subscribe to the MQTT feed of the MQTT forwarded or gateway bridge.

If the downlinks at application level are enough, indeed you can still subsribe to the MQTT of downlinks event (txack).

In both cases, subscribing to those and then storing the result in any type of database will give you long term logging.