community.windows.win_eventlog_entry – Write entries to Windows event logs¶
Note
This plugin is part of the community.windows collection (version 1.3.0).
To install it use: ansible-galaxy collection install community.windows
.
To use it in a playbook, specify: community.windows.win_eventlog_entry
.
Parameters¶
See Also¶
See also
- community.windows.win_eventlog
The official documentation on the community.windows.win_eventlog module.
Examples¶
- name: Write an entry to a Windows event log
community.windows.win_eventlog_entry:
log: MyNewLog
source: NewLogSource1
event_id: 1234
message: This is a test log entry.
- name: Write another entry to a different Windows event log
community.windows.win_eventlog_entry:
log: AnotherLog
source: MyAppSource
event_id: 5000
message: An error has occurred.
entry_type: Error
category: 5
raw_data: 10,20
Authors¶
Andrew Saraceni (@andrewsaraceni)