Skip to content

Commit 20893dd

Browse files
committed
Update comments
1 parent 29f4920 commit 20893dd

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

filebeat/input/journald/config.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
// This file was contributed to by generative AI
19+
1820
//go:build linux
1921

2022
package journald
@@ -80,8 +82,13 @@ type config struct {
8082
// Chroot is the chroot folder used to call journalctl
8183
Chroot string `config:"chroot"`
8284

83-
// JournalctlPath is the path of the journalctl binary. It is only required
84-
// if [Chroot] is set.
85+
// JournalctlPath specifies the path to the `journalctl` binary.
86+
// This field is required only if the Chroot option is set, as the
87+
// input needs to locate the binary within the chroot environment.
88+
// If Chroot is set, JournalctlPath must be an absolute path within
89+
// the chroot environment. If JournalctlPath is not explicitly set,
90+
// it defaults to `journalctl`, which assumes that the `journalctl`
91+
// binary is available in the system's `PATH` environment variable.
8592
JournalctlPath string `config:"journalctl_path"`
8693
}
8794

filebeat/tests/integration/chroot_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18+
// This file was contributed to by generative AI
19+
1820
//go:build integration && linux
1921

2022
package integration

0 commit comments

Comments
 (0)