Describes, how to test custom syslog collectors.
For more information on Syslog Collector, refer Syslog Collector section in the VMware Telco Cloud Service Assurance Configuration Guide.
Follow the procedure to test the existing sample syslog based examples.
Move
examples/syslog
directory to the base directorycollector-sdk
and remove the configuration directory under
.syslog
Modify the configuration files
config.json
,metadata.json
, andbuild_config.json
as per your requirement.Later, the package can be created and uploaded using
build.sh
command.
To test the Syslog custom collector, use the command:
python3 app.py --directory <directory name where the collector is created> --test --configfile config.json --configschema config_input_schema.json
You can check the output published to Kafka, in output.json under base directory. And, also the logs are captured in logs/logs.txt.