Skip to content

Conversation

@bhapas
Copy link
Contributor

@bhapas bhapas commented Dec 10, 2025

Proposed commit message

The syslog messages , if they do not contain a month or contain an invalid month number and if they contain short message than 3 characters , the input errors out.

This PR fixes this error.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works. Where relevant, I have used the stresstest.sh script to run them under stress conditions and race detector to verify their stability.
  • I have added an entry in ./changelog/fragments using the changelog tool.

How to test this PR locally

Unit tests are added to test this feature.

go test -run TestParserRFC3164InvalidMonthNumeric ./filebeat/input/syslog
go test -run TestParserRFC3164ShortMessage ./filebeat/input/syslog

@bhapas bhapas self-assigned this Dec 10, 2025
@bhapas bhapas added the bug label Dec 10, 2025
@bhapas bhapas requested a review from a team as a code owner December 10, 2025 17:36
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Dec 10, 2025
@github-actions
Copy link
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@mergify
Copy link
Contributor

mergify bot commented Dec 10, 2025

This pull request does not have a backport label.
If this is a bug or security fix, could you label this PR @bhapas? 🙏.
For such, you'll need to label your PR with:

  • The upcoming major version of the Elastic Stack
  • The upcoming minor version of the Elastic Stack (if you're not pushing a breaking change)

To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-8./d is the label to automatically backport to the 8./d branch. /d is the digit
  • backport-active-all is the label that automatically backports to all active branches.
  • backport-active-8 is the label that automatically backports to all active minor branches for the 8 major.
  • backport-active-9 is the label that automatically backports to all active minor branches for the 9 major.

@elasticmachine
Copy link
Contributor

Pinging @elastic/integration-experience (Team:Integration-Experience)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Dec 10, 2025
@bhapas bhapas added skip-changelog backport-active-all Automated backport with mergify to all the active branches labels Dec 10, 2025
@bhapas bhapas merged commit 3cc5299 into elastic:main Dec 11, 2025
25 checks passed
@github-actions
Copy link
Contributor

@Mergifyio backport 8.19 9.1 9.2

@mergify
Copy link
Contributor

mergify bot commented Dec 11, 2025

mergify bot pushed a commit that referenced this pull request Dec 11, 2025
… syslog messages (#48031)

* Fix message size and empty year

* fix linter errors

* Fix

(cherry picked from commit 3cc5299)
mergify bot pushed a commit that referenced this pull request Dec 11, 2025
… syslog messages (#48031)

* Fix message size and empty year

* fix linter errors

* Fix

(cherry picked from commit 3cc5299)
mergify bot pushed a commit that referenced this pull request Dec 11, 2025
… syslog messages (#48031)

* Fix message size and empty year

* fix linter errors

* Fix

(cherry picked from commit 3cc5299)
bhapas added a commit that referenced this pull request Dec 11, 2025
… syslog messages (#48031) (#48036)

* Fix message size and empty year

* fix linter errors

* Fix

(cherry picked from commit 3cc5299)

Co-authored-by: Bharat Pasupula <[email protected]>
bhapas added a commit that referenced this pull request Dec 11, 2025
… syslog messages (#48031) (#48037)

* Fix message size and empty year

* fix linter errors

* Fix

(cherry picked from commit 3cc5299)

Co-authored-by: Bharat Pasupula <[email protected]>
bhapas added a commit that referenced this pull request Dec 11, 2025
… syslog messages (#48031) (#48038)

* Fix message size and empty year

* fix linter errors

* Fix

(cherry picked from commit 3cc5299)

Co-authored-by: Bharat Pasupula <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-active-all Automated backport with mergify to all the active branches bug skip-changelog Team:Integration-Experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants