hello, everyone,
I have two problems with my signoz:
1- in the log section I see logs from 18 March, in the event that launched the signoz two months ago. (17% used from server storage). I want keep logs for 6 months and watch them in logs section!
2- when I want to change the retention, I see the pending state for many days, even when I restart my docker compose but it is in a pending state!
v
Vikrant Gupta
04/03/2024, 7:37 AM
CC :- @Vishal Sharma
a
Amirhossein Hemmatiyan
04/03/2024, 10:07 AM
v
Vishal Sharma
04/07/2024, 6:18 AM
You can connect to SQLite DB and clear TTL status table to allow updating retention setting.
If you are using docker follow below steps:
Connect to query-service
Copy code
docker exec -it query-service sh
Run the following:
Copy code
# install sqlite
apk update
apk add sqlite
# open sqlite with signoz.db
sqlite3 /var/lib/signoz/signoz.db
# (sqlite shell) check existing ttl status
select * from ttl_status;
# delete all rows of ttl_status
DELETE FROM ttl_status;
a
Amirhossein Hemmatiyan
04/07/2024, 8:39 AM
thank you dear vishal, its fixed by your solution
🙌 1
v
Vishal Sharma
04/07/2024, 8:41 AM
Retention setting is finicky with Clickhouse when there’s large data. So we recommend to not change TTL frequenty
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.