File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 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
2022package 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
Original file line number Diff line number Diff line change 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
2022package integration
You can’t perform that action at this time.
0 commit comments