Incorrect year for imported logs
Hi,
I had troubles to see the info in the UI, until searching in the SQLite and eralizing there was a mistake in the imported logs.
The uninx timestamp stored in the db was set to 2019. And in the UI, I can then find my messages when I select 2019.
I tried to reimport with the following flag:
command: -workspace /data -watch_dir /var/log -verbose -what_year_is_it=2020
Same result.
Let me know if i can help you further debug.
Version number Version: 0.0.6, commit: 9a54915d
Attach logs
lightmeter_1 | 2020/08/19 11:47:12 Start importing Postfix logs directory into a new workspace
lightmeter_1 | 2020/08/19 11:47:12 Generated Session key with 32 bytes
lightmeter_1 | 2020/08/19 11:47:12 Seeked /var/log/mail.log - &{Offset:61518384 Whence:0}
lightmeter_1 | 2020/08/19 11:47:12 Seeked /var/log/mail.err - &{Offset:3217 Whence:0}
lightmeter_1 | 2020/08/19 11:47:12 Seeked /var/log/mail.warn - &{Offset:1120602 Whence:0}
lightmeter_1 | 2020/08/19 11:47:13 Finished importing log file: /var/log/mail.err.1
lightmeter_1 | 2020/08/19 11:47:13 Inserted 1940 rows in a transaction
lightmeter_1 | 2020/08/19 11:47:13 Finished importing log file: /var/log/mail.warn.1
lightmeter_1 | 2020/08/19 11:47:13 Finished importing log file: /var/log/mail.log.1
lightmeter_1 | 2020/08/19 11:47:13 Error getting session. Force session expiration: securecookie: the value is not valid
lightmeter_1 | 2020/08/19 11:47:14 Inserted 2117 rows in a transaction
lightmeter_1 | 2020/08/19 11:47:14 Finished importing log file: /var/log/mail.err
lightmeter_1 | 2020/08/19 11:47:14 Finished importing log file: /var/log/mail.warn
lightmeter_1 | 2020/08/19 11:47:14 Finished importing log file: /var/log/mail.log
lightmeter_1 | 2020/08/19 11:47:14 Finished importing postfix log directory in: 2.000470382s
lightmeter_1 | 2020/08/19 11:47:15 Inserted 82 rows in a transaction
lightmeter_1 | 2020/08/19 11:47:31 Requested to register password with strength score: 4 and calc time: 0.001
lightmeter_1 | 2020/08/19 11:47:31 Registering user xxx with id 1
lightmeter_1 | 2020/08/19 11:48:31 Inserted 2 rows in a transaction
lightmeter_1 | 2020/08/19 11:48:33 Inserted 2 rows in a transaction
lightmeter_1 | 2020/08/19 11:49:09 Inserted 1 rows in a transaction
Edited by Pierre Ozoux