Hi all,
Is there anyway to configure to keep only the uplink data for 30 days or a configurable numbers?
Otherwise, I’m a bit afraid if Postgres SQL or Redis will take a lot of diskspace over time.
I see something here Configuration - ChirpStack open-source LoRaWAN® Network Server documentation
However, I’m not sure if if for monitoring only or housekeeping task.
# Monitoring related configuration.
[monitoring]
# interface:port to bind the monitoring endpoint to (optional).
#
# /health - Returns 200 in case the healthchecks have passed.
# /metrics - Returns metrics which can be scraped by Prometheus.
#
# If not set, this endpoint will be disabled.
bind=""
# Meta-log max history.
#
# This defines the max number of meta records that will be persisted in Redis Streams.
# Setting this value to 0 disables this feature.
meta_log_max_history=10
# Gateway frame-log max history.
#
# This defines the max number of frame-log records that will be persisted in Redis Streams.
# This stream contains the uplink and downlink frames of all gateways.
# Setting this value to 0 disables this feature.
gateway_frame_log_max_history=10
# Device frame-log max history.
#
# This defines the max number of frame-log records that will be persisted in Redis Streams.
# This stream contains the uplink and downlink frames of all devices.
# Setting this value to 0 disables this feature.
device_frame_log_max_history=10
# Device event-log max history.
#
# This defines the max number of event-log records that will be persisted in Redis Streams.
# This stream contains the events of all devices.
# Setting this value to 0 disables this feature.
device_event_log_max_history=10
# Per gateway frame-log max history.
#
# Equal to the gateway_frame_log_max_history, but for each gateway a new Redis Stream
# is created.
# Setting this value to 0 disables this feature.
per_gateway_frame_log_max_history=10
# Per gateway frame-log TTL.
#
# This defines the TTL of the Redis Stream key.
per_gateway_frame_log_ttl="1month 13h 26m 24s"
# Per device frame-log max history.
#
# Equal to the device_frame_log_max_history, but for each device a new Redis Stream
# is created.
# Setting this value to 0 disables this feature.
per_device_frame_log_max_history=10
# Per device frame-log TTL.
#
# This defines the TTL of the Redis Stream key.
per_device_frame_log_ttl="1month 13h 26m 24s"
# Per device event-log max history.
#
# Equal to the device_event_log_max_history, but for each device a new Redis Stream
# is created.
# Setting this value to 0 disables this feature.
per_device_event_log_max_history=10
# Per device event-log TTL.
#
# This defines the TTL of the Redis Stream key.
per_device_event_log_ttl="1month 13h 26m 24s"
Thanks a lot for helping.