OPH_LOG_INFO

Description

Type

Metadata Access.

Behaviour

It reads the last lines from the server log or from a specific container log. This operator requires administrator privileges.

Parameters

  • log_type: type of log to be read. Possible values are “server”, “container” and “ioserver”. If not specified, it will be used its default value “server”.
  • container_id: id of the container related to the requested log, valid only when requested log type is “container”.
  • ioserver: type of the ioserver related to the requested log, valid only when requested log type is “ioserver”.
  • nlines: maximum number of lines to be displayed, starting from the end of the log. Default value is “10”.

System parameters

  • exec_mode: operator execution mode. Possible values are async (default) for asynchronous mode, sync for synchronous mode with json-compliant output.
  • ncores: number of parallel processes to be used (min. 1). This operator is not parallel, so the only possible value is 1.
  • sessionid: session identifier used server-side to manage sessions and jobs. Usually, users don’t need to use/modify it, except when it is necessary to create a new session or switch to another one.
  • objkey_filter: filter on the output of the operator written to file (default=all => no filter, none => no output, log_info => shows log data as text).

Examples

Read the last 10 lines of the log file related to the container with id 3:

[OPH_TERM] >>  oph_log_info log_type=container;container_id=3;nlines=10;

Arguments

Argument name Type Mandatory Values Default Min/Max-value
log_type “string” “no” “server|container|ioserver” “server”  
container_id “int” “no”   “0” “0” /
ioserver “string” “no” “mysql|ophidiaio” “mysql”  
nlines “int” “no”   “10” “1” / “10000”
exec_mode “string” “no” “async|sync” “sync”  
sessionid “string” “no”   “null”  
ncores “int” “no”   “1” “1” / “1”
objkey_filter “string” “no” “all|none|log_info” “all”