get-log

Syntax

tadm get-log common_options [--start-date=MM/dd/yyyy:HH:mm:ss] [--end-date=MM/dd/yyyy:HH:mm:ss]
[--log-level=all|incident_error:1|error:1|error:16|error:32|warning:1|notification:1|trace:1|trace:16|trace:32][--num-records=number_of_records]
--vs=vs_name --config=config_name node_host

Description

Use this command to get the information about error logs. The error log lists all the errors that the server has encountered since the log file was created. It also contains other server information, such as when the server was started, and a list of unsuccessful login attempts made to the server.

Options

For information about common_options, run the help command.

--start-date|-S

Specify the starting date and time from which the log messages must be shown. The format of the date must be dd/MM/yyyy:HH:mm:ss.

--end-date|-E

Specify the ending date and time until which the log messages must be shown. The format of the date must be dd/MM/yyyy:HH:mm:ss.

--log-level|-l

Specify the severity of the log messages that must be shown. The value can be all, INCIDENT_ERROR:1, ERROR:1, ERROR:16, ERROR:32, WARNING:1, TRACE:1, TRACE:16, TRACE:32. Default: NOTIFICATION:1.

--num-records|-n

Specify the number of log messages to be shown from the end of the error log file.

--vs|-s

Specify the name of the virtual server.

--config|-c

Specify the configuration for which you want to view error log information.

Operands

node-host

Specify the name of the node

Example

tadm get-log --user=admin --password-file=./admin.passwd --host=admin.example.com --port=8989 --no-prompt --vs=soa.example.org --config=www.example.org serverhost

Exit Codes

The following exit values are returned:

0: command executed successfully

>0: error in executing the command

For more information about exit codes and syntax notations, run the help command.

See Also

help, get-access-log-prop, rotate-log, get-access-log, enable-access-log, disable-access-log