The syslog-ng Agent for Windows application can collect messages from the standard
Windows eventlog containers, as well as from custom containers. The agent
automatically forwards the messages from three standard eventlog containers
(Application, Security, System). To enable or disable
these sources, or to add custom eventlog containers, complete the following steps:
![]() |
Note |
|---|---|
|
The syslog-ng Agent for Windows sends its own log messages into the
The agent caches in the registry the ID of the last message sent to the destination server, so if the agent is not operating for a time (e.g., it is restarted ), then it starts reading messages from the last cached message ID, sending out all the new messages. |
![]() |
Warning |
|---|---|
If an eventlog container becomes corrupt, the agent will stop processing the
event source. A log message ( |
Procedure 5.3.1.1. Managing eventlog sources
Start the configuration interface of the syslog-ng Agent for Windows application.
Select , and double-click on .
To disable sending messages from an eventlog container, unselect the checkbox before the name of the container.
To modify the log facility associated with the messages of the container, select the container, click , and select the log facility to use in the Log Facility field.
To add a custom container, select , and enter the name if the container into the Event Container Name field. If you do not know the name of the container, see Procedure 5.3.1.2, “Determining the name of a custom eventlog container”.
Select , then . To activate the changes, restart the syslog-ng Agent service.
Procedure 5.3.1.2. Determining the name of a custom eventlog container
Open the Event Viewer application.
Select the custom container you are looking for (e.g., DNS
Server).
Right click on the container and select .
The name of the container is the name of the file (without the extension)
displayed in the Logname field (e.g., for
C:\WINDOWS\system32\config\DnsEvent.Evt it is
DnsEvent).
Use this name as the name of the custom eventlog container during the procedure described in Procedure 5.3.1.1, “Managing eventlog sources”.
![]() |
Note |
|---|---|
|
On Windows Vista and Server 2008, some container are not real containers, but show selected messages collected from multiple containers. To forward such messages to the syslog-ng server, you have to find out which real containers are displayed in the container, and add them to the configuration of the syslog-ng Agent. Some containers have the If you are sending old messages to the server as well, the syslog-ng Agent will not send the very first message stored in the container. This is a bug in the Windows API. |
© 2007-2010 BalaBit IT Security
Please send your comments or documentation bugs to: documentation@balabit.com