Skip to content

Commit

Permalink
[Filebeat] Fix of syslog parsing for Priority value <0> ( elastic#11010
Browse files Browse the repository at this point in the history
  • Loading branch information
DebashisMondal authored and kvch committed Mar 19, 2019
1 parent 258c1c8 commit 96f3549
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ https://github.com/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
case. {issue}11004[11004] {pull}11105[11105]
- Change URLPATH grok pattern to support brackets. {issue}11135[11135] {pull}11252[11252]
- Add support for iis log with different address format. {issue}11255[11255] {pull}11256[11256]
- Add fix to parse syslog message with priority value 0. {issue}11010[11010]

*Heartbeat*

Expand Down
2 changes: 1 addition & 1 deletion filebeat/input/syslog/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ func (s *event) Priority() int {

// HasPriority returns if the priority was in original event.
func (s *event) HasPriority() bool {
return s.priority > 0
return s.priority >= 0
}

// Severity returns the severity, will return -1 if priority is not set.
Expand Down

0 comments on commit 96f3549

Please sign in to comment.