Configuring Microsoft SQL Server to accept logs from AxoSyslog
Complete the following steps to configure your Microsoft SQL Server to enable remote logins and accept log messages from syslog-ng
.
-
Start the SQL Server Management Studio application. Select
Start >Programs >>icrosoft SQL Server 2005 > >L Server Management Studio
. -
Create a new database.
-
In the
Object Explorer
, right-click on theDatabases
entry and selectNew Database
. -
Enter the name of the new database (for example,
syslogng
) into theDatabase name
field and clickOK
.
-
-
Create a new database user and associate it with the new database.
-
In the
Object Explorer
, selectSecurity
, right-click on theLogins
entry, then selectNew Login
. -
Enter a name (for example,
syslog-ng
) for the user into theLogin 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 (for example,syslogng
). -
In the
Default language
field, select the language of log messages that you want to store in the database, then clickOK
.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
, selectSecurity > Logins
, then right-click on the new login created in the previous step, and selectProperties
. -
Select
User Mapping
. In theUsers mapped to this login
option, check the line corresponding to the new login (for example,syslogng
). In theDatabase role membership
field, check thedb_owner
andpublic
options.
-
-
Enable remote logins for SQL users.
In the
Object Explorer
right-click on your database server, and selectProperties > Security
, and set theServer Authentication
option toSQL Server and Windows Authentication mode
.