Adding static strings/separators into log format
If you’re looking to insert a separator ("|") or other arbitrary string into the syslog endpoint format:
- Create a new request header in the UI (Configure–> Contents -->Headers) with the following fields filled in:
- Action: set
- Destination: any suitable header name (ie,
http.X-Separator
) - Source: “whatever special character/string you want” (ie, “|” )
- Once that’s created with the value you want, reference that header variable in the log format box (ie, in the example above, you would use
req.http.X-Separator
)
Please sign in to leave a comment.
Comments
0 comments