Skip to content

Commit d99038a

Browse files
authored
Merge pull request #2038 from josefhandl/add-syslog-ip-protocol
2 parents 215196e + 54a15ba commit d99038a

File tree

9 files changed

+74
-0
lines changed

9 files changed

+74
-0
lines changed

charts/logging-operator/charts/logging-operator-crds/templates/logging.banzaicloud.io_syslogngclusteroutputs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,11 @@ spec:
953953
type: integer
954954
host:
955955
type: string
956+
ip-protocol:
957+
enum:
958+
- 4
959+
- 6
960+
type: integer
956961
persist_name:
957962
type: string
958963
port:
@@ -3155,6 +3160,11 @@ spec:
31553160
type: integer
31563161
host:
31573162
type: string
3163+
ip-protocol:
3164+
enum:
3165+
- 4
3166+
- 6
3167+
type: integer
31583168
persist_name:
31593169
type: string
31603170
port:

charts/logging-operator/charts/logging-operator-crds/templates/logging.banzaicloud.io_syslogngoutputs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,11 @@ spec:
953953
type: integer
954954
host:
955955
type: string
956+
ip-protocol:
957+
enum:
958+
- 4
959+
- 6
960+
type: integer
956961
persist_name:
957962
type: string
958963
port:
@@ -3153,6 +3158,11 @@ spec:
31533158
type: integer
31543159
host:
31553160
type: string
3161+
ip-protocol:
3162+
enum:
3163+
- 4
3164+
- 6
3165+
type: integer
31563166
persist_name:
31573167
type: string
31583168
port:

charts/logging-operator/crds/logging.banzaicloud.io_syslogngclusteroutputs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,11 @@ spec:
950950
type: integer
951951
host:
952952
type: string
953+
ip-protocol:
954+
enum:
955+
- 4
956+
- 6
957+
type: integer
953958
persist_name:
954959
type: string
955960
port:
@@ -3152,6 +3157,11 @@ spec:
31523157
type: integer
31533158
host:
31543159
type: string
3160+
ip-protocol:
3161+
enum:
3162+
- 4
3163+
- 6
3164+
type: integer
31553165
persist_name:
31563166
type: string
31573167
port:

charts/logging-operator/crds/logging.banzaicloud.io_syslogngoutputs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,11 @@ spec:
950950
type: integer
951951
host:
952952
type: string
953+
ip-protocol:
954+
enum:
955+
- 4
956+
- 6
957+
type: integer
953958
persist_name:
954959
type: string
955960
port:
@@ -3150,6 +3155,11 @@ spec:
31503155
type: integer
31513156
host:
31523157
type: string
3158+
ip-protocol:
3159+
enum:
3160+
- 4
3161+
- 6
3162+
type: integer
31533163
persist_name:
31543164
type: string
31553165
port:

config/crd/bases/logging.banzaicloud.io_syslogngclusteroutputs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,11 @@ spec:
950950
type: integer
951951
host:
952952
type: string
953+
ip-protocol:
954+
enum:
955+
- 4
956+
- 6
957+
type: integer
953958
persist_name:
954959
type: string
955960
port:
@@ -3152,6 +3157,11 @@ spec:
31523157
type: integer
31533158
host:
31543159
type: string
3160+
ip-protocol:
3161+
enum:
3162+
- 4
3163+
- 6
3164+
type: integer
31553165
persist_name:
31563166
type: string
31573167
port:

config/crd/bases/logging.banzaicloud.io_syslogngoutputs.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,11 @@ spec:
950950
type: integer
951951
host:
952952
type: string
953+
ip-protocol:
954+
enum:
955+
- 4
956+
- 6
957+
type: integer
953958
persist_name:
954959
type: string
955960
port:
@@ -3150,6 +3155,11 @@ spec:
31503155
type: integer
31513156
host:
31523157
type: string
3158+
ip-protocol:
3159+
enum:
3160+
- 4
3161+
- 6
3162+
type: integer
31533163
persist_name:
31543164
type: string
31553165
port:

docs/configuration/plugins/syslogng-outputs/syslog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ Specifies how many lines are flushed to a destination at a time. For details, se
109109
Address of the destination host
110110

111111

112+
### ip-protocol (*int, optional) {#syslogoutput-ip-protocol}
113+
114+
IP protocol
115+
116+
Default: 4
117+
112118
### persist_name (string, optional) {#syslogoutput-persist_name}
113119

114120
Unique name for the syslog-ng driver. If you receive the following error message during syslog-ng startup, set the `persist-name()` option of the duplicate drivers: `Error checking the uniqueness of the persist names, please override it with persist-name option. Shutting down.` See the [documentation of the AxoSyslog syslog-ng distribution](https://axoflow.com/docs/axosyslog-core/chapter-destinations/configuring-destinations-http-nonjava/reference-destination-http-nonjava/#persist-name) for more information.

pkg/sdk/logging/model/syslogng/output/syslog.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ type _metaSyslogOutput interface{} //nolint:deadcode,unused
104104
type SyslogOutput struct {
105105
// Address of the destination host
106106
Host string `json:"host,omitempty" syslog-ng:"pos=0"`
107+
// IP protocol (default: 4)
108+
// +kubebuilder:validation:Enum=4;6
109+
IpProtocol *int `json:"ip-protocol,omitempty"`
107110
// The port number to connect to. For details, see the [documentation of the AxoSyslog syslog-ng distribution](https://axoflow.com/docs/axosyslog-core/chapter-destinations/configuring-destinations-syslog/reference-destination-syslog-chapter/#port-or-destport).
108111
Port int `json:"port,omitempty"`
109112
// Specifies the protocol used to send messages to the destination server. For details, see the [documentation of the AxoSyslog syslog-ng distribution](https://axoflow.com/docs/axosyslog-core/chapter-destinations/configuring-destinations-syslog/reference-destination-syslog-chapter/#transport).

pkg/sdk/logging/model/syslogng/output/zz_generated.deepcopy.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)