Open MelkorLord opened 8 years ago
Hi,
Thanks for the suggestions.
-p /some/path/config/site-a.conf
?log-format
you could do: goaccess -p ~/.goaccessrc --log-format=COMBINED
Let me know if that helps.
Hi,
goaccess -p foobar
but inside the "foobar.conf" file, the "include" directive would work like this :
This way, this does not break the way GA currently works.
Of course, this is manageable with the way you mentioned in your third point but I see some drawbacks.
All the rationale behind the "include" directive is to reduce the errors by eliminating directives duplication in multiple files.
Again, in my particular case : "/etc/goaccess/goaccess.conf" would contain all the common directives to all the sites I manage. Then, "/etc/goaccess/foobar.conf" would only contain a "include goaccess" and all the needed "exclude-ip xxxx" and other specific directives for that particular configuration.
All in all, this a suggestion for improvement, not a requirement :-) I currently use multiple configurations for the sites I manage. It's just that I find it "ugly" to have 4 configuration files sharing "99%" of duplicate content :-)
Thanks for posting this. I understand now the rationale behind the "include" directive and I do agree that it should help avoid config options duplication.
Please keep this open, I can look into it.
It didn't occur to me that it wouldn't work this way, and I spent ages trying to figure out how to do it! Putting overrides in a folder is also absolutely vital for config management - as far as possible you always want to leave default configs untouched so that they can be updated by upstream changes without causing clashes or losing changes.
I would vote for /etc/goaccess/goaccess.conf
as the master config file, then stick multiple override files in /etc/goaccess/conf.d/
. The files should be processed in alphanumeric order so they they may override each other too, and you can change the order by renaming them. This is exactly how nginx (and many other apps) do it.
I think this was addressed in https://github.com/allinurl/goaccess/pull/1395
Hi,
I mainly use GoAccess to generate static HTML reports and I'll like to replace the old AWStats installation.
AWStats featured some really nice options I'd like to have in GoAccess :-) Here are the suggestions:
For example : /etc/goaccess/www.domain.tld.conf
What do you think ?