Jump to content

Schema:CommandInvocation

PHP logging

EventLogging::logEvent( 'CommandInvocation', 15243810, $event );

extension.json setup for JavaScript logging

{
	"attributes": {
		"EventLogging": {
			"Schemas": {
				"CommandInvocation": 15243810
			}
		}
	}
}

JavaScript logging

mw.track( 'event.CommandInvocation', { /* ... */ } );
From Meta, a Wikimedia project coordination wiki
Revision 15243810
description"Record invocation of different commands (primarily from tool labs) by users"
properties
username
type"string"
requiredtrue
description"Name of the user running the command"
command
type"string"
requiredtrue
description"Name of command being called (jsub, webservice, jstart, etc)"
commandline
type"string"
requiredtrue
description"The entire commandline used to invoke the command"
parentcommandline
type"string"
requiredtrue
description"The entire commandline of the parent process that invoked the command"
hostname
type"string"
requiredtrue
description"fqdn of host from in which this command was run"