Menu

Log when User views object

Jedi Star
2022-08-03
2022-08-23
  • Jedi Star

    Jedi Star - 2022-08-03

    Hi! Is it possible to write logs like ChangeOP to database when User views some objects? We need data to manage all user actions including views on the other application in which we have integrated iTop
    Thank you.

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-08-03

    I actually had a similar request. I ended up creating something which creates a record as soon as someone views the details of an object in iTop's back-end console or front-end user portal.

    But if the object is somehow viewed in a different way (e.g. a list), it won't be created.

     
    • Jedi Star

      Jedi Star - 2022-08-04

      Hi Jeffrey, Can you give some information about how to do it?

       
      • Jeffrey Bostoen

        Jeffrey Bostoen - 2022-08-04

        In my version, I hooked into the UI at a couple of places; which then triggered the update of a custom record (I just wanted to have a "first viewed", "last viewed"; I didn't care about the number of views in between - but that would be easy to change).

        There may be better ways to do it. And there's quite some cases it doesn't cover, but for me it was more for at least some sort of statistical info (unique view count) rather than as logging for security/compliance purposes.

         
  • Pierre Goiffon

    Pierre Goiffon - 2022-08-22

    Hello,
    Why not simply analyze http server logs ? When viewing objects in iTop you'll always get a specific URL

     
    • Jeffrey Bostoen

      Jeffrey Bostoen - 2022-08-22

      You'd need to be able to map the web logs to an object. So you wouldn't know which user did it, unless he has a unique IP or browser agent (that you know of).

       
    • Pierre Goiffon

      Pierre Goiffon - 2022-08-23

      Oh yes
      I understand badly the original post. I thought the question was to count access to objects, but actually it was asked to know object accessed by users yes. Sorry !

       
      👍
      1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.