Before posting, and to avoid disappointment, please read the following:

  • This forum is not for 2BrightSparks to provide technical support. It's primarily for users to help other users. Do not expect 2BrightSparks to answer any question posted to this forum.
  • If you find a bug in any of our software, please submit a support ticket. It does not matter if you are using our freeware, a beta version or you haven't yet purchased the software. We want to know about any and all bugs so we can fix them as soon as possible. We usually need more information and details from you to reproduce bugs and that is better done via a support ticket and not this forum.

Disable logs on disable of profile?

For technical support visit https://support.2brightsparks.com/
Post Reply
amartinez
Enthusiastic
Enthusiastic
Posts: 14
Joined: Mon May 22, 2017 11:09 am

Disable logs on disable of profile?

Post by amartinez »

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: 606
Joined: Tue May 31, 2011 5:59 pm

Re: Disable logs on disable of profile?

Post by cliffhanger »

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: 606
Joined: Tue May 31, 2011 5:59 pm

Re: Disable logs on disable of profile?

Post by cliffhanger »

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: 606
Joined: Tue May 31, 2011 5:59 pm

Re: Disable logs on disable of profile?

Post by cliffhanger »

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: 14
Joined: Mon May 22, 2017 11:09 am

Re: Disable logs on disable of profile?

Post by amartinez »

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: 606
Joined: Tue May 31, 2011 5:59 pm

Re: Disable logs on disable of profile?

Post by cliffhanger »

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: 14
Joined: Mon May 22, 2017 11:09 am

Re: Disable logs on disable of profile?

Post by amartinez »

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: 606
Joined: Tue May 31, 2011 5:59 pm

Re: Disable logs on disable of profile?

Post by cliffhanger »

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: 14
Joined: Mon May 22, 2017 11:09 am

Re: Disable logs on disable of profile?

Post by amartinez »

Thanks for the info!
Post Reply