diff --git a/pkg/syslog-ng-ctl/config.go b/pkg/syslog-ng-ctl/config.go index 1ebee4a..3995d59 100644 --- a/pkg/syslog-ng-ctl/config.go +++ b/pkg/syslog-ng-ctl/config.go @@ -25,3 +25,8 @@ func OriginalConfig(ctx context.Context, cc ControlChannel) (string, error) { func PreprocessedConfig(ctx context.Context, cc ControlChannel) (string, error) { return cc.SendCommand(ctx, "CONFIG GET PREPROCESSED") } + +// PreprocessedConfig sends the CONFIG ID command to syslog-ng +func ConfigID(ctx context.Context, cc ControlChannel) (string, error) { + return cc.SendCommand(ctx, "CONFIG ID") +}