Skip to main content

Automate Add-On Execution

To ensure you feed the most recent data to your SIEM solution, Netwrix recommends scheduling a daily task for running the add-on.

Perform the following steps to create a scheduled task:

Step 1 – On the computer where you want to execute the add-on, navigate to Task Scheduler.

Step 2 – On the General tab, specify a task name. Make sure the account that runs the task has all necessary rights and permissions.

Step 3 – On the Triggers tab, click New and define the schedule. This option controls how often audit data is exported from Auditor and saved to event log. Netwrixrecommends scheduling a daily task.

Step 4 – On the Actions tab, click New and specify action details. Review the following for additional information:

OptionValue
ActionStart a program
Program/script<Path to add-on>\NetwrixAuditorForCEF\NetwrixAuditorCEFExport.exe
Add arguments (optional)/configpath:"<Path to config.xml>" For more information about configuration, see the Configuration File topic.

Step 5 – Review advanced settings (if applicable) and click OK.

Configuration File

To configure settings for exporting audit data to event log, you need to edit the configuration.xml file.

Navigate to the add-on installation folder and edit config.xml. Review the parameters and their possible values:

ParameterDescription
<DataSource>NetwrixAuditorServer</DataSource>Specifies the server name where Netwrix Auditor resides. This parameter can contain a server name, FQDN, or IP address. If not specified, localhost is used by default.
<AdapterType>syslog</AdapterType>Specifies the SIEM type and format for event export. For CEF, set this parameter to syslog. This is the default value.
<DestinationHost>123.123.123.123</DestinationHost>Specifies the IP address or name of the computer to which events will be sent. For local logging, use 127.0.0.1 or leave empty.
<DestinationPort>514</DestinationPort>Specifies the port for sending events. 514 is the default UDP port.
<Facility>16</Facility>Specifies the facility number for syslog. For the list of supported facilities, see the table below. The default value is 16.
<OutputDelimiter>%tab%</OutputDelimiter>Specifies the delimiter that separates fields in the output. Supported values are %tab%, %space%, %comma%, %semicolon%, and %pipe%. The default value is %pipe%.
<OutputDateTimeFormat>MM/dd/yyyy HH:mm:ss</OutputDateTimeFormat>Specifies the format for date and time. The default format is MM/dd/yyyy HH:mm:ss. For additional information, see the MSDN documentation for custom date and time format strings.
<FilterDataSource>Exchange Online</FilterDataSource>Optional. Filters events by data source name. If not specified, events from all data sources are exported.
<DatabaseConnectionTimeoutSeconds>240</DatabaseConnectionTimeoutSeconds>Optional. Specifies the timeout value for database connections.
<SqlCommandTimeoutSeconds>120</SqlCommandTimeoutSeconds>Optional. Specifies the timeout value for SQL commands.

Syslog Facility

Configure facility numbers according to your SIEM requirements:

ValueKeywordDescription
0kernKernel messages
1userUser-level messages
2mailMail system
3daemonSystem daemons
4authSecurity/authorization
5syslogInternal syslog messages
6lprLine printer subsystem
7newsNetwork news subsystem
8uucpUUCP subsystem
9cronClock daemon
10authprivSecurity/authorization
11ftpFTP daemon
12ntpNTP subsystem
13logauditLog audit
14logalertLog alert
15clockClock daemon
16local0Local use 0 (default)
17local1Local use 1
18local2Local use 2
19local3Local use 3
20local4Local use 4
21local5Local use 5
22local6Local use 6
23local7Local use 7