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

Batch mode possible? #1553

Open
zwebmedia opened this issue Sep 21, 2019 · 4 comments
Open

Batch mode possible? #1553

zwebmedia opened this issue Sep 21, 2019 · 4 comments

Comments

@zwebmedia
Copy link

@zwebmedia zwebmedia commented Sep 21, 2019

Hi All and thanks for this excellent program. I want to run in batch mode, ie. generate a static HTML file for viewing later or emailing. I've read the manual page and FAQ and many other blog posts. No matter what command I type on command line, even "goaccess" by itself, with no options, triggers "WebSocket server ready to accept new client connections".

How can I run a batch mode report from command line without web server viewing?

I installed by "apt-get install goaccess" on Ubuntu 18.04 and nginx. This is a cloud server where I do not have local console. Thank you so much for assistance.

image

image

@allinurl

This comment has been minimized.

Copy link
Owner

@allinurl allinurl commented Sep 23, 2019

Seems like you have real-time-html set to true in your config file. Please change that. You can always check the location of your config file by running goaccess --dcf

@zwebmedia

This comment has been minimized.

Copy link
Author

@zwebmedia zwebmedia commented Sep 24, 2019

Incredibly helpful thank you so much. It was set to true by default, and I set it to false. Being new to this program I was powerless to get anything working with this setting set to true. Thank you again sir. Much appreciated.

@zwebmedia

This comment has been minimized.

Copy link
Author

@zwebmedia zwebmedia commented Sep 24, 2019

Update and thank you, the command line is working now, but seems there is zero output. I can see it parsing the log file:

image

But after trying several different versions of the command, with and without -a option, with and without output redirection, the output report file is either not present at all, or it has zero length:

image

The config file log format is the default:

image

The input log file is standard nginx access log format as follows:

image

As a test, if I deliberately miss-spell the log file, I (correctly) get file not found error:

image

Please could you recommend what settings I can check thank you again so much sir.

@zwebmedia

This comment has been minimized.

Copy link
Author

@zwebmedia zwebmedia commented Sep 25, 2019

Wow nice! Got it working. The problem was "output-format" statement in config was sending the output to a different path and file. As soon as I commented that line out, it started working fine. Very nice script and thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.