Search code examples
ibm-mobilefirstauditworklight-console

audit feature of the Worklight Server Administration console


Anybody knows about audit feature of the Worklight Server 6.2 Administration console? What are the audit details stored by worklight server? Where is it stored? How long the data will be stored? How to purge these data? Again could not find any relevant information on info center.


Solution

  • This question is about the Audit log available to download at the footer in Worklight Console.

    What are the audit details stored by Worklight Server?

    The audit log contains every action done in the Worklight console and that was written to the database. This includes: the action timestamp, action type, action status, user role, artifact type.

    Where is it stored?

    In the Worklight Server database.

    By default, the Worklight Development Server uses a file-based database (HSQL). You cannot access this file while the server is running (when not running, the file can be accessed by some tools. You can google for them; not especially recommended to touch it).

    How long the data will be stored?

    The data is stored for as long as the database is not cleared.

    How to purge these data?

    Manually delete the your_workspace\WorklightServerConfig folder.

    From the documentation:

    Audit log for administration operations
    Worklight Console stores an audit log for login, logout, and for all administration operations, such as deploying apps or adapters or locking apps. 
    The audit log can be disabled by setting the JNDI property ibm.worklight.admin.audit on the web application of the Worklight Administration service (worklightadmin.war) to false.
    
    When the audit log is enabled, you can download it from Worklight Console by clicking the Audit log link in the footer of the page.