Write entries to Windows event logs
- Write log entries to a given event log from a specified source.
Note
- This module will always report a change when writing an event entry.
.. seealso:: :ref:`community.windows.win_eventlog_module` The official documentation on the **community.windows.win_eventlog** module.
- 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
- Andrew Saraceni (@andrewsaraceni)