<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Audit Trail Format in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-trail-format/m-p/2557287#M874153</link>
    <description>I seem to have the need for a similar program.  &lt;BR /&gt;&lt;BR /&gt;I have not gotten as far as you.  Were you able to resolve this?</description>
    <pubDate>Fri, 16 Jul 2004 15:31:27 GMT</pubDate>
    <dc:creator>Rob Viets</dc:creator>
    <dc:date>2004-07-16T15:31:27Z</dc:date>
    <item>
      <title>Audit Trail Format</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-trail-format/m-p/2557286#M874152</link>
      <description>Greetings,&lt;BR /&gt;&lt;BR /&gt;I am attempting to write a program to read the Hewlett-Packard HP-UX audit&lt;BR /&gt;trail directly, rather than through the audisp program.&lt;BR /&gt;&lt;BR /&gt;As far as I can tell all entries within the trail start with an audit_hdr&lt;BR /&gt;structure, as defined in 'sys/audit.h', I have sucesfully written a program&lt;BR /&gt;that reads the header structure for all entries.&lt;BR /&gt;&lt;BR /&gt;For every process there will be one record as follows,&lt;BR /&gt;&lt;BR /&gt;    struct audit_hdr header;&lt;BR /&gt;    struct pir_body pir;&lt;BR /&gt;&lt;BR /&gt;again I have sucessfully written a program that reads such entries and stores&lt;BR /&gt;the pir_body structure to match with following records.  I have also been&lt;BR /&gt;able to determine the number of and type of the event return values and&lt;BR /&gt;parameters by matching the event type with the aud_flag structure held within&lt;BR /&gt;the audparam table, as defined in 'sys/audparam.h'.  I am however having&lt;BR /&gt;difficulty in reading the 'complex' values from the audit trail.  According&lt;BR /&gt;to 'sys/audit.h' the audit_filename parameter structure is defined as,&lt;BR /&gt;&lt;BR /&gt;    u_long apn_cnode;&lt;BR /&gt;    u_long apn_dev;&lt;BR /&gt;    u_long apn_inode;&lt;BR /&gt;    u_short apn_len;&lt;BR /&gt;    char apn_path[MAXPATHLEN];&lt;BR /&gt;    struct audit_filename *next;&lt;BR /&gt;&lt;BR /&gt;however the parameter structure within the audit trail is of variable length&lt;BR /&gt;and in most cases far smaller than the structure above.  I imagine such a&lt;BR /&gt;structure would be composed of a header, containing the cnode, device, inode&lt;BR /&gt;and path length, and a body containg the path, is this correct and what is&lt;BR /&gt;the header structure definition?  I imagine also that the audit_string&lt;BR /&gt;paramater structure defined as,&lt;BR /&gt;&lt;BR /&gt;    unsigned a_strlen;&lt;BR /&gt;    char a_str[MAXAUDSTRING];&lt;BR /&gt;    struct audit_string *next;&lt;BR /&gt;&lt;BR /&gt;in 'sys/audit.h' would be composed in a similar way to the filename paramater&lt;BR /&gt;structure, again what is the header structure definition?&lt;BR /&gt;&lt;BR /&gt;As this is, as far as I know, not documented anywhere I am not to hopeful of&lt;BR /&gt;an answer unless of course someone from Hewlett-Packard is reading.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Signed&lt;BR /&gt;Andrew Kay</description>
      <pubDate>Wed, 25 Jul 2001 23:24:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-trail-format/m-p/2557286#M874152</guid>
      <dc:creator>Andrew Kay_1</dc:creator>
      <dc:date>2001-07-25T23:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Trail Format</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-trail-format/m-p/2557287#M874153</link>
      <description>I seem to have the need for a similar program.  &lt;BR /&gt;&lt;BR /&gt;I have not gotten as far as you.  Were you able to resolve this?</description>
      <pubDate>Fri, 16 Jul 2004 15:31:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-trail-format/m-p/2557287#M874153</guid>
      <dc:creator>Rob Viets</dc:creator>
      <dc:date>2004-07-16T15:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Audit Trail Format</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/audit-trail-format/m-p/2557288#M874154</link>
      <description>Hai,&lt;BR /&gt;&lt;BR /&gt; We can audit the audit logs using audisp easily. There are all features to audit the logs with audisp ( by enabling the audting for the feature in SAM )&lt;BR /&gt; &lt;BR /&gt; We can audit the process details using audisp. Go to SAM --&amp;gt; auditing and security --&amp;gt; audited events --&amp;gt; process ( event type ). Try to enable the success and failure. Using audisp -e process,we can audit the process related informations easily. &lt;BR /&gt; &lt;BR /&gt; To know audit file information use audsys command without any argument or /etc/rc.config.d/auditing file to know the auditing file details.&lt;BR /&gt; &lt;BR /&gt; Let us see why audit_filename structure is not defined as pir_header structure with pir_body,pir_t and pir_header ( with so many levels )&lt;BR /&gt; &lt;BR /&gt; IF we are going to audit process then we have monitor a lot of process. process informations are stored with audit header for that process on the audit logs. General process oriented headers ( eventname idetification header is stored in the hdr[20] informations ) and process record structure pointer in the pir_header structure. Process record header and process information structure is used in the pir_t structure ( pid identification record ). Proces informations are stored in the pir_body structure.&lt;BR /&gt; &lt;BR /&gt; pri_header --&amp;gt; pir_t --&amp;gt; pir_body structure links are needed to handle the process events and then process record informations and process informations.&lt;BR /&gt; &lt;BR /&gt; Audit file management structure is not related to auditing events ( process etc ). One major Auditing file and the next file ( replacing auditing file ) is used for auditing the logs. There is no need to have the header informations of auditfilename or filename record structure details. Only audit filename informations are needed. And they are in fixed count not as like events ( process )&lt;BR /&gt; &lt;BR /&gt; All features are included in the audisp,audsys, aud* commands with the support of SAM to control and handle the auditing easily and effectively. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Muthukumar.</description>
      <pubDate>Sat, 17 Jul 2004 10:40:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/audit-trail-format/m-p/2557288#M874154</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-07-17T10:40:47Z</dc:date>
    </item>
  </channel>
</rss>

