97
Views
18
Comments
Logging history

How far back can I look into the logging history from within Service Center in an OS production environment setting?

Rank: #82

Default :  4 weeks

mvp_badge
MVP
Rank: #71

Hi Adam,

According to this documentation, the retention period of logs for OutSystems PaaS is 9 weeks. For On-Premises environments, you can configure it in the Log Cycle Period property inside the Log Tab of the Configuration Tool.

Regards,

Nordin

Rank: #8443

The retention period in OutSystems Paas might be set to 9 weeks. But in practice and to me for unknown reasons one can from within ServiceCenter only look back as far as two weeks in the logging.  

mvp_badge
MVP
Rank: #71

Hi Adam,

In that case, you could open a support case with OutSystems and request for a longer retention period of your logs.

Regards,

Nordin

Rank: #8443

Yes. But I am now more interested to hear from others who run into similar limitations with their logging-history.

mvp_badge
MVP
Rank: #71

Sure thing Adam.

Rank: #122

Hello Adam,

Do you have access to your database server?

If so, it might be interesting to verify directly into OSLOG tables if you have any records from older weeks.


Kind regards,

Rui Barradas

Rank: #8443

No I don't have access.


Rank: #109

Hi Adam,

I see there are already answers here, but the retention policy also differs based on the OutSystems License you have purchased. 

Nordin has rightly indicated towards the documentation which states "The retention period for logs configured in OutSystems PaaS is 9 weeks". This is the default retention period. However, there are also offering like OutSystems Sentry which has a 1-year retention policy for all type of logs.

Regards,

Swatantra

Rank: #122

Hello again Adam,

So I was looking a bit into this and here's some conclusions:

  • For each type of log there are 10 tables in the database server in the form OSLOG_<TYPE>_<NUMBER> . For example, oslog_error_4 is the 4th table in the error log cycle;
  • OutSystems Platform is capable of keeping logs for longer than they are displayed in Service Center:
  • By default the OutSystems Platform keeps logs for 4 weeks, and can keep them for as long as 9 weeks. You can configure this in Configuration Tool -> Tab Logs;
  • Logs rotate in a cyclic way. This means that if you have tables 0, 1, 2 and 3 beeing used, in the next week table 0 will be erased and table 4 will be used. In the week after, table 1 will be erased and table 5 will be used (and so on);
  • Service Center can only display as far as 2 weeks in the logs. This value is defined due to performance issues;
  • If you want to verify older logs, the best way to accomplish that is to access directly into the database server and execute some queries over the OSLOG tables. This way will allow you to view the logs that are still in the physic database tables.


Hope that this helps you.


Kind regards,

Rui Barradas

mvp_badge
MVP
Rank: #18

@Rui Barradas

According to OutSystems documentation in OutSystems cloud the default retention is 9 weeks, not 4, see end of official documention i share below.

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 

Regards,

Daniel


mvp_badge
MVP
Rank: #71

Hi Daniël,

I think Rui was referring to the default log retention period for On-Premises installations here, which - I know from experience - is set to 4 weeks and same was also mentioned in this (old) post

Given that the post is from the beginning of 2014 and OutSystems PaaS offerings launched at the end of 2013, it is fair to say that the post was talking about On-Premises infrastructures too.

So I think we are all on the same page here :)

Regards,

Nordin

mvp_badge
MVP
Rank: #18

Hi Nordin,

Ok that makes sense, anyhow good it is stated in this thread what the default retention is for OutSystems cloud.

Maybe you can answer me another question, although service center is always only showing 2 weeks back of logging, we have one customer in production that shows 9 weeks back of logging in service center (also an OutSystems cloud infra). Did you ever came across that?

Regards,

Daniel


mvp_badge
MVP
Rank: #71

Actually I did not come across that.. but I would sure like to know how your customer managed to do that as it would be of interest to a few of our customers too. 

Maybe they have somehow persuaded OutSystems into tweaking their Service Center App.

Regards,

Nordin

mvp_badge
MVP
Rank: #18

We maintain the platform, no clue why it is like it is, we will ask OutSystems to clarify it.

mvp_badge
MVP
Rank: #71

Would be great if you can report back here if you have more answers! 

Thanks

Rank: #122

@Daniël, Nordin is correct.

I was indeed referring to the default log retention period for On-Premises installations only (which I also know from experience that it is set to 4 weeks by default).

Customers that I work with use pretty much On-Premises installations only. So I assumed that this post was also referring to an On-Premises infrastructure (which I believe it is the most common type).

@Nordin, thank you for helping and pointing that out :)


@Daniël, back to you.

About your event of 9 weeks logging in Service Center, I'm also very curious about that since I never saw it happening before as well. Do you mind to share with us as soon as you know the cause? It would be great if you share with us why it is happening and how can we tweak Service Center in order to do this.


Thank you.


Kind regards,

Rui Barradas

mvp_badge
MVP
Rank: #18

Hi Rui and Birding, I will share if I have more info.

Not sure if o premise is the most common type. So far I never worked for a customer that has onpremise installation. At my current employer also all customers use OutSystems cloud offering.

Regarding the forum it is worthwhile mentioning the differences on specific deployment typrs. Of an OutSystems environment.