diff --git a/README b/README index b56f6a8..86ff4df 100644 --- a/README +++ b/README @@ -1,5 +1,4 @@ # geolog Tool to monitor the internet backgroung radiation. - This readme is still to be done. diff --git a/backend.py b/backend.py index f431c39..c7cca52 100644 --- a/backend.py +++ b/backend.py @@ -90,7 +90,7 @@ def load_logs_binary(service: Optional[str], start: Optional[str], end: Optional end_dt = pd.to_datetime(end) if end else None records = [] - with open("access.log", "r", errors="ignore") as f: + with open("file.log", "r", errors="ignore") as f: lines = f.readlines() start_idx = find_line_index(lines, start_dt, seek_start=True) if start_dt else 0 @@ -115,7 +115,6 @@ def load_logs_binary(service: Optional[str], start: Optional[str], end: Optional continue records.append({ "timestamp": ts.isoformat(), - "ip": ip, "path": path, "lat": lat, "lon": lon @@ -141,7 +140,7 @@ def get_connections( # ---------------------------- @app.get("/health") def health(): - size = os.path.getsize("access.log") + size = os.path.getsize("file.log") return {"status": "ok", "log_size_bytes": size, "cached_ips": len(geo_cache)} # ---------------------------- diff --git a/index.html b/index.html index d018c51..245f64d 100644 --- a/index.html +++ b/index.html @@ -50,7 +50,7 @@