Opened 7 years ago

Last modified 16 months ago

#4445 new enhancement

Gather WARN and ERROR log lines from bwauth children in aggregate.py

Reported by: mikeperry Owned by:
Priority: Medium Milestone:
Component: Core Tor/Torflow Version:
Severity: Normal Keywords: bwauth-logging, easy, intro
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

Right now, probably no one is monitoring the bw auth children for WARNs and ERRORs. We should have them optionally get grepped for and echoed by the aggregate.py script, whose output gets sent to admins via a cron email.

Child Tickets

Change History (8)

comment:1 Changed 7 years ago by Sebastian

yes please!

comment:2 Changed 7 years ago by mikeperry

Actually, this is even simpler than editing aggregate.py. We should just add a grep to cron.sh that only egrep's for the past hour's worth of logs using shell expansion. Something like:

grep "`date +"%b %d %H:"`" $SCANNER_DIR/data/scanner.[1-4]/bw.log | egrep "WARN|ERROR"

I suspect we're going to want to finish #4079 first though. After looking at some current logs, these children sure are noisy.

comment:3 Changed 7 years ago by mikeperry

Owner: changed from mikeperry to aagbsn
Status: newassigned

comment:4 Changed 7 years ago by aagbsn

Keywords: bwauth-logging added

comment:5 Changed 17 months ago by teor

Keywords: easy intro added
Severity: Normal

This is something we could do now, in fact, it's something I have custom scripts for, and they work, and I've steadily been fixing logging bugs.

When we get the most recent crop of minor bugfixes merged, we should check the logs, fix any remaining issues, and then implement this ticket.

comment:6 Changed 17 months ago by teor

Priority: HighMedium

Priorities and Severities in torflow are meaningless, setting them all to Medium/Normal.

comment:7 Changed 17 months ago by teor

Owner: aagbsn deleted

aagbsn was the default owner, unassigning

comment:8 Changed 16 months ago by teor

Status: assignednew

Mark all tickets that are assigned to nobody as "new".

Note: See TracTickets for help on using tickets.