PTA - Troubleshooting Unix Log Parsing in Splunk-PTA Integration
Symptom
While integrating Splunk (SIEM) with Idira PTA for Windows and Unix logs, Windows security events are correctly forwarded, but Unix events (such as "Accepted public key," "Accepted password," and "Session opened") are not being parsed by the PTA.
Environment
12.2;12.6;14.0;14.2;14.4;14.6;15.0 Privileged Access Manager (PAM, self-hosted) PTA
PTA
Cause
The issue is often caused by a missing or incorrectly configured Linux-specific transform in Splunk. Based on standard PTA integration requirements, Unix logs require a separate regex filter that account for case-insensitive matches of login activity strings, which must then be routed to the same destination key as the Windows events.
Resolution
Update your Splunk configuration files to mirror the following validated setup. This configuration ensures that both Windows and Unix events are correctly filtered and routed to the PTA server.
1. Update outputs.conf
Ensure the syslog routing destination is defined with the correct server IP and settings.
# PTA configuration
[syslog:cyberark_pta_syslog]
disabled = false
server = <PTA_Server_IP>:514
type = tcp
timestampformat = %s
maxEventSize = 65536
indexAndForward = true
2. Update props.conf
Define how Splunk should handle the incoming log sources for both Windows and Unix.
# PTA Configuration
[source::WinEventLog:Security]
TRANSFORMS-cyberark_pta_windows = cyberark_pta_windows
LINE_BREAKER_LOOKBEHIND = 1500
[source::/var/log/secure]
TRANSFORMS-cyberark_pta_linux = cyberark_pta_linux
# Use if using TCP to prevent event truncation
# LINE_BREAKER_LOOKBEHIND = 1500
3. Update transforms.conf
Define the specific regex filters to identify relevant events for PTA analysis.
# Idira PTA
[cyberark_pta_windows]
REGEX = .*EventCode=(4624|4720|4723|4724|4732).*
DEST_KEY = _SYSLOG_ROUTING
FORMAT = cyberark_pta_syslog
[cyberark_pta_linux]
REGEX = (?i).*(accepted|session opened).*
DEST_KEY = _SYSLOG_ROUTING
FORMAT = cyberark_pta_syslog
Key Note: The Unix regex uses (?i) to ensure case-insensitive matching for terms like "accepted" or "session opened," which resolves issues where specific Unix distributions might format these logs differently.
4. Apply Changes
-
Save the changes to the
.conffiles inSPLUNK_HOME/etc/system/local/. -
Restart the Splunk service.
Validation
-
Search: Run a search in Splunk for
source="/var/log/secure"and verify the events contain "accepted" or "session opened". -
PTA Logs: Monitor
/opt/tomcat/logs/pta.logon the PTA server to confirm that Linux events are arriving and being parsed without errors.