Skip to content

Commit badad47

Browse files
authored
Merge pull request #17 from axoflow/support-config-id
ctl: support fetching config id
2 parents 7cd9b4e + 90dd2fb commit badad47

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/syslog-ng-ctl/config.go

+5
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ func OriginalConfig(ctx context.Context, cc ControlChannel) (string, error) {
2525
func PreprocessedConfig(ctx context.Context, cc ControlChannel) (string, error) {
2626
return cc.SendCommand(ctx, "CONFIG GET PREPROCESSED")
2727
}
28+
29+
// PreprocessedConfig sends the CONFIG ID command to syslog-ng
30+
func ConfigID(ctx context.Context, cc ControlChannel) (string, error) {
31+
return cc.SendCommand(ctx, "CONFIG ID")
32+
}

0 commit comments

Comments
 (0)