Version information
This version is compatible with:
- Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x
- Puppet >= 5.5.8 < 7.0.0
This module has been deprecated by its author since Jun 26th 2023.
Start using this module
Documentation
Windows Event Logs module for Puppet
Table of Contents
- Overview
- Module Description - What is the windows_eventlog module?
- Setup - The basics of getting started with windows_eventlog
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
Overview
Puppet module for managing windows event logs
Module Description
The purpose of this module is to manage each of the Windows event logs, including the size, rotation and retention
Setup
What windows_eventlog affects
- Sets registry keys to manage the event log configuration
Beginning with windows_eventlog
Manage the size of the Application log:
windows_eventlog { 'Application':
log_path => '%SystemRoot%\system32\winevt\Logs\Application.evtx',
log_size => '2048',
max_log_policy => 'overwrite'
}
Manage several custom logs under C:\Logs:
windows_eventlog { ['Custom1', 'Custom2', 'Custom3']:
log_path_template => 'C:\Logs\%%NAME%%.evtx'
}
Usage
Classes and Defined Types
Defined Type: windows_eventlog
The primary definition of this module. Manages the size and rotation policy of Windows event logs
Parameters within windows_eventlog
:
log_path
(Optional) The path to the log file that you want to manage.
log_size
The max size of the log file in bytes. Defaults to '1028
'.
max_log_policy
The retention policy for the log. Defaults to 'overwrite
'.
log_path_template
(Optional) A template for log_path
, where "%%NAME%%
" will be replaced with
the log name. Defaults to '%SystemRoot%\\system32\\winevt\\Logs\\%%NAME%%.evtx
'.
Reference
Defined Types
Public Defined Types
windows_eventlog
: Manages the size and rotation policy of a Windows event log
Limitations
This module is tested on the following platforms:
- Windows 2008 R2
It is tested with the OSS version of Puppet only.
Development
Contributing
Please read CONTRIBUTING.md for full details on contributing to this project.
Changelog
All notable changes to this project will be documented in this file. Each new release typically also includes the latest modulesync defaults. These should not affect the functionality of the module.
v3.0.0 (2020-01-14)
Breaking changes:
- modulesync 2.7.0 and drop puppet 4 #51 (bastelfreak)
Closed issues:
- stdlib 6+ is unsupported #57
Merged pull requests:
- Allow puppetlabs/stdlib 6.x #56 (dhoppe)
- Remove duplicate CONTRIBUTING.md file #53 (dhoppe)
- Remove Linux acceptance nodesets #48 (ekohl)
v2.0.2 (2018-10-19)
Closed issues:
- Support of puppetlabs-registry v2.0.1? #40
Merged pull requests:
- modulesync 2.2.0 and allow puppet 6.x #46 (bastelfreak)
- Added log_size should be set in bytes #45 (sshastri)
- allow puppetlabs/stdlib 5.x #43 (bastelfreak)
v2.0.1 (2018-08-18)
Merged pull requests:
- allow puppetlabs/registry 2.x #39 (bastelfreak)
- Remove docker nodesets #37 (bastelfreak)
- drop EOL OSs; fix puppet version range #36 (bastelfreak)
v2.0.0 (2017-11-17)
Merged pull requests:
- bump puppet version dependency to >= 4.7.1 \< 6.0.0 #32 (bastelfreak)
- Modulesync 1.2.0 #30 (TraGicCode)
v1.2.0 (2017-02-11)
This is the last release with Puppet3 support!
- Sync metadata.json license to be same as LICENSE
- Fix several Rubocop issues
- Fix several markdown issues
- Add missing badges
- Fix several rubocop issues
- Set min version_requirement for Puppet + bump deps
2016-05-08 Release 1.1.1
- modulesync with voxpupuli defaults
2015-05-15 Release 1.1.0 (not published)
- Infer log_path using $name (when log_path is unset)
0.0.1
- The initial version
* This Changelog was automatically generated by github_changelog_generator
Dependencies
- puppetlabs/stdlib (>= 4.6.0 < 7.0.0)
- puppetlabs/registry (>= 1.1.1 < 3.0.0)
Copyright (c) 2014 Liam Bennett (liamjbennett@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.