14
Views
3
Comments
Need to retrieve the screen access logs
Application Type
Traditional Web
Service Studio Version
11.10.7 (Build 37469)
Platform Version
11.11.0.26521

Hi,

I have received one query from my customer, they want to know exactly which screen was accessible by which users and how many times between the time frame of One or Two months.

I am trying to get the details from the 'OSLOG_SCREEN' Entity. however, it only has data available for 2 days I guess. Is there any other way to get such logs for more duration?

Thanks,

Sachin

Rank: #4088

Dear Sachin,

By default the OutSystems Platform keeps logs for 4 weeks, and can keep them for as long as 9 weeks. In the documentation for Version 11 you can find the same information about log rotation in OutSystems.

https://success.outsystems.com/Documentation/11/Managing_the_Applications_Lifecycle/Monitor_and_Troubleshoot/Logging_database_and_architecture/The_log_tables_and_views#The_rotation_of_the_logs

They are configured in configuration tool. The retention period configured in OutSystems PaaS is 9 weeks. 

Hope this information helps.

Cheers !

Shounak

Rank: #339

Hi Sachin, 

In addition to what Shounak well said, if you want to keep your own records and not rely on the built-in log functionality, you can build your own.

As an idea, you can create a services application that will expose a service action that can be used across all the environment since the service actions don't create hard dependencies. 

Just create a new entity with the information you need and then the log service action. Spread that action on the screens you want to audit.

This way you can keep the data as long as you can, you can even create a timer that runs from time to time and deletes records older than x time, this way you have a purge feature too and the maintenance is guaranteed.

Hope this helps

Best Regards, 

Paulo Zacarias

Rank: #299

Hi Sachin,

I am not sure, if you have gone through with this link or not. However, please give a try to read that post. It might be you will get some help. :)

Thanks & Kind Regards,

Sachin