<?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 How to get Absolute path from syslog in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715416#M731653</link>
    <description>&lt;!--!*#--&gt;My system is a HP-UX B.11.23 U ia64 bastioned.&lt;BR /&gt;&lt;BR /&gt;I need to obtain log of the access to the files in a directory, (with no convention names in the files contained in), and my problem is that records in the syslog file "/.../audfile_XXXXX", are stored with relative paths, so I can´t identify univocaly if a file is contained in my target path.&lt;BR /&gt;&lt;BR /&gt;I´ve been looking for alternative solutions, (audit_track_paths tuneable, auditing system extensions), but almost all of them are related to HP-UX 11 v3.&lt;BR /&gt;&lt;BR /&gt;Any ideas?.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
    <pubDate>Fri, 19 Nov 2010 10:15:41 GMT</pubDate>
    <dc:creator>Carlos Igual</dc:creator>
    <dc:date>2010-11-19T10:15:41Z</dc:date>
    <item>
      <title>How to get Absolute path from syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715416#M731653</link>
      <description>&lt;!--!*#--&gt;My system is a HP-UX B.11.23 U ia64 bastioned.&lt;BR /&gt;&lt;BR /&gt;I need to obtain log of the access to the files in a directory, (with no convention names in the files contained in), and my problem is that records in the syslog file "/.../audfile_XXXXX", are stored with relative paths, so I can´t identify univocaly if a file is contained in my target path.&lt;BR /&gt;&lt;BR /&gt;I´ve been looking for alternative solutions, (audit_track_paths tuneable, auditing system extensions), but almost all of them are related to HP-UX 11 v3.&lt;BR /&gt;&lt;BR /&gt;Any ideas?.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.</description>
      <pubDate>Fri, 19 Nov 2010 10:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715416#M731653</guid>
      <dc:creator>Carlos Igual</dc:creator>
      <dc:date>2010-11-19T10:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Absolute path from syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715417#M731654</link>
      <description>HI:&lt;BR /&gt;&lt;BR /&gt;If you know the current working directory of the process that logged the event, then you can form the absolute path from the relative path information in the log.&lt;BR /&gt;&lt;BR /&gt;If you have the ability to modify the software that does the logging you can mitigate your problem too.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 19 Nov 2010 12:52:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715417#M731654</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-11-19T12:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Absolute path from syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715418#M731655</link>
      <description>Thanks James. &lt;BR /&gt;Guess I didnÂ´t explain well my problem.&lt;BR /&gt;I need to get all the "access" to the files contained in the folder, wherever they came from, and whoever generates them. &lt;BR /&gt;So I canÂ´t know the relative path of the program than genetrate the logs, canÂ´t even know the program, or even more, the logs can be genetrated by a user from the command line.&lt;BR /&gt;&lt;BR /&gt;IÂ´m still working in find some information on how to get this logs with "absolute paths" in HP-UX versions lower than 11 v3.&lt;BR /&gt;&lt;BR /&gt;Any ideas will be apreiated.</description>
      <pubDate>Mon, 22 Nov 2010 08:05:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715418#M731655</guid>
      <dc:creator>Felix2009</dc:creator>
      <dc:date>2010-11-22T08:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Absolute path from syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715419#M731656</link>
      <description>&amp;gt;Guess I didn't explain well my problem.&lt;BR /&gt;&lt;BR /&gt;You're asking for something that requires lots of brute effort.  If you can't change what gets logged in syslog, you'll need to scan the whole system to find those files.&lt;BR /&gt;&lt;BR /&gt;Or you need to turn on auditing to log opens and possibly chdir and renames.  Then match them up with the syslog times.</description>
      <pubDate>Mon, 22 Nov 2010 09:55:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715419#M731656</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-22T09:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Absolute path from syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715420#M731657</link>
      <description>"You're asking for something that requires lots of brute effort. If you can't change what gets logged in syslog, you'll need to scan the whole system to find those files.&lt;BR /&gt;&lt;BR /&gt;Or you need to turn on auditing to log opens and possibly chdir and renames. Then match them up with the syslog times."&lt;BR /&gt;&lt;BR /&gt;ThatÂ´s the point.&lt;BR /&gt;&lt;BR /&gt;IÂ´ve already turned on the open, chdir, ... .&lt;BR /&gt;&lt;BR /&gt;Maybe Even matching the syslog times, Â¿How coud I deceide if a file apeared in the log is located in my target path?.&lt;BR /&gt;&lt;BR /&gt;IÂ´ve find some posible solutions, as I pointed in my first message, (audit_track_paths, ...) but all are implemented from HP-UX version 11 v3, and my machines are HP-UX 11 v2.&lt;BR /&gt;&lt;BR /&gt;Â¿Maybe some 3rd party software?.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Carlos.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Nov 2010 10:11:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715420#M731657</guid>
      <dc:creator>Carlos Igual</dc:creator>
      <dc:date>2010-11-22T10:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Absolute path from syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715421#M731658</link>
      <description>Perhaps you need to explain what you are really trying to do?  And why can't you change the application to provide what you need without lots of this extra work?&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I've already turned on the open, chdir, ...&lt;BR /&gt;&lt;BR /&gt;Then that should be enough to play back what the kernel is doing and find everything out.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;How could I decide if a file appeared in the log is located in my target path?&lt;BR /&gt;&lt;BR /&gt;By accurately playing back the system calls and computing the absolute path of each open.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I've find some possible solutions, as I pointed in my first message (audit_track_paths, ...)&lt;BR /&gt;&lt;BR /&gt;Have you tried this on 11.31 to even know they work?</description>
      <pubDate>Mon, 22 Nov 2010 12:32:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715421#M731658</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-22T12:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Absolute path from syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715422#M731659</link>
      <description>&lt;!--!*#--&gt;The question is as follows:&lt;BR /&gt;&lt;BR /&gt;Need to register all the acesses to the files contained in a specific path, no matter what program or user does.&lt;BR /&gt;&lt;BR /&gt;My problem is that the records in the system log file, depending on the path where the action has been executed, reflects the path in two posible ways.&lt;BR /&gt;The first one, is for me the "corrrect" one, because in the log record appears the absolute path of the file afected by the action. So I can identify the file as contained, (or not), into my target path.&lt;BR /&gt;In the second one, the path is a relative one, and that's useless for me, because I can't be sure that the record in the system log file ins contained or not in my target path.&lt;BR /&gt;&lt;BR /&gt;I attach a sample, extracted from the system log file, with two acesses to the same file, one reflecting an absolute path and the other a relative one. The file accessed is the same but by the follwing two different commands:&lt;BR /&gt;&lt;BR /&gt;1/ more /audit/R12/entrada/fr12pru2&lt;BR /&gt;&lt;BR /&gt;2/ cd /audit/R12/entrada&lt;BR /&gt;   more fr12pru2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this clarify.&lt;BR /&gt;&lt;BR /&gt;TIA Carlos.</description>
      <pubDate>Mon, 22 Nov 2010 13:28:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715422#M731659</guid>
      <dc:creator>Carlos Igual</dc:creator>
      <dc:date>2010-11-22T13:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Absolute path from syslog</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715423#M731660</link>
      <description>&amp;gt;Need to register all the accesses to the files contained in a specific path, no matter what program or user does.&lt;BR /&gt;&lt;BR /&gt;As I said, you need to play back, simulate, the system calls.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;2. cd /audit/R12/entrada&lt;BR /&gt;&amp;gt;   more fr12pru2&lt;BR /&gt;&lt;BR /&gt;Here is where you need to capture the chdir(2) call and apply that to the following open calls, that don't start with "/".&lt;BR /&gt;</description>
      <pubDate>Mon, 22 Nov 2010 19:07:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-absolute-path-from-syslog/m-p/4715423#M731660</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-11-22T19:07:33Z</dc:date>
    </item>
  </channel>
</rss>

