-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
realtime html and zcat #500
Comments
Hello, Great question, currently goaccess disables the real-time functionality when reading from stdin. This will be addressed on issues #428 and filtering in #117. In the meantime, a workaround is to output to a new log file and use that to feed goaccess. As far as starting goaccess as a service, there are a few ways of doing this, please take a look at this post. Let me know if that helps. |
Maybe it will be possible in a new version to add two files to goaccess without using zcat. For one log file --real-time-html work without any issues. |
Thanks for the suggestion! Actually #459 is also part of it. I'm hoping I can get to this in one of the upcoming versions. Closing this for now as it will be addressed in one of the issues mentioned above. Stay tuned. |
@TAiS46 I've pushed a commit that enables the ability to output live stats from a stream or an unclosed STDIN, i.e., tail -f as well as parsing multiple logs in live mode:
or
or even
It also opens the possibility for live data filtering from the pipe such as:
Feel free to build from master to test this out, otherwise it will be pushed out in the upcoming release. Thanks. |
is there any way to make it work with zcat and websocket.?
|
@Ningappa
|
@Ningappa Just pushed a commit that should allow you to run the command I posted above (live stats and zcat). Feel free to build from development to this out before is shipped in the upcoming version. |
@allinurl thanks. it's working. 👍 |
Hi there,
how can I use -real-time-html with zcat?
my current command is the following:
sudo zcat -f /var/log/nginx/bla.log /var/log/nginx/foo.log | sudo goaccess -o /var/www/stats/report.html --real-time-html
it creates the report.html but has no websocket running.
using this command without zcat and
-f *.log
works perfectly.also is there a way to start goaccess on boot / as deamon?
The text was updated successfully, but these errors were encountered: