Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,196 of 9,196 pages
About the help in other languages
All help pages

exp:expviewcountcollect

Bringt die Zugriffsprotokolle aller Knoten, die die Installation ausliefern, zu dem Knoten, der die Seitenaufrufe zählt.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/expviewcountcollect.md

On this page

This page is a translation. Read the English original

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 --help

Hilfetext

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

OptionWertHilfe
--dry-runMelden, was kopiert würde, nichts kopieren
--all-siteaccessesDie Protokolle jedes Siteaccess aus AvailableSiteAccessList, außer den Administrationen
--siteaccess-listerforderlichDie Protokolle dieser Siteaccesses, durch Kommas getrennt (Vorgabe: logfile.ini [ViewCountSettings] SiteAccessList[], sonst der Siteaccess von -s)
--forceHier kopieren, egal was PrimaryCommand sagt
--formaterforderlichtext (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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x