Complete the following steps to configure your Microsoft SQL Server to enable remote logins and accept log messages from syslog-ng.
Procedure 4.8. Configuring Microsoft SQL Server to accept logs from syslog-ng
Start the SQL Server Management Studio application. Select .
Create a new database.
In the Object Explorer, right-click on the Databases entry and select .
Enter the name of the new database (e.g.,
syslogng) into the Database
name field and click .
Create a new database user and associate it with the new database.
In the Object Explorer, select Security, right-click on the Logins entry, then select .
Enter a name (e.g., syslog-ng) for the user
into the Login name field.
Select the SQL Server Authentication option and enter a password for the user.
In the Default database field, select the
database created in Step 2 (e.g.,
syslogng).
In the Default language field, select the language of log messages that you want to store in the database, then click .
![]() |
Warning |
|---|---|
Incorrect language settings may result in the database converting the messages to a different character-encoding format. That way the log messages may become unreadable, causing information loss. |
In the Object Explorer, select Security > Logins, then right-click on the new login created in the previous step, and select .
Select User Mapping. In the Users
mapped to this login option, check the line corresponding
to the new login (e.g., syslogng). In the
Database role membership field, check the
db_owner and public
options.
Enable remote logins for SQL users.
In the Object Explorer right-click on your database server, and select , and set the Server Authentication option to SQL Server and Windows Authentication mode.
© 2007 BalaBit IT Security
Please send your comments or documentation bugs to: documentation@balabit.com