diff --git a/tlog-f95c691-devuan.tar.xz b/tlog-f95c691-devuan.tar.xz deleted file mode 100644 index 3913c80..0000000 Binary files a/tlog-f95c691-devuan.tar.xz and /dev/null differ diff --git a/tlog-f95c691-slackware.tar.xz b/tlog-f95c691-slackware.tar.xz deleted file mode 100644 index 1530dc4..0000000 Binary files a/tlog-f95c691-slackware.tar.xz and /dev/null differ diff --git a/tlog-session-list b/tlog-session-list deleted file mode 100755 index 60bdf98..0000000 --- a/tlog-session-list +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env python3 - -import sys -import json -import datetime -import argparse - -def format_timestamp(ts): - return datetime.datetime.fromtimestamp(ts).strftime('%Y-%m-%d %H:%M:%S') - -def main(): - parser = argparse.ArgumentParser(description="List Tlog session metadata") - parser.add_argument("file", help="Path to the tlog session JSON file") - parser.add_argument("--user", help="Filter by username") - args = parser.parse_args() - - sessions = {} - - with open(args.file, 'r') as f: - for line in f: - try: - record = json.loads(line) - rec_id = record.get('rec') - user = record.get('user', 'unknown') - - if not rec_id: - continue - - if args.user and user != args.user: - continue - - if rec_id not in sessions: - timestamp = record.get('time', 0) - sessions[rec_id] = { - 'time': timestamp, - 'formatted_time': format_timestamp(timestamp), - 'rec': rec_id, - 'host': record.get('host', 'unknown'), - 'user': user - } - except json.JSONDecodeError: - continue # skip bad lines - - sorted_sessions = sorted(sessions.values(), key=lambda s: s['time'], reverse=True) - - print(f"{'Time':<20} | {'Session ID':<50} | {'Hostname':<25} | {'User'}") - print('-' * 120) - for sess in sorted_sessions: - print(f"{sess['formatted_time']:<20} | {sess['rec']:<50} | {sess['host']:<25} | {sess['user']}") - -if __name__ == "__main__": - main() diff --git a/tlog.README b/tlog.README deleted file mode 100644 index 2d2a022..0000000 --- a/tlog.README +++ /dev/null @@ -1,5 +0,0 @@ -The tlog tar archive contains a statically linked version of tlog, installed -into /opt (/etc/tlog as sysconfdir). - -It should be untarred in / to install tlog onto the system. -A symlink from tlog-rec-session should be placed in /usr/bin for sssd.