Disable logs on disable of profile?

For technical support visit http://support.2brightsparks.com/
amartinez
Enthusiastic
Enthusiastic
Posts: 13
Joined: Mon May 22, 2017 11:09 am

Disable logs on disable of profile?

Postby amartinez » Mon Jun 26, 2017 2:21 pm

We use a agent to forward our logs for analysis. We have disabled a few profiles so no longer want to enable the logs for those profiles either. Can this be done?

cliffhanger
Expert
Expert
Posts: 762
Joined: Tue May 31, 2011 5:59 pm

Re: Disable logs on disable of profile?

Postby cliffhanger » Mon Jun 26, 2017 4:37 pm

As the Disable 'function' only stops a profile from running, but it does not stop anything or anyone trying to run it, the profile will record (in the profile's History, the profile's Result status and the profile's Log) the fact that (if) an attempt was made to run a Disabled profile. Given that someone has set up email notification, I guess the developers' philosophy is that he should also be notified about the attempt (plus a handy reminder that this profile is Disabled).

There's no specific setting that equates to 'do not email log if profile is disabled'. However, you can of course manually disable the Email Log option for that manually-disabled profile...just uncheck the box at the top of the Email Log settings page. Your previous email settings will be preserved, it just won't use them till you turn it back on. Or you could stop whatever is trying to run that profile from doing so, and the mails will stop automatically.

cliffhanger
Expert
Expert
Posts: 762
Joined: Tue May 31, 2011 5:59 pm

Re: Disable logs on disable of profile?

Postby cliffhanger » Mon Jun 26, 2017 4:41 pm

PS you cannot stop the (individual) log from being created, but you can stop emailing it, as shown above. Or, stop trying to run the profile :)

cliffhanger
Expert
Expert
Posts: 762
Joined: Tue May 31, 2011 5:59 pm

Re: Disable logs on disable of profile?

Postby cliffhanger » Tue Jun 27, 2017 6:24 am

PPS it occurred to me later that you might not be using email of the logs (at least, not c/o the built-in facility in SB) - your 'agent' might be a 3rd-party process that monitors the Log storage folder for new files, and forwards them (or similar functionality). If so, there's nil you can do in SB to stop it, sorry (except quit trying to run the Disabled profile). Assuming no error conditions prevent it, a log will always be created of a run (or attempted run), presumably for security reasons.

amartinez
Enthusiastic
Enthusiastic
Posts: 13
Joined: Mon May 22, 2017 11:09 am

Re: Disable logs on disable of profile?

Postby amartinez » Tue Jun 27, 2017 8:38 am

The problem is:

- We don't email the logs they just get picked up in a local directory by the 3rd party agent
- the profile is disabled and NOT being run by anything, yet the logs for it are being generated at the same frequency as the profile is set to run

I don't want to have to delete this profile just to stop it sending log files. Here's an example of the log file:

"27/06/2017 09:30:01","1","About","SyncBackPro V8.0.1.0 Log",0,"O"
"27/06/2017 09:30:01","1","Profile Name","SQLTransactionLogs",0,"O"
"27/06/2017 09:30:01","1","Type","Backup",0,"O"
"27/06/2017 09:30:01","1","Username","CCS\admin",0,"O"
"27/06/2017 09:30:01","1","Computer Name","name1",0,"O"
"27/06/2017 09:30:01","1","Unattended","Yes",0,"O"
"27/06/2017 09:30:01","1","Trigger","""C:\Program Files (x86)\2BrightSparks\SyncBackPro\SyncBackPro.exe"" -m ""SQLTransactionLogs""",0,"O"
"27/06/2017 09:30:01","1","Critical Error","The profile is disabled. - Manual",8,"E"

cliffhanger
Expert
Expert
Posts: 762
Joined: Tue May 31, 2011 5:59 pm

Re: Disable logs on disable of profile?

Postby cliffhanger » Tue Jun 27, 2017 11:09 am

amartinez wrote:...
"27/06/2017 09:30:01","1","Unattended","Yes",0,"O"
"27/06/2017 09:30:01","1","Trigger","""C:\Program Files (x86)\2BrightSparks\SyncBackPro\SyncBackPro.exe"" -m ""SQLTransactionLogs""",0,"O"

The log clearly shows something is triggering this profile at the time shown by invoking the command-line quoted. What exact process is doing this could be anything from a Schedule (e.g. invoked by Windows Task Scheduler, or something else '3rd-party'), or a batch file, or a shortcuts...

My guess is that a Schedule has been set up by SB for you on demand using a drill-down to the Windows Task Scheduler. If "SQLTransactionLogs" is the name of that specific profile, then it is the profile itself that is being called. If "SQLTransactionLogs"is the name of a Group of profiles (and that Group includes this profile), then the Group is being called, but I doubt this applies as IIRC you would see some separate mention in the log of the parent Group name for reference purposes, and i can't see one (I am assuming your quoted log text is 100% complete).

If it's a Schedule, simply delete it (via SB UI or via the Windows Task Scheduler UI itself) - or disable it (which you can only do directly via the Windows Task Scheduler UI). You may feel the latter is better if it has complex settings, as re-enable only takes one click once the Task is ready for edit and the settings will have been preserved for you

If it's a 3rd-party process that is calling SB Pro with that profile name as an argument, you'd need to identify/modify it yourself

amartinez
Enthusiastic
Enthusiastic
Posts: 13
Joined: Mon May 22, 2017 11:09 am

Re: Disable logs on disable of profile?

Postby amartinez » Tue Jun 27, 2017 11:33 am

Oh thanks.. it was the Windows scheduler - it had those profiles enabled too so I disabled them.

It's working

(Is this expected behavior? That disabled app profiles leave Windows scheduler profiles enabled but not running?)

cliffhanger
Expert
Expert
Posts: 762
Joined: Tue May 31, 2011 5:59 pm

Re: Disable logs on disable of profile?

Postby cliffhanger » Tue Jun 27, 2017 11:59 am

There's only one profile with any unique name, whether run from SB direct or called by the scheduler (calling by the scheduler involves invoking SB and passing the profile name as an argument; the Scheduler doesn't have/use 'a copy profile')

No, there's no attempt to auto-disable a Schedule because 'where do you stop?' - it won't prevent a user trying to run the Disabled profile, or a batch file, or a 3rd-party process/agent. Also. it might be a parent Group that is Scheduled (not the individual profile). Even if such a Group Schedule could be auto-disabled, not running the other N profiles in the Group might be unpopular - especially given that the Disabled profile won't actually run if triggered, so 'no real harm done'

amartinez
Enthusiastic
Enthusiastic
Posts: 13
Joined: Mon May 22, 2017 11:09 am

Re: Disable logs on disable of profile?

Postby amartinez » Tue Jun 27, 2017 12:50 pm

Thanks for the info!


Return to “SyncBackPro (commercial)”



Who is online

Users browsing this forum: No registered users and 3 guests