Axidian Log Server allows to record events from all CertiFlow servers in a Unified Windows Event Log, Microsoft SQL, PostgreSQL or Syslog servers.
Install Axidian Log Server on one of the CertiFlow servers or on a separate workstation (within or outside the domain). System requirements are the same as for Axidian CertiFlow server. |
Run Axidian.LogServer-<version number>.x64.msi installer. The installer is located in Axidian.Log.Server directory.
Axidian Log Server works with one Read storage (<ReadTargetId>) and with multiple Write storages (<WriteTargets>). |
To apply changes in configuration files, restart the IIS. |
Edit the configuration file clientApps.config (C:\inetpub\wwwroot\ls\clientApps.config) as follows:
Add the following data in Application section:
<Application Id="cm" SchemaId="cmSchema"> <ReadTargetId>eventLogTarget</ReadTargetId> <WriteTargets> <TargetId>eventLogTarget</TargetId> </WriteTargets> <AccessControl> <!--<CertificateAccessControl CertificateThumbprint="001122...AA11" Rights="Read" />--> </AccessControl> </Application> |
Add a new element in Targets section:
<Targets> <Target Id="eventLogTarget" Type="eventlog"/> </Targets> |
The database used as data storage for Axidian Log Server is created manually. The database contents are populated automatically.
In the Owner: field define the database owner.
Create a new account (e.g. cfServiceSql) or use any internal SQL or Active Directory account. Once you create the database, this account is granted db_owner, public privileges. The service account is now used to perform read/write operations from/to the database. |
Click ОК to save the database.
Password - service account password.
<Settings> <ConnectionString>Data Source=MSSQL\SQLEXPRESS;Database=LogServer;User Id=cfServiceSql;Password=P@ssw0rd</ConnectionString> </Settings> |
If you use a named instance of Microsoft SQL Server, specify the Server parameter value in the following format: <server name>\<instance name>:
|
Edit the configuration file clientApps.config (C:\inetpub\wwwroot\ls\clientApps.config) to operate with msSqlTarget.config as follows:
Add the following data in Application section:
<Application Id="cm" SchemaId="cmSchema"> <ReadTargetId>msSqlTarget</ReadTargetId> <WriteTargets> <TargetId>msSqlTarget</TargetId> </WriteTargets> <AccessControl> <!--<CertificateAccessControl CertificateThumbprint="001122...AA11" Rights="Read" />--> </AccessControl> </Application> |
Add a new element in the Targets section:
<Targets> <Target Id="msSqlTarget" Type="mssql"/> </Targets> |
The database used as data storage for Axidian Log Server is created manually. The database contents are populated automatically.
Enter the text of the request and specify the account name in it:
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO "service account name"; |
By default, you can connect to PostgreSQL databases only locally. To operate between several servers, configure a remote connection to the database:
Open the pg_hba.conf in PostgreSQL directory.
For Windows — For *nix — |
Add a line with the following parameters:
CONNECTIONTYPE DATABASE USER ADDRESS METHOD |
Where:
METHOD - authentication method of user account. E.g. md5, scram-sha-256.
host LogServer cfServiceSql 192.200.1.0 md5 host ALL cfServiceSql 10.0.0.0/8 md5 host ALL ALL 0.0.0.0/0 scram-sha-256 |
Password - service account password.
<Settings> <ConnectionString>Host=SRV-POSTGRESQL;Port=5432;Database=LogServer;Username=cfServiceSql;Password=P@ssw0rd</ConnectionString> </Settings> |
Edit the configuration file clientApps.config (C:\inetpub\wwwroot\ls\clientApps.config) to operate with pgSqlTarget.config as follows:
Add new TargetIds for ReadTarget and WriteTarget in Application section:
<Application Id="cm" SchemaId="cmSchema"> <ReadTargetId>pgSqlTarget</ReadTargetId> <WriteTargets> <TargetId>pgSqlTarget</TargetId> </WriteTargets> <AccessControl> <!-- <CertificateAccessControl CertificateThumbprint="001122...AA11" Rights="Read" /> --> </AccessControl> </Application> |
Add a new element in Targets section:
<Targets> <Target Id="pgSqlTarget" Type="pgsql"/> </Targets> |
Syslog is limited to events writing only (<WriteTargets>), events reading is not available. Axidian Log Server supports only event writing to Syslog (<WriteTargets>) due to restrictions of Syslog protocol. Example below complements configuration from PostgreSQL case. |
Protocol - type of connection to Syslog server: UDP, TCP, TCPoverTLS.
SyslogVersion (optional) - Syslog protocol: RFC3164, RFC5424.
<Settings HostName="SRV-SYSLOG" Port="514" Protocol="UDP"/> |
Add the following data in Application section:
<Applications> <Application Id="cm" SchemaId="cmSchema"> <ReadTargetId>pgSqlTarget</ReadTargetId> <WriteTargets> <TargetId>pgSqlTarget</TargetId> <TargetId>sysLogTarget</TargetId> </WriteTargets> <AccessControl> <!-- <CertificateAccessControl CertificateThumbprint="001122...AA11" Rights="Read" /> --> </AccessControl> </Application> </Applications> |
Add a new element in Targets section:
<Targets> <Target Id="pgSqlTarget" Type="pgsql"/> <Target Id="sysLogTarget" Type="syslog"/> </Targets> |