[rt-users] Auditing ticket accesses

Raed El-Hames rfh at vialtus.com
Fri Apr 24 13:58:59 EDT 2009


A while back I added a ticket custom field with Enter multiple values , 
and then a line lines of code in  Ticket/Display.html

 if (! $session{'pull'}{$id})
        #$RT::Logger->debug("someone viewing this ticket ". 

        $session{'pull'}{$id}= 1;

Where Pulled_By is the custom field name, the session bit is to avoid 
adding a value on refresh etc, in our case we are not bothered how many 
times someone admired a ticket during a session ..
The above lines need to be after a ticket is Loaded, ie after
} else {
    $TicketObj ||= LoadTicket($ARGS{'id'});

The proper way to do this is to add this code to callback rather than 
editing Display.html


Flynn, Timothy J wrote:
> I am looking for a way to record when someone views a ticket and log it
> somehow.  I know the url accesses are in apache logs.  I am looking for
> something long term that people could easily see when a ticket was
> accessed, by who, and when.  I was thinking about a scrip to do this to
> record instances to a ticket itself.  Also the RT logfile came to mind
> but it is full of other messages and errors.  Has anyone done something
> similar?
> RT 3.8.2
> Thanks!
> -Tim
> Notice: This UI Health Care e-mail (including attachments) is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential and may be legally privileged.  If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited.  Please reply to the sender that you have received the message in error, then delete it.  Thank you.
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media.
> Buy a copy at http://rtbook.bestpractical.com

More information about the rt-users mailing list