srg(1)
π srg(1) β the manual, but make it cute π
General Commands Manual β¨ okay bestie, gather round, we're learning srg today and honestly? she's iconic.
πΈ NAME πΈ
srg β a fast and flexible log analyser for the Squid proxy π¦
π SYNOPSIS π
srg srg [options] <logfile> [logfile] ...
yes the srg srg is really in there, I'm not typo-ing at you, that's literally what it says π
β¨ DESCRIPTION β¨
So. SRG is a log analyser for the Squid web proxy. Periodt. π«Ά
You feed her Squid access logs, and she hands you back a whole series of reports in PHP (or HTML) format β all designed to summarise what the users of the cache have been viewing. Like, she's basically doing a vibe check on your entire cache, no cap.
And she's flexible too ππ SRG supports grouping requests by user, subnet or IP, and she can also filter on those same criteria. Grouping and filtering, both. She contains multitudes.
π OPTIONS π
One bullet per flag, every single one, let's gooo π₯
-C<config file> β where the srg config file lives. Location of the srg config file.-dβ turn on debugging output. π-f<date>[time] β the start time to begin analysation at.--help,-hβ displays this help. hi bestie π-Hβ generate HTML reports rather than PHP reports.-m<days> β specify the maximum number of days to keep a report.-Mβ output a summary report suitable for emailing. π§-o<directory> β output directory.-O<URL> β the URL where reports will be located.-t<date>[time] β the end time to stop analysation at.-vβ verbose mode. Prints relevant messages. π£οΈ-Vβ print version and exit.
π°οΈ the date/time format tea π°οΈ
For -f and -t, date and time get specified in this exact format:
Date: YYYY-MM-DD
Time: :HH:MM:SS - note leading :
eg. 2005-01-08:15:46:30 (Jan 8 2005 15:46:30)
the leading : on the time is NOT optional, she will not accept your 24-hour-clock-without-colon nonsense. Note it. Memorise it. Slay it. π
π where the logfiles go π
Logfile(s) to process should be specified at the end of the options. Not the beginning. Not sprinkled in the middle. The end. π
π AUTHOR π
SRG is written and maintained by Matt Brown <matt@crc.net.nz> with the help of many others. See AUTHORS in the top level of the source tree. π«Ά
π BUGS π
Of course SRG doesn't have any bugs wink π
But if by some obscure chance you happen to find a bug in SRG, please report it via the URL below:
http://sourceforge.net/tracker/?func=add&group_id=62787&atid=501794
no for real, report it, she wants to know, she's not mad, she's just disappointed π₯Ί
and that's the whole page bestie π this was the srg(1) manual page, straight out of the General Commands Manual β go analyse some logs, you're gonna eat β¨ππ¦
π¦ where this page comes from
- debian bookworm: srg 1.3.6-2.1
- debian trixie: srg 1.3.6-2.1
- ubuntu noble: srg 1.3.6-2.1
- ubuntu questing: srg 1.3.6-2.1
- ubuntu resolute: srg 1.3.6-2.1build1
- ubuntu stonking: srg 1.3.6-2.1build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms