From 9d4a7db8409ad23502c791764cfb4f78131422b7 Mon Sep 17 00:00:00 2001 From: rapturate Date: Mon, 15 Jun 2026 18:44:45 -0400 Subject: [PATCH] Checked if my gitea.log file is readable by LumberJack and lo and behold it is so I updated the README.md to include a log line formatting example. --- README.md | 8 +++++--- lumberjack.config | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2957c27..e0ee748 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -LumberJack TUI takes in an Apache2 access log file and provides an interactive interface to check your logs. +LumberJack TUI takes in an access log file and provides an interactive interface to check your logs. MacOS Users: - Unfortunately, I don't want to have to setup my pc to build your executable for you. So, the CMakeLists.txt file will autobuild an executable for you :) @@ -7,9 +7,11 @@ All Other Users: - I have packaged executables into the released .zip files NOTES: -- The TUI will ask for the access.log file location and the GeoLite2-City.mmdb file location on startup. It will then create local lumberjack.config file with the locations you provided. If you mess up, just change them in the file for now. +- The TUI will ask for the access.log file location and the GeoLite2-City.mmdb file location on startup. It will then create local lumberjack.config file with the locations you provided. If you mess up, just change them in the lumberjack.config for now. * I have not tried using the GeoLite2-Country.mmdb file and do not know if it will crash the application... - +- Log line format example: + 172.71.245.109 - - [23/Jan/2016:09:49:24 +0100] "GET /favicon.ico HTTP/1.1" 301 642 "-" "Mozilla/5.0 (Linux; Android 10; arm64) AppleWebKit/537.36 (KHTML, like Gecko) Safari/15.0.0.0 Safari/537.36" + * This is the only format I have setup for the regex so far. It works on both my Apache2 and Gitea access logs but I do not know a whole lot about access log formats. FUTURE CHANGES: - Ban IP functionality diff --git a/lumberjack.config b/lumberjack.config index 241a9e0..9043e38 100644 --- a/lumberjack.config +++ b/lumberjack.config @@ -5,4 +5,4 @@ DB_PATH=./data/GeoLite2-City.mmdb # Absolute or relative path to the server access logs target file -LOG_PATH=./test_logs/access.log +LOG_PATH=./test_logs/gitea.log