Skip to content

Commit

Permalink
Make the Syslog input GA (#26293)
Browse files Browse the repository at this point in the history
(cherry picked from commit 4684ac7)
  • Loading branch information
faec authored and mergify-bot committed Jun 16, 2021
1 parent c67e0d4 commit 77c2967
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 15 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,8 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Add `preserve_original_event` option to `o365audit` input. {pull}26273[26273]
- Add `log.flags` to events created by the `aws-s3` input. {pull}26267[26267]
- Add `include_s3_metadata` config option to the `aws-s3` input for including object metadata in events. {pull}26267[26267]
- RFC 5424 and UNIX socket support in the Syslog input are now GA {pull}26293[26293]


*Heartbeat*

Expand Down
1 change: 0 additions & 1 deletion filebeat/_meta/config/filebeat.inputs.reference.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,6 @@ filebeat.inputs:
#max_message_size: 10KiB

# Accept RFC5424 formatted syslog event via TCP.
# RFC5424 support is in beta.
#- type: syslog
#enabled: false
#format: rfc5424
Expand Down
6 changes: 2 additions & 4 deletions filebeat/docs/inputs/input-syslog.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<titleabbrev>Syslog</titleabbrev>
++++

The `syslog` input reads Syslog events as specified by RFC 3164 and RFC 5424, over TCP, UDP, or a Unix stream socket. RFC 5424 support is currently in beta.
The `syslog` input reads Syslog events as specified by RFC 3164 and RFC 5424, over TCP, UDP, or a Unix stream socket.

Example configurations:

Expand Down Expand Up @@ -45,7 +45,7 @@ The `syslog` input configuration includes format, protocol specific options, and

===== `format`

The syslog variant to use, `rfc3164` or `rfc5424`. To automatically detect the format from the log entries, set this option to `auto`. The default is `rfc3164`. The `rfc5424` and `auto` options are currently in beta.
The syslog variant to use, `rfc3164` or `rfc5424`. To automatically detect the format from the log entries, set this option to `auto`. The default is `rfc3164`.

===== Protocol `udp`:

Expand All @@ -57,8 +57,6 @@ include::../inputs/input-common-tcp-options.asciidoc[]

===== Protocol `unix`:

beta[]

include::../inputs/input-common-unix-options.asciidoc[]

[id="{beatname_lc}-input-{type}-common-options"]
Expand Down
1 change: 0 additions & 1 deletion filebeat/filebeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,6 @@ filebeat.inputs:
#max_message_size: 10KiB

# Accept RFC5424 formatted syslog event via TCP.
# RFC5424 support is in beta.
#- type: syslog
#enabled: false
#format: rfc5424
Expand Down
3 changes: 0 additions & 3 deletions filebeat/input/syslog/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"github.com/elastic/beats/v7/filebeat/inputsource/udp"
"github.com/elastic/beats/v7/filebeat/inputsource/unix"
"github.com/elastic/beats/v7/libbeat/common"
"github.com/elastic/beats/v7/libbeat/common/cfgwarn"
"github.com/elastic/beats/v7/libbeat/logp"
)

Expand Down Expand Up @@ -119,8 +118,6 @@ func factory(

return tcp.New(&config.Config, factory)
case unix.Name:
cfgwarn.Beta("Syslog Unix socket support is beta.")

config := defaultUnix()
if err := cfg.Unpack(&config); err != nil {
return nil, err
Expand Down
5 changes: 0 additions & 5 deletions filebeat/input/syslog/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import (
"github.com/elastic/beats/v7/filebeat/inputsource"
"github.com/elastic/beats/v7/libbeat/beat"
"github.com/elastic/beats/v7/libbeat/common"
"github.com/elastic/beats/v7/libbeat/common/cfgwarn"
"github.com/elastic/beats/v7/libbeat/logp"
)

Expand Down Expand Up @@ -123,10 +122,6 @@ func NewInput(
return nil, err
}

if config.Format != syslogFormatRFC3164 {
cfgwarn.Beta("Syslog RFC 5424 format is enabled")
}

forwarder := harvester.NewForwarder(out)
cb := GetCbByConfig(config, forwarder, log)
server, err := factory(cb, config.Protocol)
Expand Down
1 change: 0 additions & 1 deletion x-pack/filebeat/filebeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2918,7 +2918,6 @@ filebeat.inputs:
#max_message_size: 10KiB

# Accept RFC5424 formatted syslog event via TCP.
# RFC5424 support is in beta.
#- type: syslog
#enabled: false
#format: rfc5424
Expand Down

0 comments on commit 77c2967

Please sign in to comment.