Skip to content

Commit

Permalink
Add VERY basic find-interesting-logs
Browse files Browse the repository at this point in the history
  • Loading branch information
strugee committed Nov 30, 2017
1 parent 61f109b commit 2bdfa1b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions set-perms.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

chmod 755 usr/local/bin/find-interesting-logs
chown root:wheel usr/local/bin/find-interesting-logs
chmod 644 usr/local/etc/torrc
chown root:wheel usr/local/etc/torrc
chmod 555 usr/local/etc/rc.d/tor
Expand Down
13 changes: 13 additions & 0 deletions usr/local/bin/find-interesting-logs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh -

cd /var/log

# TODO add dmesg logs?
# TODO sendmail.st and utx.* are apparently garbage?
# TODO investigate setuid.today
# TODO normalize Tor log dates

# sed '' tor/notices.log
cat auth.log cron debug.log devd.log lpd-errs maillog messages mount.today ppp.log security userlog xferlog \
| filter-other-days \
| grep -v 'logfile first created' \

0 comments on commit 2bdfa1b

Please sign in to comment.