mirror of
https://github.com/potats0/lua-resty-coraza.git
synced 2025-06-28 17:41:00 +03:00
Created Debug (markdown)
parent
add0c8e2a4
commit
044659a358
48
Debug.md
Normal file
48
Debug.md
Normal file
@ -0,0 +1,48 @@
|
||||
if you open a issues , or check running log, please turn on the debug log level.
|
||||
|
||||
```
|
||||
error_log logs/error.log debug;
|
||||
```
|
||||
|
||||
error.log
|
||||
```
|
||||
2023/07/06 16:57:14 [notice] 10240#239143: using the "kqueue" event method
|
||||
2023/07/06 16:57:14 [notice] 10240#239143: openresty/1.21.4.1
|
||||
2023/07/06 16:57:14 [notice] 10240#239143: built by clang 14.0.0 (clang-1400.0.29.202)
|
||||
2023/07/06 16:57:14 [notice] 10240#239143: OS: Darwin 22.1.0
|
||||
2023/07/06 16:57:14 [notice] 10240#239143: hw.ncpu: 8
|
||||
2023/07/06 16:57:14 [notice] 10240#239143: net.inet.tcp.sendspace: 131072
|
||||
2023/07/06 16:57:14 [notice] 10240#239143: kern.ipc.somaxconn: 128
|
||||
2023/07/06 16:57:14 [notice] 10240#239143: getrlimit(RLIMIT_NOFILE): 256:9223372036854775807
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *1 [lua] coraza.lua:26: PID: 10241 phrase: init_worker lua-resty-coraza: platform OSX , loading libcoraza...
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *1 [lua] coraza.lua:37: PID: 10241 phrase: init_worker lua-resty-coraza: loading libcoraza with /usr/local/lib/libcoraza.dylib successfully
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *1 [lua] coraza.lua:108: create_waf(): PID: 10241 phrase: init_worker lua-resty-coraza: Success to creat new waf
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *1 [lua] coraza.lua:126: rules_add_file(): PID: 10241 phrase: init_worker lua-resty-coraza: Success to load rule file with /Users/mac/lua-resty-coraza/t/coraza.conf
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *1 [lua] coraza.lua:138: rules_add(): PID: 10241 phrase: init_worker lua-resty-coraza: Success to load rule with Include /Users/mac/lua-resty-coraza/t/coreruleset/crs-setup.conf.example
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *1 [lua] coraza.lua:138: rules_add(): PID: 10241 phrase: init_worker lua-resty-coraza: Success to load rule with Include /t/coreruleset/rules/*.conf
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:150: new_transaction(): PID: 10241 phrase: access lua-resty-coraza: Success to creat new transaction id c3b9c4c63dd7b89a2649470900c54225
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:164: process_connection(): PID: 10241 phrase: access lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_process_connection with sourceAddress:127.0.0.1 clientPort:64587 serverHost:127.0.0.1 serverPort:1984
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:179: process_uri(): PID: 10241 phrase: access lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_process_uri with POST /t/shell.php HTTP/1.1
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:193: add_request_header(): PID: 10241 phrase: access lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_add_request_header with Connection:close
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:193: add_request_header(): PID: 10241 phrase: access lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_add_request_header with Content-Length:16
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:193: add_request_header(): PID: 10241 phrase: access lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_add_request_header with Host:localhost
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:218: process_request_headers(): PID: 10241 phrase: access lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_process_request_headers
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:260: append_request_body(): PID: 10241 phrase: access lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_append_request_body with aaaaaaaaa=aaaaaa
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:285: process_request_body(): PID: 10241 phrase: access lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_process_request_body
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:235: intervention(): PID: 10241 phrase: access lua-resty-coraza: Failed to disrupt transaction c3b9c4c63dd7b89a2649470900c54225
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:313: add_response_header(): PID: 10241 phrase: header_filter lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_add_response_header with connection:close
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:313: add_response_header(): PID: 10241 phrase: header_filter lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_add_response_header with content-type:text/plain
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:299: process_response_headers(): PID: 10241 phrase: header_filter lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_process_response_headers with 200 HTTP 1.1
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:235: intervention(): PID: 10241 phrase: header_filter lua-resty-coraza: Failed to disrupt transaction c3b9c4c63dd7b89a2649470900c54225
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:352: process_logging(): PID: 10241 phrase: log lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_process_logging
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:342: get_matched_logmsg(): PID: 10241 phrase: log lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 uccess to invoke coraza_get_matched_logmsg
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:345: get_matched_logmsg(): PID: 10241 phrase: log lua-resty-coraza: logmsg is []
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:66: do_free_transaction(): PID: 10241 phrase: log lua-resty-coraza: transaction c3b9c4c63dd7b89a2649470900c54225 is freed by coraza_free_transaction
|
||||
2023/07/06 16:57:14 [debug] 10241#239144: *2 [lua] coraza.lua:248: free_transaction(): PID: 10241 phrase: log lua-resty-coraza: Transaction c3b9c4c63dd7b89a2649470900c54225 success to invoke coraza_free_transaction
|
||||
2023/07/06 16:57:14 [notice] 10241#239144: signal 3 (SIGQUIT) received from 10237, shutting down
|
||||
2023/07/06 16:57:14 [info] 10241#239144: kevent() failed (4: Interrupted system call)
|
||||
2023/07/06 16:57:14 [notice] 10241#239144: gracefully shutting down
|
||||
2023/07/06 16:57:14 [notice] 10241#239144: exiting
|
||||
2023/07/06 16:57:14 [notice] 10241#239144: exit
|
||||
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user