|
1 |
| -# Windows Event Log (winevtlog) |
| 1 | +# Windows Event Log |
2 | 2 |
|
3 |
| -The **winevtlog** input plugin allows you to read Windows Event Log with new API from `winevt.h`. |
| 3 | +The _Windows Event Log_ (`winevtlog`) input plugin lets you read Windows Event Log with the API from `winevt.h`. |
4 | 4 |
|
5 |
| -## Configuration Parameters <a id="config"></a> |
| 5 | +## Configuration parameters |
6 | 6 |
|
7 | 7 | The plugin supports the following configuration parameters:
|
8 | 8 |
|
9 | 9 | | Key | Description | Default |
|
10 | 10 | | :--- | :--- | :--- |
|
11 |
| -| Channels | A comma-separated list of channels to read from. | | |
12 |
| -| Interval\_Sec | Set the polling interval for each channel. \(optional\) | 1 | |
13 |
| -| Interval\_NSec | Set the polling interval for each channel (sub seconds. \(optional\) | 0 | |
14 |
| -| Read\_Existing\_Events | Whether to read existing events from head or tailing events at last on subscribing. \(optional\) | False | |
15 |
| -| DB | Set the path to save the read offsets. \(optional\) | | |
16 |
| -| String\_Inserts | Whether to include StringInserts in output records. \(optional\) | True | |
17 |
| -| Render\_Event\_As\_XML | Whether to render system part of event as XML string or not. \(optional\) | False | |
18 |
| -| Ignore\_Missing\_Channels | Whether to ignore event channels not present in the event log, and continue running with subscribed channels. \(optional\) | False | |
19 |
| -| Use\_ANSI | Use ANSI encoding on eventlog messages. If you have issues receiving blank strings with old Windows versions (Server 2012 R2), setting this to True may solve the problem. \(optional\) | False | |
20 |
| -| Event\_Query | Specify XML query for filtering events. | `*` | |
21 |
| -| Read\_Limit\_Per\_Cycle | Specify read limit per cycle. | 512KiB | |
| 11 | +| `Channels` | A comma-separated list of channels to read from. | _none_ | |
| 12 | +| `Interval_Sec` | Optional. Set the polling interval for each channel. | `1` | |
| 13 | +| `Interval_NSec` | Optional. Set the polling interval for each channel. (nanoseconds) | `0 `| |
| 14 | +| `Read_Existing_Events` | Optional. Whether to read existing events from head or tailing events at last on subscribing. | `False` | |
| 15 | +| `DB` | Optional. Set the path to save the read offsets. | _none_ | |
| 16 | +| `String_Inserts` | Optional. Whether to include string inserts in output records. | `True` | |
| 17 | +| `Render_Event_As_XML` | Optional. Whether to render the system part of an event as an XML string or not. | `False` | |
| 18 | +| `Ignore_Missing_Channels` | Optional. Whether to ignore event channels not present in the event log, and continue running with subscribed channels. | `False` | |
| 19 | +| `Use_ANSI` | Optional. Use ANSI encoding on `eventlog` messages. If you have issues receiving blank strings with old Windows versions (Server 2012 R2), setting this to `True` might solve the problem. | `False` | |
| 20 | +| `Event_Query` | Specify XML query for filtering events. | `*` | |
| 21 | +| `Read_Limit_Per_Cycle` | Specify read limit per cycle. | `512KiB` | |
22 | 22 | | Threaded | Indicates whether to run this input in its own [thread](../../administration/multithreading.md#inputs). | `false` |
|
23 |
| -| Remote.Server | Specify server name of remote access for Windows EventLog. | | |
24 |
| -| Remote.Domain | Specify domain name of remote access for Windows EventLog. | | |
25 |
| -| Remote.Username | Specify user name of remote access for Windows EventLog. | | |
26 |
| -| Remote.Password | Specify password of remote access for Windows EventLog. | | |
| 23 | +| `Remote.Server` | Specify server name of remote access for Windows EventLog. | _none_ | |
| 24 | +| `Remote.Domain` | Specify domain name of remote access for Windows EventLog. | _none_ | |
| 25 | +| `Remote.Username` | Specify user name of remote access for Windows EventLog. | _none_ | |
| 26 | +| `Remote.Password` | Specify password of remote access for Windows EventLog. | _none_ | |
27 | 27 |
|
28 |
| -Note that if you do not set _db_, the plugin will tail channels on each startup. |
| 28 | +If `db` isn't set, the plugin will tail channels on each startup. |
29 | 29 |
|
30 |
| -## Configuration Examples <a id="config_example"></a> |
| 30 | +## Configuration examples |
31 | 31 |
|
32 |
| -### Configuration File |
| 32 | +### Configuration file |
33 | 33 |
|
34 | 34 | Here is a minimum configuration example.
|
35 | 35 |
|
@@ -66,25 +66,25 @@ pipeline:
|
66 | 66 | {% endtab %}
|
67 | 67 | {% endtabs %}
|
68 | 68 |
|
69 |
| -Note that some Windows Event Log channels \(like `Security`\) requires an admin privilege for reading. In this case, you need to run fluent-bit as an administrator. |
| 69 | +Some Windows Event Log channels, like `Security`, require administrative privilege for reading. In this case, you must run Fluent Bit as an administrator. |
70 | 70 |
|
71 |
| -The default value of Read\_Limit\_Per\_Cycle is set up as 512KiB. |
72 |
| -Note that 512KiB(= 0x7ffff = 512 * 1024 * 1024) does not equals to 512KB (= 512 * 1000 * 1000). |
73 |
| -To increase events per second on this plugin, specify larger value than 512KiB. |
| 71 | +The default value of `Read_Limit_Per_Cycle` is `512KiB`. |
74 | 72 |
|
75 |
| -#### Query Languages for Event_Query Parameter |
| 73 | +512KiB(= 0x7ffff = 512 * 1024 * 1024) isn't equal to 512KB (= 512 * 1000 * 1000). To increase events per second on this plugin, specify larger value than 512KiB. |
| 74 | + |
| 75 | +#### Query languages for `Event_Query` parameter |
76 | 76 |
|
77 | 77 | The `Event_Query` parameter can be used to specify the XML query for filtering Windows EventLog during collection.
|
78 |
| -The supported query types are [XPath](https://developer.mozilla.org/en-US/docs/Web/XPath) and XML Query. |
79 |
| -For further details, please refer to [the MSDN doc](https://learn.microsoft.com/en-us/windows/win32/wes/consuming-events). |
| 78 | +The supported query types are [`XPath`](https://developer.mozilla.org/en-US/docs/Web/XPath) and XML Query. |
| 79 | +For further details, refer to [Microsoft's documentation](https://learn.microsoft.com/en-us/windows/win32/wes/consuming-events). |
80 | 80 |
|
81 |
| -### Command Line |
| 81 | +### Command line |
82 | 82 |
|
83 |
| -If you want to do a quick test, you can run this plugin from the command line. |
| 83 | +If you want to do a test, you can run this plugin from the command line: |
84 | 84 |
|
85 |
| -```shell |
86 |
| -$ ./fluent-bit -i winevtlog -p 'channels=Setup' -p 'Read_Existing_Events=true' -o stdout |
| 85 | +```bash |
| 86 | +fluent-bit -i winevtlog -p 'channels=Setup' -p 'Read_Existing_Events=true' -o stdout |
87 | 87 | ```
|
88 | 88 |
|
89 |
| -Note that `winevtlog` plugin will tail channels on each startup. |
90 |
| -If you want to confirm whether this plugin is working or not, you should specify `-p 'Read_Existing_Events=true'` parameter. |
| 89 | +The `winevtlog` plugin will tail channels on each startup. |
| 90 | +If you want to confirm whether this plugin is working or not, specify the `-p 'Read_Existing_Events=true'` parameter. |
0 commit comments