Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. Log all status to MySQL DataBase

Log all status to MySQL DataBase

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 54 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    R
    real_skinner
    wrote on last edited by
    #1

    Hi Everyone,

    I am really new to FOP2 and Perl so I am not really sure where to start, been searching google and this forum about what I want to accomplish but unfortunately I can't find anything that will help me, probably just a few info like about the FOP2Callbacks.pm. I am hoping that someone from here can lead me to the right path.

    So this is what I am planning to implement. I want to log all status changes from a user to a mysql database(I might just need to learn Perl and MySQL for this) but my problem is with FOP2, where I can insert my Perl code to log the status changes.

    What I want to log is just a simple information; the user's ext number, the time stamp and the status.

    Can I do this from FOP2Callbacks.pm? But how do I get the user's ext?

    Thanks

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      Hi,

      I think we already chatted about it. Using the audit log (-a /var/log/fop2_audit.log) is the easiest way, let fop2 log all activity and write a parser of that log files that feeds your mysql database as you like.

      Best regards,

      1 Reply Last reply
      0
      • R
        R
        real_skinner
        wrote on last edited by
        #3

        Hi Nicolas,

        Yes and thank you very much for the fast support.

        I already created a Perl script to collect the logs from fop2_audit.log and exported the data to mysql database.

        Thanks

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        Powered by NodeBB Contributors
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups