Simple question on tm1s.log

Post Reply
sophie
Posts: 17
Joined: Wed Jul 07, 2010 10:05 am
OLAP Product: TM1
Version: 9.4
Excel Version: 11.8320.8221SP3

Simple question on tm1s.log

Post by sophie »

Whenever our tm1 server crashes, I notice that the tm1s.log is sitting there in logging directory holding the transactions happened after the last "Save Data". My question is, once the server is restarted, will these transactions be loaded into the RAM and the future transactions be appended to them until further "Save Data"? Our users complain that the transactions made between the last SaveData and the time the service was terminated are not loaded when the server was restarted after crash.
Appreciate your help!
User avatar
qml
MVP
Posts: 1096
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: Simple question on tm1s.log

Post by qml »

These transactions should be automatically picked up and restored when server starts up, unless the log file itself is corrupted. Worst case scenario - you retrieve them and load manually (hopefully server crashes don't happen too often in your environment, because if they do, then that's your first priority to solve).
Kamil Arendt
Alan Kirk
Site Admin
Posts: 6647
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Simple question on tm1s.log

Post by Alan Kirk »

sophie wrote:Whenever our tm1 server crashes, I notice that the tm1s.log is sitting there in logging directory holding the transactions happened after the last "Save Data". My question is, once the server is restarted, will these transactions be loaded into the RAM and the future transactions be appended to them until further "Save Data"? Our users complain that the transactions made between the last SaveData and the time the service was terminated are not loaded when the server was restarted after crash.
Appreciate your help!
As QML said, the recovery happens automatically. However, TIs which continually zero out and refresh a cube (say from a general ledger system) usually turn off logging when they do so so that they don't create hugely bloated files. In that case, those values will never be in the log file, and won't show up again until the next time the interface runs.

I'd suggest getting the users who claim that some transactions are missing specify exactly which transactions they're referring to so that you can determine the source of those values. (That is, manual entry into a cube or an interface from another system.) If it's a manual entry, go through the log files to see whether you can see the original entry (and any subsequent entries to that combination of elements) and compare them to the current cube value.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
sophie
Posts: 17
Joined: Wed Jul 07, 2010 10:05 am
OLAP Product: TM1
Version: 9.4
Excel Version: 11.8320.8221SP3

Re: Simple question on tm1s.log

Post by sophie »

In my case, the tm1s.log had entries from before the crash and the subsequent transactions were appended to the same log after the server restarted. The file got saved with timestamp during the next "Save Data". Hence I think, the file is not corrupt.
qml wrote:These transactions should be automatically picked up and restored when server starts up
Alan Kirk wrote:As QML said, the recovery happens automatically.
By this, I understand that the transactions should be loaded to memory from the tm1s.log along with other TM1 objects when the server restarts after crash. But this did not happen. What should I be doing to make sure the transactions are not lost?
Alan Kirk
Site Admin
Posts: 6647
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: Simple question on tm1s.log

Post by Alan Kirk »

sophie wrote:In my case, the tm1s.log had entries from before the crash and the subsequent transactions were appended to the same log after the server restarted. The file got saved with timestamp during the next "Save Data". Hence I think, the file is not corrupt.
qml wrote:These transactions should be automatically picked up and restored when server starts up
Alan Kirk wrote:As QML said, the recovery happens automatically.
By this, I understand that the transactions should be loaded to memory from the tm1s.log along with other TM1 objects when the server restarts after crash. But this did not happen. What should I be doing to make sure the transactions are not lost?
How do you know "this did not happen"? Did you do what I suggested, which is to look at specific entries in the log and compare them to the values in the cube? Did you determine where those entries are supposed to have come from?

In the vast majority of cases the reason that transactions are "lost" is that they were never in the log file in the first place, but you've given no indication that you've checked that.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Gabor
MVP
Posts: 170
Joined: Fri Dec 10, 2010 4:07 pm
OLAP Product: TM1
Version: [2.x ...] 11.x / PAL 2.0.9
Excel Version: Excel 2013-2016
Location: Germany

Re: Simple question on tm1s.log

Post by Gabor »

Can you find .rej files for rejected items in same directory the log file is stored to?
Do you run a service? Running TM1 in foreground as application will usually lead to a prompt after each crash and if reload is cancelled, the data get pushed to the .rej file.

Gabor
Terramup
Posts: 16
Joined: Tue Nov 23, 2010 4:12 pm
OLAP Product: Cognos TM1
Version: 10.1.0
Excel Version: 2007
Location: Portland, OR USA

Re: Simple question on tm1s.log

Post by Terramup »

Check }CubeProperties to see if logging is set to YES for the cube. If not, the transactions are not sent to tm1s.log.
Post Reply