Skip to content

Commit

Permalink
Merge pull request #17 from axoflow/support-config-id
Browse files Browse the repository at this point in the history
ctl: support fetching config id
  • Loading branch information
furiel authored Mar 27, 2024
2 parents 7cd9b4e + 90dd2fb commit badad47
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 badad47

Please sign in to comment.