Skip to content
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

"Log Size" reports "0 Byte" when parsing from stdin #2644

Open
rc5hack opened this issue Mar 13, 2024 · 2 comments
Open

"Log Size" reports "0 Byte" when parsing from stdin #2644

rc5hack opened this issue Mar 13, 2024 · 2 comments

Comments

@rc5hack
Copy link

rc5hack commented Mar 13, 2024

goaccess /path/to/logfile --log-format=COMBINED --output /path/to/report.html

In this case "Log Size" in report shows the size of logfile (at the point in time when the log was last parsed).

cat /path/to/logfile | goaccess --log-format=COMBINED --output /path/to/report.html -

In this case (unlike the first example) "Log Size" in report shows zero.

Should it show parsed stdin size instead?

@allinurl
Copy link
Owner

This can get a bit tricky as one could run it as:

# cat /path/to/logfile | goaccess --log-format=COMBINED --output /path/to/report.html - /path/to/otherlog /path/to/someother

One potential enhancement could be to display the log files being parsed within the generated HTML report, similar to how they are displayed in the terminal output. Thoughts?

@0bi-w6n-K3nobi
Copy link
Contributor

Hi @allinurl
I remember that did implement this in some old version. Just a patch for myself.

I think this is no hard.
Exist one point in code that sum is made.
So, it is simple change for point where line was read.
Humm... but lines that really not been yet processed.

Well.. for now, I need check for that because we have multi-threading in code! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants