Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Access logs

  1. #1
    Join Date
    Oct 2013

    Default Access logs

    Hi, i'm trying to create a log which registered the wrong accesses to bi-server, this log should store the of the user who tried to log into the server and the date of this access.
    Anyone know how ?

    Thanks !

  2. #2
    Join Date
    Oct 2013


    Finally I found a valid solution for me, I made the following change in log4j.xml file:

    <category name="">
    <priority value="WARN"/>

    After editing this file, I created a shell script that searches into pentaho.log the following string "AuthenticationFailureBadCredentialsEvent" and with each line found create the new log file needed.
    It will be something like this:

    date=`date +"%Y-%m-%d"`

    cat /SmallHDD02/pentaho/biserver-ce/tomcat/logs/pentaho.log |
    grep "AuthenticationFailureBadCredentialsEvent" |
    awk -v date="$date" '{gsub(/;/, ""); if($1 == date) print $1 " " substr($2,0,9) "\t" $8 "\t\t Authentication Failure \n"}' >> NameNewLog.log

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.