log_collect

This job retuns log events that fit the search paramater values.

Mandatory parameters

Parameter name Data type Description
services list Finds log files for specified services in a comma separated list. To get a list of available services, run 'logd_client --show-services'.

Optional parameters

Parameter name Data type Description
start_time string Sets the time and date to start collecting log data. Use the following format: %F %T. For example: 2019-01-04 13:13:00.
stop_time string Sets the time and date to stop collecting log data. Use the following format: %F %T. For example: 2019-01-04 13:15:00.
error_level string Finds log events with the specified error priorities in a comma separated list. The following lists valid values: ERR, WARN, NOTICE, and INFO.
tag string A string used to identify the current stream of log events. The first time you call the job with a custom string the tag is created with the given name. The next time you run this command and use the tag, all log events dated after the previous call with this tag are returned. Used to continously fetch events with multiple calls.
dbs list Finds log events from specified database IDs in a comma seperated list.
nodes list Finds log events from node IDs in a comma seperated list.
default_interval string Finds log events with specified intervals in the following format: <num>w <num>d <num>h <num>m <num>s or <num> in seconds. By default, the interval is 10 minutes.

Substitute parameters

There are no substitute parameters.

Allowed users

The following users are allowed to run this job:

  • root

Allowed groups

The following groups are allowed to run this job:

  • root
  • exaadm
  • exadbadm

Examples

The following examples show how to run this job in a Python program using XML-RPC or on the command line using confd_client.