Categories:
Cloud (204)
Entertainment (11)
Facebook (43)
General (50)
Life (31)
Programming (64)
Technology (398)
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, 340🔥, 0💬
Popular Posts:
Why I am getting an error message dialog box when I try to save my PowerPoint presentation with some...
Where to find answers to frequently asked questions on Microsoft Word? I want to know how to open PD...
Why I am getting the "Warning: Unresponsive Script" message box? How to avoid this message box? When...
How to start and stop FileZilla Server service? I have FileZilla installed on my Windows computer. Y...
How to add page number in the footer area of each page in Microsoft Word? The quickest way to add pa...