build(deps): bump ruby/setup-ruby from 1.298.0 to 1.299.0 (#127)
Bumps ruby/setup-ruby from 1.298.0 to 1.299.0.
updated-dependencies:
- dependency-name: ruby/setup-ruby dependency-version: 1.299.0 dependency-type: direct:production update-type: version-update:semver-minor …
Signed-off-by: dependabot[bot] support@github.com Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
fluent-plugin-windows-eventlog
Component
fluentd Input plugin for the Windows Event Log
Fluentd plugin to read the Windows Event Log.
This repository contains 2 Fluentd plugins:
The former one is obsolete, please don’t use in newly deployment.
This document describes about the later one. If you want to know about the obsolete one, please see in_windows_eventlog(old).md
Installation
in_windows_eventlog2
Fluentd Input plugin for the Windows Event Log using newer Windows Event Logging API. This is successor to in_windows_eventlog. See also this slide for the details of
in_windows_eventlog2plugin.Configuration
NOTE: in_windows_eventlog2 always handles EventLog records as UTF-8 characters. Users don’t have to specify encoding related parameters and they are not provided.
NOTE: When
Descriptioncontains error message such asThe message resource is present but the message was not found in the message table., eventlog’s resource file (.mui) related to error generating event is something wrong. This issue is also occurred in built-in Windows Event Viewer which is the part of Windows management tool.NOTE: When
render_as_xmlastrue,fluent-plugin-parser-winevt_xmlplugin should be needed to parse XML rendered Windows EventLog string.NOTE: If you encountered CPU or memory spike due to massively huge EventLog channel,
rate_limitparameter may help you. This paramter can handle the multiples of 10 or -1(Winevt::EventLog::Subscribe::RATE_INFINITE).parameters
channelsin_windows_ventlog2may read all of channels except for debug and analytical typed channels. If you want to read ‘setup’ or ‘security’ logs or some privileged channels, you must launch fluentd with administrator privileges.keysread_interval<storage>storageplugin for recording read position likein_tail‘spos_file.<parse>parserplugin for parsing raw XML EventLog records.parse_descriptiondescriptionfield and set parsed result into the record.DescriptionandEventDatafields are removeddescription_key_delimiter..description_word_delimiter_.downcase_description_keystrue.read_from_headfalse.read_existing_eventsfalse.render_as_xmlfalse.rate_limitread_interval. This value must be a multiple of 10. Default is-1(Winevt::EventLog::Subscribe::RATE_INFINITE) and this means there is no upper limit. The log flow rate for setting this is approximately as follows:rate_limit / read_interval [logs/second]preserve_qualifiers_on_hashfalse.preserve_sid_on_hashtrue.read_all_channelsfalsedescription_localenil. See also: Supported localesrefresh_subscription_intervalnil.event_query"*"(retrieving all events).<subscribe>subscribe section
channelsread_existing_eventsfalse.remote_servernil.remote_domainnil.remote_usernamenil.remote_passwordnil.Motivation: subscribe directive is designed for applying
read_existing_eventseach of channels which is specified in subscribe section(s).e.g) The previous configuration can handle
read_existing_eventsbut this parameter only specifiesread_existing_eventsor not for channels which are specified inchannels.is interpreted as “Application”, “Security”, and “HardwareEvents” should be read existing events.
But some users want to configure to:
With
<subscribe>directive, this requirements can be represendted as:This configuration can be handled as:
Remoting access
<subscribe>section supports remoting access parameters:remote_serverremote_domainremote_usernameremote_passwordThese parameters are only in
<subscribe>directive.Note that before using this feature, remoting access users should belong to “Event Log Readers” group:
And then, users also should set up their remote box’s Firewall configuration:
As a security best practices, remoting access account should not be administrator account.
For graphical instructions, please refer to Preconfigure a Machine to Collect Remote Windows Events | Sumo Logic document for example.
Available keys
This plugin reads the following fields from Windows Event Log entries. Use the
keysconfiguration option to select a subset. No other customization is allowed for now.ProviderNameProviderGuidEventIDQualifiersLevelTaskOpcodeKeywordsTimeCreatedEventRecordIdActivityIDRelatedActivityIDProcessIDThreadIDChannelComputerUserIDVersionDescriptionEventDataparse_descriptiondetailsHere is an example with
parse_description true.This record is transformed to
NOTE: This feature assumes
descriptionfield has following formats:\r\n\r\n\r\n\t\t\tIf your
descriptiondoesn’t follow this format, the parsed result is onlydescription_titlefield with samedescriptioncontent.Copyright
Copyright
Copyright(C) 2014- @okahashi117
License
Apache License, Version 2.0