Skip to content

Commit ce334c6

Browse files
authored
winevtlog: Add docs (#625)
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent a870757 commit ce334c6

File tree

4 files changed

+54
-0
lines changed

4 files changed

+54
-0
lines changed

.gitbook.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ redirects:
2929
input/tcp: ./pipeline/inputs/tcp.md
3030
input/thermal: ./pipeline/inputs/thermal.md
3131
input/winlog: ./pipeline/inputs/windows-event-log.md
32+
input/winevtlog: ./pipeline/inputs/windows-event-log-winevtlog.md
3233

3334
# Filters
3435
filter/aws: ./pipeline/filters/aws-metadata.md

SUMMARY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
* [TCP](pipeline/inputs/tcp.md)
105105
* [Thermal](pipeline/inputs/thermal.md)
106106
* [Windows Event Log](pipeline/inputs/windows-event-log.md)
107+
* [Windows Event Log (winevtlog)](pipeline/inputs/windows-event-log-winevtlog.md)
107108
* [Parsers](pipeline/parsers/README.md)
108109
* [Configuring Parser](pipeline/parsers/configuring-parser.md)
109110
* [JSON](pipeline/parsers/json.md)

installation/sources/build-and-install.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ The _input plugins_ provides certain features to gather information from a speci
130130
| [FLB\_IN\_TCP](../../pipeline/inputs/tcp.md) | Enable TCP input plugin | On |
131131
| [FLB\_IN\_THERMAL](../../pipeline/inputs/thermal.md) | Enable system temperature\(s\) input plugin | On |
132132
| [FLB\_IN\_WINLOG](../../pipeline/inputs/windows-event-log.md) | Enable Windows Event Log input plugin \(Windows Only\) | On |
133+
| [FLB\_IN\_WINEVTLOG](../../pipeline/inputs/windows-event-log-winevtlog.md) | Enable Windows Event Log input plugin using winevt.h API \(Windows Only\) | On |
133134

134135
### Filter Plugins
135136

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Windows Event Log (winevtlog)
2+
3+
The **winevtlog** input plugin allows you to read Windows Event Log with new API from `winevt.h`.
4+
5+
## Configuration Parameters <a id="config"></a>
6+
7+
The plugin supports the following configuration parameters:
8+
9+
| Key | Description | Default |
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\) | False |
17+
| Render\_Event\_As\_XML | Whether to render system part of event as XML string or not. \(optional\) | False |
18+
| Use\_ANSI | Use ANSI encoding on eventlog messages. \(optional\) | False |
19+
20+
Note that if you do not set _db_, the plugin will tail channels on each startup.
21+
22+
## Configuration Examples <a id="config_example"></a>
23+
24+
### Configuration File
25+
26+
Here is a minimum configuration example.
27+
28+
```python
29+
[INPUT]
30+
Name winevtlog
31+
Channels Setup,Windows PowerShell
32+
Interval_Sec 1
33+
DB winevtlog.sqlite
34+
35+
[OUTPUT]
36+
Name stdout
37+
Match *
38+
```
39+
40+
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.
41+
42+
### Command Line
43+
44+
If you want to do a quick test, you can run this plugin from the command line.
45+
46+
```bash
47+
$ fluent-bit -i winevtlog -p 'channels=Setup' -p 'Read_Existing_Events=true' -o stdout
48+
```
49+
50+
Note that `winevtlog` plugin will tail channles on each startup.
51+
If you want to confirm whether this plugin is working or not, you should specify `-p 'Read_Existing_Events=true'` parameter.

0 commit comments

Comments
 (0)