You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
waflyctl --version in recent releases or brew info waflyctl output.
Fastly WAF Control Tool version: 0.2.1 built on 2018-11-09T16:21:56Z by #team-soc
Description of the problem. What is happening that shouldn't?
I did not want to have waflyctl create a logging endpoint. After discovering that the [weblog] and [waflog] sections could not be removed from the toml file, I attempted to use this configuration:
[weblog]
name = "bogus-weblogs"
address = "10.0.0.1"
port = 514
tlscacert = ""
tlshostname = ""
format = ""
[waflog]
name = "bogus-waflogs"
address = "10.0.0.1"
port = 514
tlscacert = ""
tlshostname = ""
format = ""
Unfortunately, the empty format was magically transformed into the default format, i.e. %h %l %u %t "%r" %>s %b, which became an issue for the [waflog] configuration, but only after it was moved to waf_debug_log since some of the parameters in the default logging format are not accessible there. See below.
5. Description of the expected behaviour.
I expected to have an empty logging format since that is what I supplied, but that did not happen.
6. Exact steps to reproduce the error.
Put the above configuration into a toml file and run waflyctl.
Additional Information:
Logs showing errors or behaviour.
Error messages from the Fastly UI after VCL validation failed:
Variable `resp.status` not accessible in method `vcl_miss`
...in function `waf_debug_log`
...called from `waf_ruleset`
...called from `waf`
...called from `vcl_miss`
...which is the `vcl_miss` method
at: (input Line 9898 Pos 245)
log {"syslog XXXXXXXXXX bogus-waflogs :: "} req.http.Fastly-Client-IP {" "-" "-" "} "[" strftime({"%d/%b/%Y:%H:%M:%S %z"}, time.start) "]" {" ""} cstr_escape(req.request) " " cstr_escape(req.url) " " cstr_escape(req.proto) {"" "} resp.status " " regsub(resp.body_bytes_written, "^0$", {""-""});
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------###########-----------------------------------------------------
Steps which have been taken to try address the issue.
I worked around my immediate problem by not using an empty logging format:
format = "{\"bogus\":true}"
Other data which indicates what may be causing the issue.
N/A
Stack trace if any error is seen.
N/A
The text was updated successfully, but these errors were encountered:
A flag would be perfect, but you may want to have a flag to ENABLE logging
vs. one to DISABLE it. Since waflyctl has been released to the masses and
only supports the one specific endpoint used by Fastly, the enabling of the
logging may be the exception.
Either way, as long as do not have to enable logging, it will be an
improvement.
Thanks!
*Stephen Kiel* | Security Solutions | 908-391-4052
fastly.com | @fastly <https://twitter.com/fastly> | LinkedIn
<http://www.linkedin.com/company/fastly>
On Wed, May 22, 2019 at 8:10 AM Ed Thurgood ***@***.***> wrote:
@minus27 <https://github.com/minus27> Would a CLI parameter which omits
logging solve this?
Perhaps --omit-logging
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#71?email_source=notifications&email_token=AH6UMWNO7W43KCJY3NFEBZTPWUZ3FA5CNFSM4GLTUK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV622LA#issuecomment-494775596>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AH6UMWKY42IOEMDDWSNKCFLPWUZ3FANCNFSM4GLTUK3Q>
.
Sounds to me that updating the config file validation makes sense. That way you're essentially able to change the default functionality and not have to explicitly opt-out of logs.
[waflog] logging format cannot be empty
Overview
N/A
go version
outputN/A
waflyctl --version
in recent releases orbrew info waflyctl
output.I did not want to have
waflyctl
create a logging endpoint. After discovering that the[weblog]
and[waflog]
sections could not be removed from the toml file, I attempted to use this configuration:Unfortunately, the empty format was magically transformed into the default format, i.e.
%h %l %u %t "%r" %>s %b
, which became an issue for the[waflog]
configuration, but only after it was moved towaf_debug_log
since some of the parameters in the default logging format are not accessible there. See below.5. Description of the expected behaviour.
I expected to have an empty logging format since that is what I supplied, but that did not happen.
6. Exact steps to reproduce the error.
Put the above configuration into a toml file and run
waflyctl
.Additional Information:
Error messages from the Fastly UI after VCL validation failed:
I worked around my immediate problem by not using an empty logging format:
N/A
N/A
The text was updated successfully, but these errors were encountered: