Page 1 of 1

BUG: Custom logs reseted to default after Windows reboot

Posted: Fri May 14, 2010 3:57 pm
by slech
Hi.
I created custom log instance and custom log notification.
After rebooting of Windows Server with Dude - logs are reseted to default and I need to create they again ang map Notification and log instance.
This bag persist in 3.4/3.5/3.6/4.0b2/4.0b3

Re: Bag - logs reseted to default after Windows reboot

Posted: Fri May 14, 2010 4:03 pm
by sergejs
Please, post step by step procedure how to reproduce described problem.

Re: Bag - logs reseted to default after Windows reboot

Posted: Fri May 14, 2010 5:26 pm
by slech
Windows 2003 Server en + Dude 3.4
I installed Dude 3.6 over the 3.4 version.
In the result all my customs logs disapear, but notifications remained.

I can't reboot this server. I will try to reproduce bug with reboot at home.

Re: Bag - logs reseted to default after Windows reboot

Posted: Sat May 15, 2010 8:29 am
by slech
Windows XP Home En
Blank Dude 3.4
1. Create New Log Instance - TestLog(with default settings)
2. Create New Notification --> TestLog -->Action=Log --> Log=TestLog
3. Create New Device - Device - IP(not existed) --> Notification TestLog
4. Wait until device will go down and alert placed in TestLog
5. Reboot the Windows
6. Start Dude and see logs - my TestLog desapiared, notification TestLog has left.
Dude Running Mode - All time
I have the same issue with service mode on my 4 Windows 2003 Server Eng.

File TestLog-2010.05.15-08.26.log exist in Data folder, but Dude will start new file when i create again TestLog log instance. This is not good.

Re: Bag - logs reseted to default after Windows reboot

Posted: Mon May 17, 2010 10:03 am
by sergejs
Do you close the Dude client or just simply reboot the Windows?

Re: Bag - logs reseted to default after Windows reboot

Posted: Mon May 17, 2010 10:30 am
by slech
Windows XP Home sp3 en:

1. Running Mode = Only when local client is running
2. Close Dude
3. Restart Windows
4. Log disapear

1. Running Mode = All time
2. Close Dude
3. Restart Windows
4. Log disapear

1. Running Mode = As Service
2. Close Dude
3. Restart Windows
4. Log disapear

-------------------------------------------------

1. Running Mode = As Service
2. Don't Close Dude
3. Restart Windows
4. Log disapear

Re: Bag - logs reseted to default after Windows reboot

Posted: Mon May 17, 2010 1:01 pm
by sergejs
Thank you for the clarification. We will try to make tests and see where is the problem.

Re: Bug - logs reseted to default after Windows reboot

Posted: Sun Jun 20, 2010 8:54 pm
by slech
this bug persist in 4.0 beta1

Re: Bag - logs reseted to default after Windows reboot

Posted: Tue Jun 22, 2010 9:34 am
by normis

Re: Bug - logs reseted to default after Windows reboot

Posted: Mon Nov 22, 2010 4:12 pm
by jandafields
And the bug is still in Beta 2...

Re: Bug - logs reseted to default after Windows reboot

Posted: Tue Nov 23, 2010 11:23 am
by normis
And the bug is still in Beta 2...
No!

As you see, I have logs from november 8th, and I reboot the computer every day:
Image

Re: Bug - logs reseted to default after Windows reboot

Posted: Tue Nov 23, 2010 2:06 pm
by ninet
Excellent!
I have been created several instances in Logs, and all are still there after reboot! Naturally there is some short gap in logging during restart, but logging continues to fill in existing log file.

Now, we have a new question, imagine we have 50 log instances (logs) in Dude Syslog (50 routers) and we wanna create backup, as we usually do on weekly basis. This backup will be huge file since it will pull all log files. How we can create backup only with settings not with files? Is there some syntax with --exclude options for example?

