Experience Center
Understanding the Log Stream Content Format
The following information includes specifications and guidelines about the log field format that is used by these log types:
- Audit Logs
- App Connector Metrics
- App Connector Status
- Browser Access
- Private Service Edge Metrics
- Private Service Edge Status
- User Activity
- User Status
- Web Inspection
While configuring your log receiver, you can edit the default Log Stream Content to include customized log fields. For example, when configuring your log receiver using the App Connector Status log type, the ConnectionLogType
field can be added as a custom log field to distinguish between AppProtection and event logs. The expected values for this field are event_log
and inspection_log
. The supported log field format specification must be included (i.e., %[OPT]s, %[OPT]j, %[OPT]J, %[OPT]d, %[OPT]x, %[OPT]f, %[OPT]o).
Log Field Format Specifications
The field format string contains arbitrary text, with the following escape formats, where [OPT] is an optional field width/precision of the style implemented by printf. So, you can also specify the padding if you want constant width strings. For example:
- %d{LogTimestamp:hh}:%d{LogTimestamp:mm}:%d{LogTimestamp:ss} would appear as: 21:5:0
- %02d{LogTimestamp:hh}:%02d{LogTimestamp:mm}:%02d{LogTimestamp:ss} would appear as: 21:05:00
The <field_name>, as shown below, is substituted by the corresponding value when the log receiver sends logs to the SIEM.
Log Field Format Guidelines
The applicability of the following log field format guidelines and recommendations might vary based on the capabilities of your SIEM:
- Fields must be in the order you want them to appear in the output. If your SIEM can support it, consider using name-value pairs. Some SIEMs, such as Splunk, can automatically parse name-value formats and auto-detect field names regardless of the order. To learn more about third-party SIEM integrations, see Private Applications and Splunk Deployment Guide.
- Field names are case-sensitive.
- The following special characters can be used generate control outputs:
- \t = tab
- \n = newline
- \r = carriage return
- The default Log Stream Content automatically adds a newline (\n) character after the last field. If you have modified the content, you must append at least one newline character after the last field.
- Optionally, you can include static text strings in the output. For example, "User is %s{user_id}, and time is %s{LogTimestamp:time} GMT" would appear as: User is john.doe, and time is Mon Sep 10 10:50:46 2012 GMT