PTA - Explanation of bulk syslog parameters

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
PAM Self-Hosted Articles
3 min read
L1 Bithead
No ratings

Question

How should the bulk syslog parameters be configured in LOCALPARM on the PTA server

Answer

There are three important parameters which can be added to the LOCALPARM file in order to process bulk syslog messages:

audit_analyzer_body_regex_configured - Syslogs bulk message identifier
default_bulk_delimiter - delimiter used to split bulk messages into separated syslogs
delimiter_string_format - A String formatter which replaces %s with default_bulk_delimiter value.

These are examples of how these can be configured:-

"(?<=%s)" (Without the qoutes)- Split message and keep the delimiter with before message (%s will be replaced with default_bulk_delimiter value).
"(?=%s)" (Without the qoutes) - Split message and keep the delimiter with after message.
"%s" (Without the qoutes) - Just split by the delimiter
 

Issue

Hi! We have a working Azure web integration on an on-premise system. Onboarded users can login to Azure web interfaces via PSM WebForm component and their passwords are managed by the CPM. We would like to integrate PTA as well to have alerts about user activities which are not carried out via CyberArk. The Azure tenants are already configured to send all the syslogs to the company's Splunk server, so we configured Splunk according to the documentation ( https://docs.cyberark.com/PAS/Latest/en/Content/PTA/Configuring-Splunk-Forward-syslog-messages.htm ) to forward the relevant messages (successful Logons) to the PTA. We use TCP protocol on the PTA to receive syslogs messages from Vault, Syslog-ng and from Splunk. The configuration is working, the messages are received by PTA from various sources. But the Azure messages are arriving many times not separated, but PTA processes many of them concatenated as a single syslog event. The events are separated with a \n (0x0a) as described in the RFC6587 (https://datatracker.ietf.org/doc/html/rfc6587#section-3.4.2). The RFC also says that ⟪A transport receiver can assume that non-transparent-framing is used if a syslog frame starts with the ASCII character "timestamp host one-line-JSON-string\n I have created a PTA plugin to recognize the messages and obtain the relevant parts from it, it also works, but seemingly some messages are get lost because they are simply the tail of another message and not processed separately. I attach two examples: diamond.log: here the pta plugin is working, the message is recognized and audited, but only the first one from the received three. diamond150.log: earlier, when there were no plugin that recognized the events, but the issue was also observable. In this example there are also "Incoming syslog record:" entries which are cut in half. PTA tries to interpret them starting from the middle. Is there any PTA setting that could help to have the messages processed correctly? A possible solution could be to use UDP instead of TCP, but the company security policy does not allow to use UDP for syslog transport. Best Regards, Krisztian

Environment

PTA Inbound Integration
Rate this article:
  • 469 Views
  • 0 comments
  • 0 Likes
Article Dashboard
Version history
Last Updated:
‎12-16-2024 10:47 AM
Updated by: