Syslog Server
Send Events to Syslog
The Syslog server is used for integration with a SIEM system and serves as a unified data storage for PAM event records and/or text session logs. Data is updated in real time: during an active remote connection, not after its completion.
To send Event log records to a Syslog server, configure the configuration files according to the instructions below.
Sending text session logs to a Syslog server is configured in the Configuration section.
- Windows
- Linux
Go to the
C:\inetpub\wwwroot\ls\targetConfigsfolder, create a copy of thesampleSyslog.configfile and rename it toPam.Syslog.config, then edit the<Settings> … </Settings>according to the information below:- HostName — Syslog server name
- Port — Syslog port number
- Protocol — Syslog connection type: TCPoverTLS, TCP, UDP
- Format — logging format: Plain, CEF, LEEF
- SyslogVersion — select syslog protocol: RFC3164, RFC5424
C:\inetpub\wwwroot\ls\targetConfigs<Settings HostName="localhost" Port="5081" Protocol="TCP" Format="CEF" SyslogVersion="RFC3164" />In the
C:\inetpub\wwwroot\ls\clientApps.configfile editpamsection for work with thePam.Syslog.configfile. Add a newTargetIdfor theWriteTarget:C:\inetpub\wwwroot\ls\clientApps.config<Application Id="pam" SchemaId="Pam.Schema">
<ReadTargetId>Pam.TargetDb</ReadTargetId>
<WriteTargets>
<TargetId>Pam.TargetDb</TargetId>
<TargetId>Pam.Syslog</TargetId>
</WriteTargets>
<AccessControl>
<!--<CertificateAccessControl CertificateThumbprint="001122...AA11" Rights="Read" />-->
</AccessControl>
</Application>In the same file, in the
Targetssection add a new element, it should be the same as the configuration file name without extension:C:\inetpub\wwwroot\ls\clientApps.config<Targets>
...
<Target Id="Pam.TargetDb" Type="mssql"/>
<Target Id="Pam.Syslog" Type="syslog"/>
</Targets>In
Target Id="Pam.TargetDb"specifyTypedepending on the database you are using:mssqlorpgsql.
Go to the
/etc/axidian/axidian-pam/ls/targetsfolder, edit the<Settings> … </Settings>section of thePam.Syslog.configfile according to the information below:- HostName — Syslog server name
- Port — Syslog port number
- Protocol — Syslog connection type: TCPoverTLS, TCP, UDP
- Format — logging format: Plain, CEF, LEEF
- SyslogVersion — select syslog protocol: RFC3164, RFC5424
/etc/axidian/axidian-pam/ls/targets<Settings HostName="localhost" Port="5081" Protocol="TCP" Format="CEF" SyslogVersion="RFC3164" />In the
/etc/axidian/axidian-pam/ls/clientApps.configfile editpamsection for work with thePam.Syslog.configfile. Add a newTargetIdfor theWriteTarget:/etc/axidian/axidian-pam/ls/clientApps.config<Application Id="pam" SchemaId="Pam.Schema">
<ReadTargetId>Pam.DbTarget</ReadTargetId>
<WriteTargets>
<TargetId>Pam.DbTarget</TargetId>
<TargetId>Pam.Syslog</TargetId>
</WriteTargets>
<AccessControl>
<!--<CertificateAccessControl CertificateThumbprint="001122...AA11" Rights="Read"/>-->
</AccessControl>
</Application>In the same file, in the
Targetssection add a new element, it should be the same as the configuration file name without extension:/etc/axidian/axidian-pam/ls/clientApps.config<Targets>
...
<Target Id="Pam.DbTarget" Type="mssql"/>
<Target Id="Pam.Syslog" Type="syslog"/>
</Targets>In
Target Id="Pam.DbTarget"specifyTypedepending on the database you are using:mssqlorpgsql.
Send Text Logs to Syslog
To configure sending session text logs to the Syslog server, do the following:
In the administrator console, go to Configuration → System Settings.
Fill in the Syslog server parameters.
Option DescriptionSyslog server IP address or DNS name of Syslog server Port Syslog server port Protocol Network protocol for connection to Syslog server: TCP, UDP Format Event format used by syslog server: CEF, LEEF Syslog version IETF standard of Syslog protocol: RFC3164, RFC5424 Once the data is filled in, click Check connection to the Syslog server.
Make sure that the test message has arrived at the Syslog server.