emscli service log
command to retrieve the latest log(s) for a service(s)
Synopsis
service log prints the latest log(s) for a service(s).
Provide the name(s) of the services you wish to retrieve logs for to the --name flag as a comma-separated list, without spaces. More than one service name may be specified.
To filter returned log messages to only include messages containing a particular string, pass that string to the --filter flag.
The --filter flag can also filter on regex patterns; use the --regex flag if you would like it to be parsed as extended regex.
emscli service log [apache2|web|webserver|fcems_probe|fcems_notify|fcems_ztna|fcems_ka|fcems_monitor|fcems_ecsocksrv|fcems_wspgbouncer|fcems_das|fcems_pgbouncer|fcems_reg|fcems_tag|fcems_chromebook|fcems_deploy|fcems_task|fcems_installer|fcems_upload|fcems_adevtsrv|fcems_dbop|fcems_adconnector|fcems_mdmproxy|fcems_scep|fcems_sip|fcems_update|fcems_addaemon|fcems_forensics|fcems_ftntdbimporter|fcems_adtask|probe|notify|ztna|ka|monitor|ecsocksrv|ec|wspgbouncer|das|pgbouncer|reg|tag|chromebook|deploy|task|installer|upload|adevtsrv|dbop|adconnector|mdmproxy|scep|sip|update|addaemon|forensics|ftntdbimporter|adtask|event|events|fcems_event] [flags]
Options
--all Returns the most recent log(s) for all EMS service(s)
--filter string Results will be filtered to only display lines containing a provided string. Grep-based regex is supported
--follow Monitors the named log file(s) and prints any new log messages as soon as they are added
-h, --help help for log
--ignore-case Expands the filtered results to also contain case-insensitive matches
--name string Returns the most recent log(s) for the named service(s). Multiple services may be specified (as a comma-separated list without spaces)
--regex Parses the string passed to the --filter flag using extended regex (rather than basic regex)
See also
- emscli service - for querying and managing the statuses and log levels of EMS services