Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Ensure waf.{logdata,message} are escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
fgsch committed Feb 19, 2019
1 parent fd4f9c4 commit c7642ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config_examples/waflyctl.toml.example
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ format = '''{\"type\":\"req\",\"service_id\":\"%{req.service_id}V\",\"request_id
name = "waflogs"
address = "address"
port = 514
format = '''{\"type\":\"waf\",\"request_id\":\"%{req.http.fastly-soc-x-request-id}V\",\"rule_id\":\"%{waf.rule_id}V\",\"severity\":\"%{waf.severity}V\",\"anomaly_score\":\"%{waf.anomaly_score}V\",\"logdata\":\"%{cstr_escape(waf.logdata)}V\",\"waf_message\":\"%{waf.message}V\"}'''
format = '''{\"type\":\"waf\",\"request_id\":\"%{req.http.fastly-soc-x-request-id}V\",\"rule_id\":\"%{waf.rule_id}V\",\"severity\":\"%{waf.severity}V\",\"anomaly_score\":\"%{waf.anomaly_score}V\",\"logdata\":\"%{json.escape(waf.logdata)}V\",\"waf_message\":\"%{json.escape(waf.message)}V\"}'''


[vclsnippet]
Expand Down

0 comments on commit c7642ec

Please sign in to comment.