-
-
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
Multiple different log formats with a merge report #213
Comments
I think this would have to be done within one config file to avoid conflicts between options. I'm thinking something like:
|
Silly question, would you add the log file in the config file or pass the log file on the command line? Don't think goaccess would be able to match the logs files by corresponding matched patterns? |
I'm using cat |
how about:
This way it is backward compatible with option to adjust log formats per file. |
Short term fix, changed both the web server and reverse proxy logs to share a format and add extra details per format after "%~" in the goaccessrc file. Works for making goaccess reports but other local log reporting tools not happy, but I can live with that for now. Hoping that we can get the hit/miss counter #190 / #291 .... '-) |
Hi, is this still "evaluated"? I have the same issue, as I have pages with HTTPS (and reverse proxy for SSL termination), and pages without HTTPS. This results in some log files with the standard %h host variable, but others have the x-forwarded-for, in another field of the log (at the very end)... |
@aadlung it certainly is. I just need to fix some pending issues before I get to this. Thanks for the reminder! |
@allinurl been a little over a year now, any update on this? |
@CraigNoble I agree, this release is way behind. I'm addressing the new on-disk storage which will be the cutoff for the next version. I appreciate the reminder, I'll make sure to prioritize this on the following release. |
bump |
my suggestion would be to add an optional additional parameter to then additional log formats could be defined like if first not provided then you default to the default log-format, if the latter is not provided but is referred to - we should either send some error or fall back to the default |
bump |
My $.02 would be to split the pipeline into |
@dmaziuk yes, it's using a similar model. |
Good afternoon, We're attempting to parse a number of log files, 4-5 of which have a different format for analytics reasons. As a result of this, it would be ideal to be able to configure goaccess to obey a line such as:
Alternatively, #213 (comment) is also reasonable, but would quickly increase config file size, but I'm happy with either. For those who are trying to do this, my workaround is currently to setup multiple CustomLog directives in the VirtualHost definition, allowing me to have two formats on the disk. It's also not ideal, as we're doubling the disk space necessary for logs for those sites, but it does work. I'll watch this issue for any movement on allowing this to be defined in the config file, which would definitely be preferable. |
bump |
Thank you for the update! I'd actually all but assumed this might never get addressed.... I'll look forward to an update in a future release! I'm still using my work around, but it is disk space heavy. Thank you again for your excellent work here. As a reminder for all of us: Thus, once again, thank you. |
Worst subject ever!! Sorry!
This feature request is linked to #190 and #78 ... I am thinking I would need this kind of thing in future, where using the logs from the web server and the reverse proxy, which both would have two different log formats, merged into one report. Not sure how accurate the representation might be?
Something like
goaccess -p1 apache.conf -f1 access.log -p2 varnish.conf -p varnishncsa.log
Thanks
The text was updated successfully, but these errors were encountered: