Lua scripting
Ask your own questions of a log: write a short script, run it over every entry, and jump to what it finds.
What the video shows
- A web server log with 30,577 entries, and the question: which clients keep failing?
- Tools > Scripts runs a Lua script over every entry in the open log.
- The script says what to look at (a filter that runs before Lua does), reads columns by name in
OnRowfor each entry in order, and emits its results as rows. - The run scans all 30,577 entries in a few hundredths of a second; only the 2,828 failed requests ever reach Lua.
- One client stands out with 1,399 failures. Goto jumps to its first failure in the log.
Log Lion includes a starter script and a template. Scripts are plain .lua files in your Log Lion data folder.