EnglishFrenchSpanish

OnWorks favicon

sarg-reports - Online in the Cloud

Run sarg-reports in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command sarg-reports that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


sarg-reports - Daily/Weekly/Monthly squid usage reports creation tool

SYNOPSIS


sarg-reports [OPTIONS]

DESCRIPTION


This manual page documents briefly the sarg-reports command.

sarg-reports is a script written to automate the SARG (a powerful squid log analyzer)
reports and log management. Sarg it self, provide to end user a generic interface to
create reports based on squid access log (begin of log to current date). sarg-reports is
useful because it allow you to easly create and manage Daily, Weekly and Monthly reports.

OPTIONS


A summary of options is included below.

manual
Create Manual report

today Create Today report

daily Create Daily report

weekly Create Weely report

monthly
Create Monthly report

CRONTAB


If you want the reports can be generated automatically insert the following lines (the
today report creation time depend mostly of your sarg server load average, tune it):

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
00 08-18/1 * * * sarg-reports today
00 00 * * * sarg-reports daily
00 01 * * 1 sarg-reports weekly
30 02 1 * * sarg-reports monthly

REMEMBER: if you use logrotate, configure it to rotate the logs within MONTHLY basis,
AFTER sarg-reports created the monthly html report.

VARIABLES


Check before using the sarg-reports that the following variables are set to file
/etc/sarg/sarg-reports.conf

SARG
The sarg executable location

CONFIG
The sarg main configuration file location

HTMLOUT
Location where will be saved the reports

PAGETITLE
The title of main index page

LOGOIMG
Image logo to view in main index page

LOGOLINK
HTTP web page link of logo

DAILY
Word 'daily' translation, translate it to your language

WEEKLY
Word 'weekly' translation, translate it to your language

MONTHLY
Word 'monthly' translation, translate it to your language

EXCLUDELOG1
Exclude text from cron emails (normally, sarg, during cron activity, if it don't
find any valid records,

EXCLUDELOG2
It will output an error message (usually on 'today' reports). I don't want to be
warned by email about this, so, i wrote the 'text' that will be never logged. This
is useful to receive email of real problems only.

Use sarg-reports online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    MSYS2
    MSYS2
    MSYS2 is a collection of tools and
    libraries providing you with an
    easy-to-use environment for building,
    installing and running native Windows
    software. It con...
    Download MSYS2
  • 2
    libjpeg-turbo
    libjpeg-turbo
    libjpeg-turbo is a JPEG image codec
    that uses SIMD instructions (MMX, SSE2,
    NEON, AltiVec) to accelerate baseline
    JPEG compression and decompression on
    x86, x8...
    Download libjpeg-turbo
  • 3
    Xtreme Download Manager
    Xtreme Download Manager
    The project has a new home now:
    https://xtremedownloadmanager.com/ For
    developers:
    https://github.com/subhra74/xdm Xtreme
    Download Manager is a powerful tool t...
    Download Xtreme Download Manager
  • 4
    TTGO VGA32 Lite
    TTGO VGA32 Lite
    Features:4:3 and 16:9 low resolution
    VGA outputPS/2 keyboard and mouse
    inputText-based user interface (TUI)
    with dialog managerPartial Unicode
    supportSlave dis...
    Download TTGO VGA32 Lite
  • 5
    Clover EFI bootloader
    Clover EFI bootloader
    Project has moved to
    https://github.com/CloverHackyColor/CloverBootloader..
    Features:Boot macOS, Windows, and Linux
    in UEFI or legacy mode on Mac or PC with
    UE...
    Download Clover EFI bootloader
  • 6
    unitedrpms
    unitedrpms
    Join us in Gitter!
    https://gitter.im/unitedrpms-people/Lobby
    Enable the URPMS repository in your
    system -
    https://github.com/UnitedRPMs/unitedrpms.github.io/bl...
    Download unitedrpms
  • More »

Linux commands

Ad