-
-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect totals for HTTP and Mail traffic #1119
Comments
your goaccess report clearly states: 19.3. - 24.3. |
Sure, but Froxlor report is for |
I have updated |
Hm, froxlor stores the result of goaccess's json output, cant tell you for now why this does not match, this has been testen quiet a bit ... |
The tests are on two instances of Froxlor, with identical setups. Same issue on both servers. |
About HTTP traffic: I did some debug and think I found the issue. According to
I did some tests, and for a log file of
See Are we sure the logfile is not rotated from start of cron traffic start until end ? I think it would be better to run What do you think ? |
your test is missing that we also grep "YYYY/MM" from the access log, see https://github.com/Froxlor/Froxlor/blob/bf7d22a79470c974cabdcb8565f2b19104e08c49/lib/Froxlor/Cron/Traffic/TrafficCron.php#L661 And yes, maybe it's generally a better idea to have the traffic cron run early in the morning and use the rotated |
I think that would be another issue: grep-ing for
|
it's formatted to use the short-name of month and year correctly, see https://github.com/Froxlor/Froxlor/blob/bf7d22a79470c974cabdcb8565f2b19104e08c49/lib/Froxlor/Cron/Traffic/TrafficCron.php#L189 it was just an example that we grep the current month from the log, sorry for the confusion |
I meant Apache log date format
|
no, it resolves to "Mar/2023" month = date('M') = 'Mar' month . / . year = Mar/2023 |
Than maybe the cause is log being rotated and Processing |
One more question about Postfix / Dovecot: if Or maybe it's an error here: `$this->parsePostfixLog(Settings::Get("system.mdalog") . ".1"); That should be |
doesnt matter if its the same file, the regex matches are different for the two services |
Yes, but line is |
you start mixing up a lot of different topics here, why no just join discord for discussion - it gets messy here and hard to follow |
Oki doki. If needed, you can close this issue and make separate issues for HTTP and MAIL. |
Signed-off-by: Michael Kaufmann <[email protected]>
Describe the bug
Traffic reports totals are 0 (for Main) and/or different than
goaccess
totals (HTTP).Froxlor shows for
this month
(today is 24/Mar/2023): Total 835.20 MB, 748.18 MB HTTP, 87.02 MB FTP, 0.00 B MailGoAccess reports for
24/Mar/2023 — 24/Mar/2023
: Tx. Amount 2.44 GiBDashboard reports
crons
:Traffic calculation: 23.03.2023 22:00
Web- and traffic-reports: 23.03.2023 22:05
Weird as there was traffic on HTTP and Mail (IMAP), see attached screens.
System information
To Reproduce
Steps to reproduce the behavior:
See attached screens
Expected behavior
Updated traffic reports.
Logfiles
/var/log/mail.log
Additional context
There are no changes to default logs format, logs are rotated once a day.
Debian Bullseye (11.x) » Mailserver (IMAP/POP3) » Dovecot with postfix
/etc/dovecot/conf.d/20-imap.conf
:imap_logout_format
is not changed (default)/etc/dovecot/conf.d/20-managesieve.conf
:managesieve_logout_format
is not changed (default)/etc/dovecot/conf.d/20-pop3.conf
:pop3_logout_format = in=%i out=%o top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
The text was updated successfully, but these errors were encountered: