'\" te .\" Copyright (c) 2003, Sun Microsystems, Inc. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. .\" See the License for the specific language governing permissions and limitations under the License. When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with .\" the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] .TH PRAUDIT 1M "Jul 26, 2009" .SH NAME praudit \- print contents of an audit trail file .SH SYNOPSIS .LP .nf \fBpraudit\fR [\fB-lrsx\fR] [\fB-d\fR\fIdel\fR] [\fIfilename\fR]... .fi .SH DESCRIPTION .sp .LP \fBpraudit\fR reads the listed \fIfilename\fRs (or standard input, if no \fIfilename\fR is specified) and interprets the data as audit trail records as defined in \fBaudit.log\fR(4). By default, times, user and group \fBIDs\fR (UIDs and \fBGIDs,\fR respectively) are converted to their \fBASCII\fR representation. Record type and event fields are converted to their \fBASCII\fR representation. A maximum of 100 audit files can be specified on the command line. .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .na \fB\fB-d\fR\fIdel\fR\fR .ad .sp .6 .RS 4n Use \fIdel\fR as the field delimiter instead of the default delimiter, which is the comma. If \fIdel\fR has special meaning for the shell, it must be quoted. The maximum size of a delimiter is three characters. The delimiter is not meaningful and is not used when the \fB-x\fR option is specified. .RE .sp .ne 2 .na \fB\fB-l\fR\fR .ad .sp .6 .RS 4n Print one line per record. .RE .sp .ne 2 .na \fB\fB-r\fR\fR .ad .sp .6 .RS 4n Print records in their raw form. Times, \fBUIDs,\fR \fBGIDs,\fR record types, and events are displayed as integers. This option is useful when naming services are offline. The \fB-r\fR option and the \fB-s\fR option are exclusive. If both are used, a format usage error message is output. .RE .sp .ne 2 .na \fB\fB-s\fR\fR .ad .sp .6 .RS 4n Display records in their short form. Numeric fields' ASCII equivalents are looked up by means of the sources specified in the \fB/etc/nsswitch.conf\fR file (see \fBnsswitch.conf\fR(4)). All numeric fields are converted to ASCII and then displayed. The short \fBASCII\fR representations for the record type and event fields are used. This option and the \fB-r\fR option are exclusive. If both are used, a format usage error message is output. .RE .sp .ne 2 .na \fB\fB-x\fR\fR .ad .sp .6 .RS 4n Print records in XML form. Tags are included in the output to identify tokens and fields within tokens. Output begins with a valid XML prolog, which includes identification of the DTD which can be used to parse the XML. .RE .SH FILES .sp .ne 2 .na \fB\fB/etc/security/audit_event\fR\fR .ad .sp .6 .RS 4n Audit event definition and class mappings. .RE .sp .ne 2 .na \fB\fB/etc/security/audit_class\fR\fR .ad .sp .6 .RS 4n Audit class definitions. .RE .sp .ne 2 .na \fB\fB/usr/share/lib/xml/dtd\fR\fR .ad .sp .6 .RS 4n Directory containing the verisioned DTD file referenced in XML output, for example, \fBadt_record.dtd.1\fR. .RE .sp .ne 2 .na \fB\fB/usr/share/lib/xml/style\fR\fR .ad .sp .6 .RS 4n Directory containing the versioned XSL file referenced in XML output, for example, \fBadt_record.xsl.1\fR. .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS box; c | c l | l . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Interface Stability See below .TE .sp .LP The command stability is evolving. The output format is unstable. .SH SEE ALSO .sp .LP \fBbsmconv\fR(1M), \fBgetent\fR(1M), \fBaudit\fR(2), \fBgetauditflags\fR(3BSM), \fBgetpwuid\fR(3C), \fBgethostbyaddr\fR(3NSL), \fBethers\fR(3SOCKET), \fBgetipnodebyaddr\fR(3SOCKET), \fBaudit.log\fR(4), \fBaudit_class\fR(4), \fBaudit_event\fR(4), \fBgroup\fR(4), \fBnsswitch.conf\fR(4), \fBpasswd\fR(4), \fBattributes\fR(5) .sp .LP See the section on Solaris Auditing in \fISystem Administration Guide: Security Services\fR. .SH NOTES .sp .LP This functionality is available only if the Solaris Auditing feature has been enabled. See \fBbsmconv\fR(1M) for more information.