Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The current version of Indeed Log Server supports:

  • Windows Event Log
  • Microsoft SQL Server
  • PostgreSQL Pro

Events can be read from only one source, and recorded to several sources simultaneously.

The read and write sources are configured in the configuration file C:\inetpub\wwwroot\ils\clientApps.config in the <Application Id="pam" SchemaId="Pam.Schema"> section. 

The source for reading events is specified in the tags <ReadTargetId> .. </ReadTargetId>.

Sources for recording events are specified one by one in the <TargetId> .. </TargetId> tags and are listed in the WriteTargets section.

Configuring reading and writing events in the Windows Event Log

Go to the C:\inetpub\wwwroot\ils directory and edit the clientApps.config file by changing the item:

Code Block
languagexml
firstline35
<!--<Application Id="pam" SchemaId="Pam.Schema">
	<ReadTargetId>pamEventLogTarget</ReadTargetId>
    <WriteTargets>
       	<TargetId>pamEventLogTarget</TargetId>
    </WriteTargets>
	<AccessControl>
		<CertificateAccessControl CertificateThumbprint="001122...AA11" Rights="Read" />
	</AccessControl>
</Application>-->

this way:

Code Block
languagexml
firstline35
<Application Id="pam" SchemaId="Pam.Schema">
	<ReadTargetId>pamEventLogTarget</ReadTargetId>
	<WriteTargets>
		<TargetId>pamEventLogTarget</TargetId>
	</WriteTargets>
	<AccessControl>
		<!--<CertificateAccessControl CertificateThumbprint="001122...AA11" Rights="Read" />-->
	</AccessControl>
</Application>

Below, in the Targets section, make sure there is an uncommented line

Code Block
languagexml
    <Target Id="Pam.EventLogTarget" Type="eventlog"/>

Setting up reading and writing events in the DBMS

Microsoft SQL Server

IIS

Note
titleПримечание
Веб-приложение Log Server (ils) размещается в Default Web Site. Если для Default Web Site уже был настроен HTTPS, то выполнение следующих пунктов не требуется.
  1. Запустите Internet Information Services (IIS) Manager и раскройте пункт Сайты (Sites).
  2. Выберите сайт Default Web Site и нажмите Привязки (Bindings) в разделе Действия (Actions).

  3. Нажмите Добавить (Add):
    1. Тип (Type) - https.
    2. Порт (Port) - 443.
    3. Выберите SSL-сертификат (SSL Certificate).
  4. Сохраните привязку.

Конфигурация

Warning
titleВажно

Все URL-адреса указываются в нижнем регистре.

Перейдите в каталог
  1. Go to the directory
  1. C:\inetpub\wwwroot\ils\targetConfigs
и откройте для редактирования файл sampleDb.config.Заполните секцию <Settings> … </Settings>
  1. , create a copy of the file sampleDb.config and rename it to mssqlDb.config, then edit the mssqlDb.config file according to the settings below:
    <Settings>… </Settings>:
    • Data Source -
имя SQL-сервера.
    •  Name of the Microsoft SQL Server/PostgreSQL Pro server or named instance of Microsoft SQL Server
    • Initial Catalog - 
имя базы данных Log Server.Integrated Security - тип проверка подлинности (оставить без изменений).
    • database name (ILS)
    • User ID -
имя для входа сервисной учётной записи для работы с базами данных Indeed PAM.
    • service account for working with Indeed PAM databases
    • Password -

пароль сервисной учётной записи.
    • service account password

      Code Block
      languagexml
      themeConfluence
titleПример
    • <Settings>
      	<ConnectionString>Data Source=
sqlserver
    • SQLServer;
Initial Catalog
    • Database=
eventpam
    • ILS;Integrated Security=False;User ID=
sqlservicepam
    • IPAMSQLService;Password=
123456<
    • Password</ConnectionString>
      </Settings>
note

    • Warning
title
    • icon
ПримечаниеВ случае использования SQL Express параметр подключения к серверу необходимо задавать в формате
    • false

      If using a named instance of Microsoft SQL Server, the value of the Data Source parameter must be set in the format <server name>\<instance name>

<имя сервера SQL >\<имя инстанса SQL>
    • .

      Code Block
      languagexml
themeConfluencetitleПример
    • <Settings>
      	<ConnectionString>Data Source=
sqlserver
    • MSSQLServer\
SQLEXPRESS
    • Named instance; ... </ConnectionString>
      </Settings>



  1. In the file C:\inetpub\wwwroot\ils\clientApps.config edit the Application section for work with the mssqlDb.config file:

    Code Block
    languagexml
     <Application Id="pam" SchemaId="Pam.Schema">
          <ReadTargetId>mssqlDb</ReadTargetId>
          <WriteTargets>
            <TargetId>mssqlDb</TargetId>
          </WriteTargets>
          <AccessControl>
            <!--<CertificateAccessControl CertificateThumbprint="001122...AA11" Rights="Read" />-->
          </AccessControl>
        </Application> 


  2. Next in the same file in the Targets section add a new element:

    Code Block
    languagexml
      <Targets>
        ...
        <Target Id="mssqlDb" Type="mssql"/>
      </Targets> 
    
    


PostgreSQL Pro

  1. Go to C:\inetpub\wwwroot\ils\targetConfigs directory, create a copy of the file sampleDb.config rename it to postgresDb.config, then edit the postgresDb.config file similar to the settings for Microsoft SQL Server.
  2. In the file C:\inetpub\wwwroot\ils\clientApps.config edit the Application section for work with the postgresDb.config file:

    Code Block
    languagexml
        <Application Id="pam" SchemaId="Pam.Schema">
          <ReadTargetId>postgresDb</ReadTargetId>
          <WriteTargets>
            <TargetId>postgresDb</TargetId>
          </WriteTargets>
          <AccessControl>
            <!--<CertificateAccessControl CertificateThumbprint="001122...AA11" Rights="Read" />-->
          </AccessControl>
        </Application> 


  3. Next, in the same file in the Targets section add a new element:

    Code Block
    languagexml
      <Targets>
        ...
        <Target Id="postgresDb" Type="pgsql"/>
      </Targets> 


Configuring event reading in the DBMS, recording events in both the Windows Event Log and the DBMS

  1. Go to C:\inetpub\wwwroot\ils\targetConfigs directory, create a copy of the file sampleDb.config, edit it in a way of the type of DBMS used according to the instructions above.
  2. In the fileC:\inetpub\wwwroot\ils\clientApps.config edit the Application section this way:

    Code Block
    languagexml
    <Application Id="pam" SchemaId="Pam.Schema">
          <ReadTargetId>mssqlDb</ReadTargetId>
          <WriteTargets>
            <TargetId>mssqlDb</TargetId>
    		<TargetId>Pam.EventLogTarget</TargetId>
          </WriteTargets>
          <AccessControl>
        <!--<CertificateAccessControl CertificateThumbprint="001122...AA11" Rights="Read" />-->
          </AccessControl>
        </Application>

    This example shows the configuration for reading events from the Microsoft SQL Server, writing events to the Microsoft SQL Server and Windows Event Log.


Divbox
classrightFloat

Table of Contents
printablefalse