Commands
Configuration files must be flexible enough for any deployment need, but they must keep a clean and readable format.
Calyptia Core Agent Commands extends a configuration file with specific built-in features. The list of commands available as of Calyptia Core Agent 0.12 series are:
Command | Prototype | Description |
---|---|---|
@INCLUDE FILE | Include a configuration file | |
@SET KEY=VAL | Set a configuration variable |
@INCLUDE Command
Configuring a logging pipeline might lead to an extensive configuration file. In order to maintain a human-readable configuration, it's suggested to split the configuration in multiple files.
The @INCLUDE command allows the configuration reader to include an external configuration file, e.g:
The previous example defines the main service configuration file and also include two files to continue the configuration:
inputs.conf
outputs.conf
Note that despites the order of inclusion, Calyptia Core Agent will ALWAYS respect the following order:
Service
Inputs
Filters
Outputs
@SET Command
Calyptia Core Agent supports configuration variables, one way to expose this variables to Calyptia Core Agent is through setting a Shell environment variable, the other is through the @SET command.
The @SET command can only be used at root level of each line, meaning it cannot be used inside a section, e.g:
Last updated