Skip to content

Conversation

@mergify
Copy link
Contributor

@mergify mergify bot commented Oct 22, 2024

Note fore reviewers

This PR is not labelled as a bug, but it covers a corner case that wasn't covered before and adds tests, hence I believe it can fall into the "bugfix" category and be backported to 8.16 making it into the 8.16.0 release.

Proposed commit message

The system-logs input now does not count folders as an "existing file"
when looking for files to decide between the journald and log inputs.

Unit and integration tests are added for the system-logs input.

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
  • [ ] I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

## Disruptive User Impact
## Author's Checklist

How to test this PR locally

cd filebeat
go test -v -count=1 -tags=integration -run=TestSystemLogs ./tests/integration

cd input/systemlogs
go test -v -count=1 ./...

Ideally run those tests on Linux so all of them will execute

Related issues

## Use cases
## Screenshots
## Logs


This is an automatic backport of pull request #41296 done by [Mergify](https://mergify.com).

The system-logs input now does not count folders as an "existing file"
when looking for files to decide between the journald and log inputs.

Unit and integration tests are added for the system-logs input.

(cherry picked from commit e82c43c)
@mergify mergify bot added the backport label Oct 22, 2024
@mergify mergify bot requested a review from a team as a code owner October 22, 2024 22:38
@mergify mergify bot requested review from AndersonQ and khushijain21 and removed request for a team October 22, 2024 22:38
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 22, 2024
@botelastic
Copy link

botelastic bot commented Oct 22, 2024

This pull request doesn't have a Team:<team> label.

@pierrehilbert pierrehilbert merged commit d2a3c57 into 8.16 Oct 23, 2024
@pierrehilbert pierrehilbert deleted the mergify/bp/8.16/pr-41296 branch October 23, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport needs_team Indicates that the issue/PR needs a Team:* label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants