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, 1115🔥, 0💬
Popular Posts:
How do I tell what version of Outlook my computer is using? You can determine the version number of ...
What is this Website about? This Website provides a collection of Frequently Asked Questions (FAQ) a...
Where to find answers to frequently asked questions on installing and using Mozilla Firefox 2.0? Her...
How to login to outlook.office365.com with a Browser? I have a company email account on Office365. I...
Why am I getting the "You now have two copies of a file" error from OneDrive for Windows? You will g...