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. The following are valid values: BucketFS, confD, coreD, dwad, healthD, and logD.

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 code snippets show how to use this job using both Python (via XML-RPC) and on the command-line using confd_client.