• Device > User Identification > User Mapping > Palo Alto Networks User-ID Agent Setup > Syslog FiltersThe User-ID agent uses Syslog Parse profiles to filter syslog messagessent from the syslog senders that the agent monitors for IP address-to-username mapping information (see Configure Access to Monitored Servers). Each profile can parse syslog messages for either of the following event types, but not both:
Palo Alto Networks provides the firewall with predefined Syslog Parse profiles through Applications content updates. To dynamically update the list of profiles as vendors develop new filters, schedule these dynamic content updates (see Device > Dynamic Updates). The predefined profiles are global to the firewall, whereas the custom profiles you configure apply only to the virtual system (Location) selected under Device > User Identification > User Mapping.To configure a custom profile, click Add and specify the settings described in the following table. The field descriptions in this table use a login event example from a syslog message with the following format:
![]()
The complete procedureto configure the User-ID agent to parse a syslog sender for user mapping information requires additional tasks besides creating a Syslog Parse profile.
• Regex Identifier—Use Event Regex, Username Regex, and Address Regex to specify regular expressions (regex) that describe search patterns for identifying and extracting user mapping information from syslog messages. The firewall uses the regex to match authentication or logout events in syslog messages and to match the usernames and IP addresses within matching messages.
• Field Identifier—Use the Event String, Username Prefix, Username Delimiter, Address Prefix, Address Delimiter, and Addresses Per Log fields to specify strings for matching the authentication or logout event and for identifying the user mapping information in syslog messages. Enter the regex for identifying successful authentication or logout events. For the example message used with this table, the regex (authentication\ success) {1} extracts the first {1} instance of the string authentication success. The backslash before the space is a standard regex escape character that instructs the regex engine not to treat the space as a special character. Enter the regex for identifying the username field in authentication success or logout messages. For the example message used with this table, the regex User:([a-zA-Z0-9\\\._]+) would match the string User:johndoe_4 and extract acme\johndoe1 as the username. Enter the regex to identify the IP address portion of authentication success or logout messages. In the example message used with this table, the regular expression Source:([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}) matches the IPv4 address Source:192.168.0.212 and adds 192.168.0.212 as the IP address in the username mapping. Enter the matching string to identify the beginning of the username field within authentication or logout syslog messages. The field does not support regex expressions such as \s (for a space) or \t (for a tab). In the example message used with this table, User: identifies the start of the username field. Enter a matching string to identify the start of the IP address field in syslog messages. The field does not support regex expressions such as \s (for a space) or \t (for a tab). In the example message used with this table, Source: identifies the start of the address field. Enter the matching string that marks the end of the IP address field within authentication success or logout messages. For example, enter \n to indicate the delimiter is a line break.