Page 1 of 1

tm1 log file delete

Posted: Tue May 26, 2020 1:14 am
by manu0521
Hi ,

I have a vb script that deletes the logs which are older than 3 days,

I have 3 instances and the task has 3 steps which deletes the logs from 3 instances .

I am having issue where the task goes to running state and not completes. When looked at it there is some tm1event log which it canot delete.

Any one had similar issue .
Script is below

option explicit
Dim rootFolder, files, File, f1, fso

set fso = createObject("Scripting.FileSystemObject")

'change folder here
set rootFolder = fso.GetFolder("D:\APAC\Logs\")
set files = rootFolder.Files

For each File in files
'On Error Resume Next
Set f1 = fso.GetFile("D:\APAC\Logs\"&File.Name)
'change amount of days here; files where last modification was longer ago than 5 days will be deleted
if File.DateLastModified < (date-3) then
'wscript.echo "deleted"
f1.delete
end if
NEXT



Thanks

Re: tm1 log file delete

Posted: Tue May 26, 2020 9:05 am
by orlando
manu0521 wrote: Tue May 26, 2020 1:14 am
When looked at it there is some tm1event log which it canot delete.
Hi,

The tm1event.log can only be deleted when the services are finished.
I see this file since i use the "IBM Cognos TM1 Operations Console" - but can also be coincidence, because at that time we also went on a new TM1 version.

If you want to delete the file you have to stop the services - delete - restart.

best regards,
orlando

Re: tm1 log file delete

Posted: Tue May 26, 2020 9:16 pm
by scrumthing
Why would you want to delete that particular file? Just don’t do it. It is a nice and short log of shutdowns and startups of your server.

Re: tm1 log file delete

Posted: Wed May 27, 2020 11:17 pm
by ykud
orlando wrote: Tue May 26, 2020 9:05 am
I see this file since i use the "IBM Cognos TM1 Operations Console" - but can also be coincidence, because at that time we also went on a new TM1 version.
This is a PA 2.0.3 feature https://www.ibm.com/support/knowledgece ... ogger.html
you can disable it by using EventLogging=F in tm1s.cfg (it's on by default), kudos to Andy Key for pointing this out to me a while back.

Y

Re: tm1 log file delete

Posted: Thu May 28, 2020 7:47 am
by orlando
ykud wrote: Wed May 27, 2020 11:17 pm

This is a PA 2.0.3 feature https://www.ibm.com/support/knowledgece ... ogger.html
you can disable it by using EventLogging=F in tm1s.cfg (it's on by default), kudos to Andy Key for pointing this out to me a while back.

Y
there is no icon, so: thumbs up!

Re: tm1 log file delete

Posted: Thu May 28, 2020 8:00 am
by MarenC
ykud had done very well not to have become an MVP! :D

Re: tm1 log file delete

Posted: Mon Jun 01, 2020 2:11 am
by Alan Kirk
MarenC wrote: Thu May 28, 2020 8:00 am ykud had done very well not to have become an MVP! :D
15 posts short of getting into the voting cycle as of the time of writing.