Network Automation Software We are currently migrating this forum
over to our HelpSystems domain. Please
post all new threads in our new
HelpSystems Community Portal.
Post to the HelpSystems Forum
You are not currently logged on. You must be logged on in order to post. Log on
Or Create a new account
AutoMate Discussion
Decrease font size
Increase font size
Topic Title: Logging feature - 1 file a day
Topic Summary:
Created On: 08/27/2014 03:31 AM
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
View similar topics View similar topics
View topic in raw text format. Print this topic.
 08/27/2014 03:31 AM
User is offline View Users Profile Print this message

Author Icon
MehdiLouali
n00b (>6 posts)

Posts: 1
Joined: 05/31/2013

Dear support,

I'm working in a DataCenter using A9 and tens of Automate task runs here everyday.

For some of them, we've enabled the extended logging in a separate file.

But we are facing difficulties to manage clean-up of the old logs files because they are appended each time.

My wish would be to have the possibility to have logs generated in a new file at each execution or each day. This will allow me to remove the obsololete logs easily.

Please advice.

Mehdi.

 08/27/2014 04:21 PM
User is offline View Users Profile Print this message

Author Icon
Valentineo McGowan
HelpSystems

Posts: 766
Joined: 09/03/2013

Hello Mehdi,

You could use a task that's on a schedule trigger that runs at 15 minutes prior to midnight every night in the background that copies the extended task log to another location with a date/time stamp as part of the amended filename.
Try the attached AML code and let us know how it works for you.
It's an example and functional. Modify the path as needed.


Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder)


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

Valentineo McGowan | Technical Consultant
AutoMate | Division of HelpSystems
HelpSystems, LLC | T: +1 213.738.6966 | F: +1.213.738.7665


Edited: 08/27/2014 at 04:27 PM by Valentineo McGowan
Statistics
18258 users are registered to the AutoMate Discussion forum.
There are currently 0 users logged in.
The most users ever online was 5551 on 01/08/2018 at 11:11 AM.
There are currently 1355 guests browsing this forum, which makes a total of 1355 users using this forum.

FuseTalk Enterprise Edition v4.0 - © 1999-2020 FuseTalk Inc. All rights reserved.

Sitemap Network Automation Software Blog