Log Retention

Log Retention SearchSearch
Author Message
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 150
Registered: 04-2011
Posted on Thursday, February 25, 2021 - 12:44 pm:   

Hi,

What is the default value for the Log Retention if "LogRetainDays=###, is not set in the SMSGW.INI?

Mathew
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8397
Registered: 10-2002
Posted on Thursday, February 25, 2021 - 01:45 pm:   

90
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 151
Registered: 04-2011
Posted on Sunday, February 28, 2021 - 09:06 am:   

Hi,

We have an installation v2020.01.15 and we have set the LogRetainDays=365

We notice that the logs are cleared after 15 days.

Mathew.
Config
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6234
Registered: 08-2008
Posted on Sunday, February 28, 2021 - 10:05 pm:   

Hi Matthew,

Are you consistently seeing a log deletion every day that maintains a 15 day window?

I don't have an explanation for this. We will begin an investigation. I have a test server with the default settings, and it is purging at 90 days. I just changed these settings to LogRetainDays=365 and will monitor.

Regards,

Des
NowSMS Support
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 152
Registered: 04-2011
Posted on Monday, March 01, 2021 - 05:39 am:   

Thanks DES...
This is what we notice.
I am attaching the screen shot of the directory as of now...

MathewLog Directory
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 6251
Registered: 08-2008
Posted on Tuesday, March 02, 2021 - 11:19 pm:   

Hi Mathew,

I was about to send a follow-up reply telling you that this issue had me perplexed. A couple of days ago, I changed the setting on one of my test servers to LogRetainDays=365. Previously logs were getting deleted after 90 days, but because of the change, the server has stopped deleting the old logs for now.

But as I reopened this thread, I noticed another setting in your screen capture that is the cause of the problem you are experiencing.

You have the following settings:

LogDirectory=d:\NowSMS\Logs
LogRetainDays=365
MessageIDTrackingDir=d:\NowSMS\Logs

The problem is that these two settings are pointing to the same directory. The "MessageIDTrackingDir" (usually SMPPDATA) is cleaned out of all files older than 15 days. There is a setting SMPPDataRetainDays=## that can adjust this timing, but I would not recommend increasing this retention, as keeping more of this data may create performance issues.

Instead, I would recommend separating these locations into separate directories.

Regards,

Des
NowSMS Support
Mathew Mathachan
Frequent Contributor
Username: Mathewm

Post Number: 153
Registered: 04-2011
Posted on Sunday, March 07, 2021 - 05:50 am:   

Thanks Des.

We will change and check this out. Give us a few days.

Mathew

Add Your Message Here, or click here to start a new topic.
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image
Options: Automatically activate URLs in message
Action: