Skip to content

Commit b46864c

Browse files
committed
Pipeline: input: win event log: style
Signed-off-by: Lynette Miles <[email protected]>
1 parent 69f4bbe commit b46864c

File tree

2 files changed

+50
-46
lines changed

2 files changed

+50
-46
lines changed
Lines changed: 49 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,56 @@
1-
# Windows Event Log (winevtlog)
1+
# Windows Event Log
22

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`.
44

5-
## Configuration Parameters <a id="config"></a>
5+
## Configuration parameters
66

77
The plugin supports the following configuration parameters:
88

99
| Key | Description | Default |
1010
| :--- | :--- | :--- |
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` |
2222
| 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_ |
2727

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.
2929

30-
## Configuration Examples <a id="config_example"></a>
30+
## Configuration examples
3131

32-
### Configuration File
32+
### Configuration file
3333

3434
Here is a minimum configuration example.
3535

3636
{% tabs %}
37+
{% tab title="fluent-bit.yaml" %}
38+
39+
```yaml
40+
pipeline:
41+
inputs:
42+
- name: winevtlog
43+
channels: Setup,Windows PowerShell
44+
interval_sec: 1
45+
db: winevtlog.sqllite
46+
outputs:
47+
- name: stdout
48+
match: '*'
49+
```
50+
51+
{% endtab %}
3752
{% tab title="fluent-bit.conf" %}
53+
3854
```python
3955
[INPUT]
4056
Name winevtlog
@@ -46,42 +62,29 @@ Here is a minimum configuration example.
4662
Name stdout
4763
Match *
4864
```
49-
{% endtab %}
5065

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-
```
6366
{% endtab %}
6467
{% endtabs %}
6568

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`.
6772

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.
7174

72-
#### Query Languages for Event_Query Parameter
75+
#### Query languages for `Event_Query` parameter
7376

7477
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).
7780

78-
### Command Line
81+
### Command line
7982

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.
8184

8285
```bash
83-
$ fluent-bit -i winevtlog -p 'channels=Setup' -p 'Read_Existing_Events=true' -o stdout
86+
fluent-bit -i winevtlog -p 'channels=Setup' -p 'Read_Existing_Events=true' -o stdout
8487
```
8588

86-
Note that `winevtlog` plugin will tail channels on each startup.
87-
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 `-p 'Read_Existing_Events=true'` parameter.

vale-styles/FluentBit/Acronyms.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ second: '(?:\b[A-Z][a-z]+ )+\(([A-Z]{3,5})\)'
99
# ... with the exception of these:
1010
exceptions:
1111
- ACL
12+
- ANSI
1213
- API
1314
- ARN
1415
- ASC

0 commit comments

Comments
 (0)