Support #4084
closed
Is there a way to debug the lua script?
Added by Arafat Ali about 4 years ago.
Updated about 4 years ago.
Description
I have seen this closed issue regarding to debugging lua script https://redmine.openinfosecfoundation.org/issues/3384, since it's closed I couldn't ask for clarification. My upgraded question from that previous issue is, how do I read this lua debugging script for example if syntax error is found, where can I read this log file ? I thought it would be at suricata.log but I found no entry there.
- Priority changed from High to Normal
How does your suricata.yaml look like, escpecially the loglevel?
Is this the one ?
logging:
# The default log level: can be overridden in an output section.
# Note that debug level logging will only be emitted if Suricata was
# compiled with the --enable-debug configure option.
#
# This value is overridden by the SC_LOG_LEVEL env var.
default-log-level: notice
Reading from the logging instruction, it said that I need to build suricata with --enable-debug in order to see the runtime error? Normally where would the log file will be located for this runtime error.
Ok, I think I got it, the whole report will be generated only when suricata detected a new suspicious activity, so the init function there won't be running. Solved this issue.
- Status changed from New to Closed
Also available in: Atom
PDF