exp:expviewcountcollect
Bringt die Zugriffsprotokolle aller Knoten, die die Installation ausliefern, zu dem Knoten, der die Seitenaufrufe zählt.
Skript bin/php/expviewcountcollect.php, Code in kernel/private/classes/commands/expviewcountcollect.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:
./console exp:expviewcountcollect --help
./console exp:viewcount:collect --help
php bin/php/expviewcountcollect.php --helpHilfetext
Was --help ausgibt, so wie der Befehl es schreibt:
Bring the access logs of every node that serves the installation to the node that counts them
Each node's web server writes its own log. On the node PrimaryCommand names, this takes over the
count state of the node that counted before and copies every node's logs (logfile.ini
[ViewCountSettings] Nodes[], [AccessLogFileSettings] StorageDir/LogFileName and LogFiles[]) to
MirrorDir/<node>/<path>; exp:viewcount:update then counts each copy from where it stopped.
./console exp:viewcount:collect copy the logs (on the counting node only)
./console exp:viewcount:collect --dry-run what it would copy, nothing written
./console exp:viewcount:collect --all-siteaccesses the logs of every siteaccess, not the administrations
./console exp:viewcount:collect --force here, whatever PrimaryCommand says
./console exp:viewcount:collect --allow-root-user as root (logs only root may read); the copies
go to the owner of the var folder
Exit code: 0 fine (also: not the counting node), 1 an error (no log could be copied, PrimaryCommand
gave no answer), 2 usage error.Optionen
| Option | Wert | Hilfe |
|---|---|---|
--dry-run | Melden, was kopiert würde, nichts kopieren | |
--all-siteaccesses | Die Protokolle jedes Siteaccess aus AvailableSiteAccessList, außer den Administrationen | |
--siteaccess-list | erforderlich | Die Protokolle dieser Siteaccesses, durch Kommas getrennt (Vorgabe: logfile.ini [ViewCountSettings] SiteAccessList[], sonst der Siteaccess von -s) |
--force | Hier kopieren, egal was PrimaryCommand sagt | |
--format | erforderlich | text (Standard) oder json |
Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).
Siehe auch
Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/expviewcountcollect.php, kernel/private/classes/commands/expviewcountcollect.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.