/
Remote Collector Node Management

Remote Collector Node Management

This chapter describes how to manage the Machbase collector through the Machbase server.

Fixed Table


You can check the status of the collector by querying the Fixed table on the Machbase server.

m$sys_collector_sources

This is a table that keeps information of the configuration files managed by the collector manager registered in the Machbase server. The table column information is shown below.

NameDescription
MANAGER_IDCollection manager identifier
MANAGER_NAME

Collector manager name

SOURCE_TYPE

File type (Template, Regular Expression, and Python script)

SOURCE_PATH

File absolute path

CONTEXT

File contents

Index


Procedure


It is possible to control the collector by a procedure performed by the Machbase server.

INSERT_COLLECTOR_SOURCE

You can use the Insert_collector_source procedure to send configuration files to the collector running on the remote server.

EXECUTE INSERT_COLLECTOR_SOURCE ("manager_name", "path", "context");

The meaning of each parameter is as follows.

  • manager_name: the name of the Collector manager to transfer the file to
  • path: the pathname of the file to transfer
  • context: the contents of the file

If the file already exists on the remote server, the original file is changed to  Filaname.bak

RENAME_COLLECTORMANAGER

This is the procedure to change the name of the already registered collector manager.

EXECUTE RENAME_COLLECTORMANAGER ("old_name", "new_name");

Related content