You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 <aid="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.
@@ -46,42 +62,29 @@ Here is a minimum configuration example.
46
62
Name stdout
47
63
Match *
48
64
```
49
-
{% endtab %}
50
65
51
-
{% tab title="fluent-bit.yaml" %}
52
-
```yaml
53
-
pipeline:
54
-
inputs:
55
-
- name: winevtlog
56
-
channels: Setup,Windows PowerShell
57
-
interval_sec: 1
58
-
db: winevtlog.sqllite
59
-
outputs:
60
-
- name: stdout
61
-
match: '*'
62
-
```
63
66
{% endtab %}
64
67
{% endtabs %}
65
68
66
-
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
+
71
+
The default value of `Read_Limit_Per_Cycle` is `512KiB`.
67
72
68
-
The default value of Read\_Limit\_Per\_Cycle is set up as 512KiB.
69
-
Note that 512KiB(= 0x7ffff = 512 * 1024 * 1024) does not equals to 512KB (= 512 * 1000 * 1000).
70
-
To increase events per second on this plugin, specify larger value than 512KiB.
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.
71
74
72
-
#### Query Languages for Event_Query Parameter
75
+
#### Query languages for `Event_Query` parameter
73
76
74
77
The `Event_Query` parameter can be used to specify the XML query for filtering Windows EventLog during collection.
75
-
The supported query types are [XPath](https://developer.mozilla.org/en-US/docs/Web/XPath) and XML Query.
76
-
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).
77
80
78
-
### Command Line
81
+
### Command line
79
82
80
-
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.
0 commit comments