From b34412c26cf826ee840ba4c3a379c045a529c85c Mon Sep 17 00:00:00 2001 From: "Eric D. Schabell" Date: Tue, 2 Dec 2025 14:04:53 +0100 Subject: [PATCH] Fixed case in config param table for head input plugin doc. Applies to #2260. Signed-off-by: Eric D. Schabell --- pipeline/inputs/head.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pipeline/inputs/head.md b/pipeline/inputs/head.md index 98392f41b..d75ab28d4 100644 --- a/pipeline/inputs/head.md +++ b/pipeline/inputs/head.md @@ -8,15 +8,15 @@ The plugin supports the following configuration parameters: | Key | Description | Default | |:----------------|:--------------------------------------------------------------------------------------------------------|:--------| -| `Add_Path` | If enabled, the path is appended to each record. | `false` | -| `Buf_Size` | Buffer size to read the file. | `256` | -| `File` | Absolute path to the target file. For example: `/proc/uptime`. | _none_ | -| `Interval_NSec` | Polling interval (nanoseconds). | `0` | -| `Interval_Sec` | Polling interval (seconds). | `1` | -| `Key` | Rename a key. | `head` | -| `Lines` | Line number to read. If the number N is set, `in_head` reads first N lines like `head(1) -n`. | `0` | -| `Split_line` | If enabled, `in_head` generates key-value pair per line. | `false` | -| `Threaded` | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` | +| `add_path` | If enabled, the path is appended to each record. | `false` | +| `buf_size` | Buffer size to read the file. | `256` | +| `file` | Absolute path to the target file. For example: `/proc/uptime`. | _none_ | +| `interval_nsec` | Polling interval (nanoseconds). | `0` | +| `interval_sec` | Polling interval (seconds). | `1` | +| `key` | Rename a key. | `head` | +| `lines` | Line number to read. If the number N is set, `in_head` reads first N lines like `head(1) -n`. | `0` | +| `split_line` | If enabled, `in_head` generates key-value pair per line. | `false` | +| `threaded` | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` | ## Getting started @@ -78,7 +78,7 @@ pipeline: File /proc/uptime Buf_Size 256 Interval_Sec 1 - Interval_NSec 0 + Interval_Nsec 0 [OUTPUT] Name stdout @@ -90,7 +90,7 @@ pipeline: The interval is calculated like this: -`Total interval (sec) = Interval_Sec + (Interval_Nsec / 1000000000)`. +`Total interval (sec) = interval_sec + (interval_nsec / 1000000000)`. For example: `1.5s = 1s + 500000000ns`. @@ -147,7 +147,7 @@ pipeline: Tag head.cpu File /proc/cpuinfo Lines 8 - Split_line true + Split_Line true # {"line0":"processor : 0", "line1":"vendor_id : GenuineIntel" ...} [FILTER]