Strona główna / Społeczność / Blog

My ESP8266 devices are generating huge amount of logs so after some time LogAnalyzer database had over 5M records.

I've decided to delete old data, but before run purge script I want to backup these records.

The solution was quite simple:

where Syslog is database, and SystemEvents is table.

You can also export to CSV (TSV) format if You prefer:

After this I could delete whole year, instead of using script:

Now I've only about 600k records ;-)

Ten kto umie pisze kod, ten kto nie umie pisze książki..., albo blog.

Pon Wt Śr Czw Pt So N
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31