Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > 1C Infobase Log quite big

Forum

Search UsersRules
1C Infobase Log quite big
#1
Just came
Points:: 0
Joined:: Jul 14, 2014

Hello,

Is there any chance to have log rotate for 1C Infobase. 1C Infobase log file is increasing in size every day and it`s quite big. Is there any setting for the platform to clear the log automatically and periodically?

Thank you.

Profile
#2
Administrator
Points:: 0
Joined:: Oct 3, 2019

Hi Marius,

What is your version of the 1C platform?

Are you using the old logging format (.lgd files) or the new one (SQLite)?

Aleksandr

Profile
#3
Just came
Points:: 0
Joined:: Jul 14, 2014

The old one (.lgd). Platform version is 8.3.10. For the new log i saw in 8.3.16 that you have the possibilities to trancate log by day from designer.

Profile
#4
Administrator
Points:: 0
Joined:: Oct 3, 2019

Hi Marius,

i'm sorry I misled you.

The .lgd is the new log format (SQLite), but .lgp and .lgf are the old text format files.

Indeed, the SQLite format cannot be broken down into periods.

In new versions of 1C, it's possible to switch to the old format of the events log (pls. see screenshot 1).

In older versions of 1C, it's also possible to return to the old journal format. To do this, please stop the 1C server, transfer the file "1Cv8.lgd" to another location, and create an empty file "1Cv8.lgf" in the "1Cv8Log" folder. This will be the log journal in the old format. After that, you need to start the 1C server again, then go to the Designer. And already in the Designer, enable the breakdown of the journal by period (for example, by week). (screenshot 2).

You can also always reduce the size of the log file using the "Reduce size" button.

But note that if you use the new log file format (SQLite), the size of the "1Cv8.lgd" file will not change after the size reduction procedure. This is due to the features of the work of the SQLite. To reduce the size of the file "1Cv8.lgd" in this case, you must use the command "vacuum" in "sqlite3".

You can download the "sqlite3" from the official site "https://www.sqlite.org".

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.