Closed SureshCharan closed 2 years ago
Just to be sure, are these tab separated? If they are, are you able to attach a text file with a few lines straight from the log. e.g.,
tail -10 access.log > test.log
and upload the test log, it's just easier to work with it. Thanks
No. They are not tab-separated. Attached is a sample log file. test.log
Honestly I couldn't match the specifiers you posted and the actual sample test.log. Though, I'd try this:
goaccess test.log --log-format='%h %^[%d:%t %^] "%m %U" %s %b %^ %v %^' --date-format=%d/%b/%Y --time-format=%T --http-protocol=no
Hi,
I have been exploring goaccess for last couple of days to leverage it to analyze the log files created by one of the open source projects from ONAP community. The project uses a custom log pattern and below is the custom log pattern used:
You can have a look at the pattern and its configuration at here.
And below is the sample log:
Note that the last column is the response time in milliseconds. Following the documentation and the responses provided in other issues, I have come up with the following log format, date format, and time formats.
DATE_FORMAT='%d/%b/%Y'
TIME_FORMAT='%H:%M:%S'
LOG_FORMAT='%h %^ %^ [%d:%t %^] "%m %U" %s %b %^ %u %^ %^ %^ %^ %^ %^ %^ %^ %^ %^ %^ %T'
I would like to get the average, cumulative, and maximum time served in GoAccess. Also, I would like to configure goaccess to consider APP_1 and APP_2 as different visitors. I am looking for some help here to validate if the above-mentioned formats are proper or do I have to make any modifications to make it perfect to work with goaccess?
Thanks in advance.