Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (430)
Testing (4)
Tools (488)
Twitter (5)
Wearable (26)
Web Design (44)
Collections:
Other Resources:
Generate Log Report for Given Date Ranges
How to Generate Log Report for Given Date Ranges with GoAccess?
✍: FYIcenter.com
GoAccess does not have any functionality to limit Log Report for Given Date Ranges.
To Generate Log Report for Given Date Ranges, you need to filter out log files with other command line tools, like "grep" and "sed". Here are some examples:
1. Generate Log Report for the last month:
$ date '+\/%b\/%Y' -d '1 month ago' \/Nov\/2022 grep $(date '+\/%b\/%Y' -d '1 month ago') access_log | goaccess -o log-report.html -
2. Generate Log Report for last 7 days:
$ date '+%d\/%b\/%Y' -d '1 week ago' 04\/Nov\/2022 sed -n '/'$(date '+%d\/%b\/%Y' -d '1 week ago')'/,$ p' access_log | goaccess -o log-report.html -
3. Generate Log Report for a given date range:
sed -n '/5\/Nov\/2022/,/5\/Dec\/2022/ p' access_log | goaccess -o log-report.html -
2022-12-12, 1148🔥, 0💬
Popular Posts:
How to pause file transfer in FileZilla FTP Client? I want to close the computer in the middle of a ...
How to create a command button to run my macro in slide show in PowerPoint? I have created a macro t...
Where to find tutorials on LibGen (Library Genesis)? Here is a large collection of tutorials to answ...
How to download and install SoapUI on Windows systems? Here are the steps to download and install So...
What are "AutoCorrect Actions" in Microsoft Word? Should I disable it? "AutoCorrect Actions" are add...