We don`t need to include those files since we backup them using some scripts.

Thank you!

Re: Bug - logs reseted to default after Windows reboot

Posted: Wed Nov 24, 2010 1:04 pm
by ninet
Actually we are quite satisfied with new .tar.gz backup format so there is no need to compress all those log files within dude separately since there are already compressed on proper way.

How we can automate backup, for example every day 5am run export and specify location? Is it possible using some command script and put it in scheduler (just like we pres export and specify location when dialog box prompts - two extraordinary simple steps)? I have been found some solutions related to previous versions of dude, must be some way to do this in 4.0x

Re: Bug - logs reseted to default after Windows reboot

Posted: Wed Nov 24, 2010 1:07 pm
by normis
just set it to "start new file: every day" and the old file will be saved in the defined location. this is configured in the "files" tab of the log settings in Dude.

Re: Bug - logs reseted to default after Windows reboot

Posted: Wed Nov 24, 2010 2:03 pm
by ninet
thank you for reply normis, I know that, this is ok. But anyway we have to copy those old files each day and compress on backup storage, what can be accomplished now through new dude backup way - tar.gz.
Story is: by the new law we are obligated to keep certain log files up to 12 months (!), as we have many users and BS (M`TIK) that would be few gigabytes log files each day.
Initially I was thinking to create powershell script which will copy & compress only log files to backup storage, but now it`s easier to do everything with simple dude backup/export since everything will be already compressed, and compress ratio is excellent since log files are ordinary txt files, so more than 10GB will be few hundred MB.
Now I only need to automate two clicks - export and save to some location :). I can`t accept someone will do that each day, no matter how it is simple - it would be stupid either :D... However, if it`s not possible accomplish this through command line/script with dude (when I`ll solve also dude itself backup procedure), I`ll go back to powershell script.

Thank you.

Re: Bug - logs reseted to default after Windows reboot

Posted: Wed Nov 24, 2010 2:32 pm
by normis
Ah, so your request basically is to offer tar.gz compression for the log files?

Re: Bug - logs reseted to default after Windows reboot

Posted: Wed Nov 24, 2010 3:40 pm
by ninet
Exactly, what we need -> we already have with new backup procedure in 4.02 beta. No matter if everything is zipped (included rest of files), it would be all dude backup itself anyway, dozen MB every day more or less... Just to find out how to automate dude backup on daily basis...

Re: Bug - logs reseted to default after Windows reboot

Posted: Wed Nov 24, 2010 4:02 pm
by gsandul
Why do not you port this to windows?
http://forum.mikrotik.com/viewtopic.php?f=8&t=33948

Re: Bug - logs reseted to default after Windows reboot

Posted: Wed Nov 24, 2010 4:55 pm
by ninet
Ok gsandul, now you move from karma No. 13 :)...
it looks much easier now with http, so I have parameters for playing arround. I also opened inbound rule for web access in LAN. If I succeed with PowerShell script on my Win2008 I`ll post it here.

Thank you.

Re: Bug - logs reseted to default after Windows reboot

Posted: Wed Nov 24, 2010 5:03 pm
by gsandul
Ok gsandul, now you move from karma No. 13 ...
TNX, it was equal 13 for 1 day only :)

Re: Bug - logs reseted to default after Windows reboot

Posted: Thu Mar 10, 2011 10:07 pm
by slech
bug reproduced in 4.0 beta 3
0nly I have this trouble ?

Re: Bug - logs reseted to default after Windows reboot

Posted: Mon Mar 21, 2011 3:26 pm
by slech
http://www.youtube.com/watch?v=4zi7-9JrBOs
Bug reproduced on new installed Windows XP Pro En sp3 VL + Dude 4.0beta3.

Step to reproduce:
1. Create Custom Log Instance
Name:All
Start New File:newer
Files To Keep:1000
Buffered Entries:10000
Apply --> Ok.
2.
net stop "The Dude Server"
net start "The Dude Server"
3. See you custom logs :)

Re: BUG: Custom logs reseted to default after Windows reboot

Posted: Sun May 01, 2011 1:35 pm
by aysan
Hi,

I am having exactly the same problem with custom logs. After rebooting the computer, all log files are dissapears.
I tried different versions of Dude 3.6 & 4.02 and different OS like XP Pro, Win7 etc. but couldn't find a solution :((

Re: BUG: Custom logs reseted to default after Windows reboot

Posted: Mon May 02, 2011 10:25 pm
by aysan
Hi Guys,

I found the solution. Little tricky but works for me...

I renamed the Events to LOG as I wish. I selected LOG for custom log file.

After rebooting the computer, Dude creats Events again and LOG did not dissaper...

Re: BUG: Custom logs reseted to default after Windows reboot

Posted: Tue May 30, 2017 10:53 pm
by apiel1
I realize this is an old Thread, but I am having the same issue of custom logs disappearing after a reboot. Did anyone ever solve this as I need approx 6 different custom log files to accomodate our needs