Skip to content

Commit

Permalink
ctl: support fetching config id
Browse files Browse the repository at this point in the history
Signed-off-by: Antal Nemes <antal.nemes@axoflow.com>
  • Loading branch information
furiel committed Mar 27, 2024
1 parent 7cd9b4e commit 90dd2fb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/syslog-ng-ctl/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 90dd2fb

Please sign in to comment.