-
-
Notifications
You must be signed in to change notification settings - Fork 645
Use GoAccess for VM Log monitoring #1469
Comments
@kevinquillen - The best way currently would be to add a task include file (to use Ansible tasks) or a shell script to run post-provision: http://docs.drupalvm.com/en/latest/extending/scripts/ If you end up finding GoAccess to be a good drop-in replacement for PML, then I'm definitely not opposed to the idea of switching. I'm not married to PML, as I never use it myself! But does GoAccess display log entries in a centralized way, or is it just a stats dashboard? |
@geerlingguy GoAccess a dashboard of stats collected from input access logs. Back when I was complaining about PML I switched over to GoAccess and found it incredibly valuable. It's got a more concise scope dealing strictly with access logs, and there is (minimal) configuration to happen - but it's a very useful tool. I plugged 6 months worth of production logs into it 👍 |
@geerlingguy Where do I sign the petition to get PML switched out with GoAccess? That would be awesome if you're still considering it! |
@fubarhouse do you have any example of your setup that you could post? |
@oxyc I'll add some information about it on Tuesday morning AEST. |
Thanks! Looks pretty easy to setup. And saw the the config allows multiple |
I like what I see. And PML has never had the uptake I thought it might have originally. So I'm considering swapping it out for Drupal VM's default—especially if I can get it to work out of the box (instead of having to do extra setup post-Drupal-VM-build!). |
I've started working on a task file for the installation and configuration of GoAccess for you. All I need to sort out now is the daemon, and test it via the supported vhosts variables. I'll submit a PR once this is ready - I imagine you'll want some things about it changed. For now, it's in Edit: A PR is ready for submission, however the following need attention:
|
NGINX is pretty solid using the above log format, but I've noted that apache logs are found at I've made an adjustment to the config which is working now, but I'll need to test this against a RedHat httpd setup and change the daemon reference for when that is addressed. I'll note that how I'm using this now is to have a cron regenerate the report every minute, but I don't believe that is the best solution for everybody - it's more for testing. |
It seems like PML's future is pretty uncertain, though I want to thank @potsky again for working on it, it was (and is, for PHP < 8) a great log inspection tool written in PHP. But as I'm uncertain about the future of Drupal VM itself, and I'm deprecating my PML role, I'm planning on at least removing PML from Drupal VM entirely to lighten the maintenance burden and code footprint. See: #2174 |
Does GoAccess work with log files other than Access logs? What about Drupal syslog files or php error logs? |
Issue Type
Summary
I would like to use GoAccess as a dev tool instead of PimpMyLog. How can I go about setting it up automatically when I create a new VM?
The text was updated successfully, but these errors were encountered: