Skip to content

Commit ed46fdd

Browse files
committed
[summerospp]add fluentbit syslog plugin
Signed-off-by: sjliu1 <[email protected]>
1 parent 34652d9 commit ed46fdd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apis/fluentbit/v1alpha2/plugins/input/syslog.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type Syslog struct {
4040
// +kubebuilder:validation:Pattern:="^\\d+(k|K|KB|kb|m|M|MB|mb|g|G|GB|gb)?$"
4141
ReceiveBufferSize string `json:"receiveBufferSize,omitempty"`
4242
// Specify the key where the source address will be injected.
43-
sourceAddressKey string `json:"sourceAddressKey,omitempty"`
43+
SourceAddressKey string `json:"sourceAddressKey,omitempty"`
4444
}
4545

4646
func (_ *Syslog) Name() string {
@@ -77,8 +77,8 @@ func (s *Syslog) Params(_ plugins.SecretLoader) (*params.KVs, error) {
7777
if s.ReceiveBufferSize != "" {
7878
kvs.Insert("Receive_Buffer_Size", s.ReceiveBufferSize)
7979
}
80-
if s.sourceAddressKey != "" {
81-
kvs.Insert("Source_Address_Key", s.sourceAddressKey)
80+
if s.SourceAddressKey != "" {
81+
kvs.Insert("Source_Address_Key", s.SourceAddressKey)
8282
}
8383

8484
return kvs, nil

docs/plugins/fluentbit/input/syslog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ Syslog input plugins allows to collect Syslog messages through a Unix socket ser
1414
| bufferChunkSize | By default the buffer to store the incoming Syslog messages, do not allocate the maximum memory allowed, instead it allocate memory when is required. The rounds of allocations are set by Buffer_Chunk_Size. If not set, Buffer_Chunk_Size is equal to 32000 bytes (32KB). | string |
1515
| bufferMaxSize | Specify the maximum buffer size to receive a Syslog message. If not set, the default size will be the value of Buffer_Chunk_Size. | string |
1616
| receiveBufferSize | Specify the maximum socket receive buffer size. If not set, the default value is OS-dependant, but generally too low to accept thousands of syslog messages per second without loss on udp or unix_udp sockets. Note that on Linux the value is capped by sysctl net.core.rmem_max. | string |
17+
| sourceAddressKey | Specify the key where the source address will be injected. | string |

0 commit comments

Comments
 (0)