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

How to analyze zipped log files on a remote webserver? #1693

Open
JoshDebris opened this issue Mar 4, 2020 · 3 comments
Open

How to analyze zipped log files on a remote webserver? #1693

JoshDebris opened this issue Mar 4, 2020 · 3 comments

Comments

@JoshDebris
Copy link

@JoshDebris JoshDebris commented Mar 4, 2020

I want to set up goaccess on my local RaspberryPi and after that I want to analyze logfiles from a few remote server of the same provider. This provider stores all the logfiles in /logs

So far so good...

But... all these logfiles are zipped like: access_log_2020-03-03.gz
Is it somehow possible to read these zipped logfiles with goaccess?

Thanks in advance... :)

@allinurl

This comment has been minimized.

Copy link
Owner

@allinurl allinurl commented Mar 4, 2020

Great question. I'd use sshfs and mount that directory on your RaspberryPi.

@JoshDebris

This comment has been minimized.

Copy link
Author

@JoshDebris JoshDebris commented Mar 4, 2020

Thank you for that tip.

I'm totaly overwhelmed wth the whole Linux stuff.... but I will read the documentation about sshfs.
Hopefully I can get goaccess running at all? ;-)

@allinurl

This comment has been minimized.

Copy link
Owner

@allinurl allinurl commented Mar 4, 2020

You should be able to run it as (assuming debian on the RaspberryPi):

  # apt-get install sshfs
  # mkdir /home/your_user/logs
  # sshfs remote_user@remote_server.com:/var/log/apache2/ /home/your_user/logs
  # zcat -f /home/your_user/logs/access.log* | goaccess - --log-format=COMBINED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.