Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lua m.log(2, "4444") where is the log message? #3035

Open
leveryd opened this issue Jan 15, 2024 · 0 comments
Open

lua m.log(2, "4444") where is the log message? #3035

leveryd opened this issue Jan 15, 2024 · 0 comments

Comments

@leveryd
Copy link

leveryd commented Jan 15, 2024

docker run --privileged --rm -ti owasp/modsecurity-crs:3.3.5-nginx-alpine-202401080101

/etc/modsecurity.d # grep SecRule setup.conf
SecRuleScript "/tmp/2.lua" "id:23333,deny"

/etc/modsecurity.d/owasp-crs # cat /tmp/2.lua
function main()
    --error("4444")
    --print("4444")
    m.log(1,"4444")
    m.log(2,"4444")
    return nil;
end

I am sure lua script have been exectued, but i checked "console output"、"nginx error log", and can not found the log message "4444".

So where is the log message?

coreruleset/modsecurity-crs-docker#185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants