[9.1](backport #47324) [Filebeat/Journald] Use --boot=all #47360
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Proposed commit message
Checklist
I have made corresponding changes to the documentationI have made corresponding change to the default configuration filesstresstest.shscript to run them under stress conditions and race detector to verify their stability.I have added an entry in./changelog/fragmentsusing the changelog tool.## Disruptive User Impact## Author's ChecklistHow to test this PR locally
Run all Journald tests
Manual tests
You will need a Linux machine (or VM) with multiple boots on its journal, to check you can run:
And ensure the first few log lines have different timestamps.
For this test you can use any output that allows you to inspect the data, for this example I'll use Elasticsearch deployed using elastic-package.
Get Elasticsearch and Kibana up and running
Deploy Filebeat with the following configuration
filebeat.yaml
Go to Kibana and open Dev Tools
Run the following query
Once enough data is ingested, you should have multiple buckets
returned.
Look at the logs and ensure there is only one log entry from when
journalctlis started, it looks like:{ "@timestamp": "2025-10-24T16:25:35.368-0400", "ecs.version": "1.6.0", "id": "1479199F3BEFB739", "input_id": "", "input_source": "LOCAL_SYSTEM_JOURNAL", "log.level": "info", "log.logger": "input.journald.reader.journalctl-runner", "log.origin": { "file.line": 146, "file.name": "journalctl/journalctl.go", "function": "github.com/elastic/beats/v7/filebeat/input/journald/pkg/journalctl.Factory" }, "message": "journalctl started with PID 3135917", "path": "LOCAL_SYSTEM_JOURNAL", "service.name": "filebeat" }Related issues
## Use cases## Screenshots## LogsThis is an automatic backport of pull request #47324 done by [Mergify](https://mergify.com).