Tomcat: Access-Log to Database?

Discussion in 'Apache' started by tbruderm, Mar 9, 2007.

  1. #1
    Hello,

    I use Tomcat 5.x for a web application and i would like to write a access-log for certain filetypes into a database-table (not into a file).

    I considered to write the access-log to a file first and then transfer it to the
    database. However, this solution is not satisficing, because i need the data
    immediately. If a user accesses a jsp-file, the application should know, which urls the user accessed before.
    Logging via a writeToDataBase(this_request)-Method within the jsps wouldn't help, because i can not log pdf- or htm-files in this way.

    Is there a possibility to configure Tomcat in a way that it writes certain requests into a database?

    I'm quite a newbie in this area, so i appreciate every kind of advice or idea.

    best regards,
    Thomas
     
    tbruderm, Mar 9, 2007 IP