public inbox for linux-audit@redhat.com
 help / color / mirror / Atom feed
From: "Miloslav Trmač" <mitr@redhat.com>
To: LC Bruzenak <lenny@magitekltd.com>
Cc: Linux Audit <linux-audit@redhat.com>
Subject: Re: audit-viewer error
Date: Mon, 18 Aug 2008 22:41:36 +0200	[thread overview]
Message-ID: <1219092096.7984.21.camel@amilo> (raw)
In-Reply-To: <1218654645.7022.147.camel@homeserver>

Hello,
LC Bruzenak píše v St 13. 08. 2008 v 14:10 -0500:
> My audit-viewer (audit-viewer-0.3-1) crashes at startup with the
> following:
<SNIP>
>   File "/usr/share/audit-viewer/event_source.py", line 135, in
> read_events
>     e = events[(ts.serial, ts.sec, ts.milli)]
> AttributeError: 'NoneType' object has no attribute 'serial'
I'd guess a line in the audit log is malformed, or auparse cannot parse
a valid line.

> I did see some ordering inconsistency (probably normal) - from "ausearch
> -ts today -i" (note the second event set - the time and auid are not
> consecutive as with the others). Surrounding events concatenated for
> brevity:
The way I understand the code, record order should not be relevant.

> Any thoughts as to what I can do? 
> I guess I can selectively move audit.log files out of the directory
> until I can see which one has data causing the problem...
That part's easy - the file the "Change event source" dialog shows.  

Finding the relevant line might be more work, the simplest brute-force
solution would probably be a binary search (discarding half of the lines
contained in the log file at a time to figure out which half contains
the malformed line).  If the data is not confidential, you can also just
send it to me and I'll try to reproduce the problem.
	Mirek

      reply	other threads:[~2008-08-18 20:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-13 19:10 audit-viewer error LC Bruzenak
2008-08-18 20:41 ` Miloslav Trmač [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1219092096.7984.21.camel@amilo \
    --to=mitr@redhat.com \
    --cc=lenny@magitekltd.com \
    --cc=linux-audit@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox