diff --git a/.env b/.env deleted file mode 100644 index 9eb107d..0000000 --- a/.env +++ /dev/null @@ -1,8 +0,0 @@ -# ParseLogCLI Global Environment Configuration -# Generated on 2026-06-09 - -# Path to the MaxMind GeoLite2 City Database binary -DB_PATH=data/GeoLite2-City.mmdb - -# Absolute or relative path to the server access logs target file -LOG_PATH=test_logs/access.log.txt diff --git a/.gitignore b/.gitignore index b607033..dc32387 100644 --- a/.gitignore +++ b/.gitignore @@ -18,8 +18,6 @@ generated/ *.so *.dylib *.dll -*.exe -LumberJack # ========================================== # Language Server & IDE Support (Arch Linux / Dev Tools) @@ -46,5 +44,5 @@ compile_commands.json # ========================================== # Sensitive Files # ========================================== -*.env +.env .env diff --git a/LumberJack b/LumberJack new file mode 100755 index 0000000..6925b76 Binary files /dev/null and b/LumberJack differ diff --git a/README.md b/README.md index 32c7e50..9062ab7 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,7 @@ LumberJack TUI takes in an Apache2 access log file and provides an interactive interface to check your logs. -REQUIREMENTS: -- Access to a GeoLite2-City.mmdb database file. - * The signup page is provided here: - https://dev.maxmind.com/geoip/geolite2-free-geolocation-data/ - NOTES: -- The TUI will ask for the access.log file location and the GeoLite2-City.mmdb file location on startup. It will then create a local .env 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 .env file with the locations you provided. If you mess up, just change them in the file for now. * I have not tried using the GeoLite2-Country.mmdb file and do not know if it will crash the application... diff --git a/main.cpp b/main.cpp index ea0a83f..c92c745 100644 --- a/main.cpp +++ b/main.cpp @@ -27,7 +27,7 @@ int main() { // ── 1. App State ───────────────────────────────────────────────────────── bool setup_complete = false; std::string log_file_path = ""; - std::string mmdb_path = ""; + std::string mmdb_path = "ip_data/GeoLite2-City.mmdb"; std::string search_query = ""; if (check_for_env()) {