<?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: Merge Multiple SECURITY.AUDIT$JOURNAL files? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895241#M79901</link>
    <description>Ed, that sound counter-stream.&lt;BR /&gt;It is 'nice' to be able to cut up the log in date ranged section. This allows you to put away older sections. It allows you to mark the really old files as no-backup and make sure only the last one is cauch with incremental backups.&lt;BR /&gt;&lt;BR /&gt;As Ian indicates, why not just report from multiple files.&lt;BR /&gt;&lt;BR /&gt;The security journal is a simple variable length record file. However. It does have a header record, pointing back to the prior file and a cloding record, pointing on to the next file.&lt;BR /&gt;&lt;BR /&gt;So for a proper concatenation you probably should remove those.&lt;BR /&gt;&lt;BR /&gt;So I would try:&lt;BR /&gt;&lt;BR /&gt;$ type tmp%.txt&lt;BR /&gt;TMP1.TXT;1   ! Keep 1, skip last&lt;BR /&gt;aap&lt;BR /&gt;noot&lt;BR /&gt;next&lt;BR /&gt;TMP2.TXT;1   ! Skip 1 and last&lt;BR /&gt;prior&lt;BR /&gt;mies&lt;BR /&gt;teun&lt;BR /&gt;TMP3.TXT;1   ! Skip 1 keep last (still open_&lt;BR /&gt;prio&lt;BR /&gt;vuur&lt;BR /&gt;$ perl -ne "print $rec if ($. &amp;gt; 1); $rec = $_" tmp1.txt &amp;gt; tmp.txt&lt;BR /&gt;$ perl -ne "print $rec if ($. &amp;gt; 2); $rec = $_" tmp2.txt &amp;gt;&amp;gt; tmp.txt&lt;BR /&gt;$ perl -ne "print $_ if ($. &amp;gt; 1)" tmp3.txt &amp;gt;&amp;gt; tmp.txt&lt;BR /&gt;$ type tmp.txt&lt;BR /&gt;aap&lt;BR /&gt;noot&lt;BR /&gt;mies&lt;BR /&gt;vuur&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I woudl also be tempted to dump and analyze those first and last records to recognize them properly instead of expecting them to be there or not.&lt;BR /&gt;&lt;BR /&gt;Groetjes,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
    <pubDate>Thu, 09 Nov 2006 07:37:30 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2006-11-09T07:37:30Z</dc:date>
    <item>
      <title>Merge Multiple SECURITY.AUDIT$JOURNAL files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895236#M79896</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;Is it possible to flawlessly merge multiple security audit logfiles into one?&lt;BR /&gt;&lt;BR /&gt;Then place that resulting file in sys$manager and start security auditing to start adding events to it?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance, Ed.</description>
      <pubDate>Thu, 09 Nov 2006 04:58:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895236#M79896</guid>
      <dc:creator>Edwin R. van der Kaaij</dc:creator>
      <dc:date>2006-11-09T04:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Multiple SECURITY.AUDIT$JOURNAL files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895237#M79897</link>
      <description>I think a plain &lt;BR /&gt;$ convert file1+file2+filen new&lt;BR /&gt;should do.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Thu, 09 Nov 2006 05:29:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895237#M79897</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2006-11-09T05:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Multiple SECURITY.AUDIT$JOURNAL files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895238#M79898</link>
      <description>hmmm, that simple. let me try :o)</description>
      <pubDate>Thu, 09 Nov 2006 05:57:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895238#M79898</guid>
      <dc:creator>Edwin R. van der Kaaij</dc:creator>
      <dc:date>2006-11-09T05:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Multiple SECURITY.AUDIT$JOURNAL files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895239#M79899</link>
      <description>Why?  &lt;BR /&gt;you can generate reports from multiple files.&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Nov 2006 06:14:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895239#M79899</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2006-11-09T06:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Multiple SECURITY.AUDIT$JOURNAL files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895240#M79900</link>
      <description>thanks guys, I had just lost total focus. the convert works fine. multiple input files did not work in our situation :o)</description>
      <pubDate>Thu, 09 Nov 2006 07:26:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895240#M79900</guid>
      <dc:creator>Edwin R. van der Kaaij</dc:creator>
      <dc:date>2006-11-09T07:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Merge Multiple SECURITY.AUDIT$JOURNAL files?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895241#M79901</link>
      <description>Ed, that sound counter-stream.&lt;BR /&gt;It is 'nice' to be able to cut up the log in date ranged section. This allows you to put away older sections. It allows you to mark the really old files as no-backup and make sure only the last one is cauch with incremental backups.&lt;BR /&gt;&lt;BR /&gt;As Ian indicates, why not just report from multiple files.&lt;BR /&gt;&lt;BR /&gt;The security journal is a simple variable length record file. However. It does have a header record, pointing back to the prior file and a cloding record, pointing on to the next file.&lt;BR /&gt;&lt;BR /&gt;So for a proper concatenation you probably should remove those.&lt;BR /&gt;&lt;BR /&gt;So I would try:&lt;BR /&gt;&lt;BR /&gt;$ type tmp%.txt&lt;BR /&gt;TMP1.TXT;1   ! Keep 1, skip last&lt;BR /&gt;aap&lt;BR /&gt;noot&lt;BR /&gt;next&lt;BR /&gt;TMP2.TXT;1   ! Skip 1 and last&lt;BR /&gt;prior&lt;BR /&gt;mies&lt;BR /&gt;teun&lt;BR /&gt;TMP3.TXT;1   ! Skip 1 keep last (still open_&lt;BR /&gt;prio&lt;BR /&gt;vuur&lt;BR /&gt;$ perl -ne "print $rec if ($. &amp;gt; 1); $rec = $_" tmp1.txt &amp;gt; tmp.txt&lt;BR /&gt;$ perl -ne "print $rec if ($. &amp;gt; 2); $rec = $_" tmp2.txt &amp;gt;&amp;gt; tmp.txt&lt;BR /&gt;$ perl -ne "print $_ if ($. &amp;gt; 1)" tmp3.txt &amp;gt;&amp;gt; tmp.txt&lt;BR /&gt;$ type tmp.txt&lt;BR /&gt;aap&lt;BR /&gt;noot&lt;BR /&gt;mies&lt;BR /&gt;vuur&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I woudl also be tempted to dump and analyze those first and last records to recognize them properly instead of expecting them to be there or not.&lt;BR /&gt;&lt;BR /&gt;Groetjes,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Nov 2006 07:37:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/merge-multiple-security-audit-journal-files/m-p/3895241#M79901</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-11-09T07:37:30Z</dc:date>
    </item>
  </channel>
</rss>

