Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


Beylie
2014-08-14T10:18:07Z
Hi,

Is the online chat offline?

I need help in understanding what to scrape logs for. We need to identify which jobs / tasks fail using a 3rd party application (Foglight).

Can you kindly provide some examples?
Sponsor
Forum information
Support
2014-08-14T11:04:54Z
To get logs you need to use .NET or Powershell. Currently we only can provide code samples using .NET. Do you need a .NET example or do you not use .NET?
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Beylie
2014-08-14T11:34:02Z
The vendor has a .net cartridge. Please supply an example.

Are there not specific text we can scrape for directly in the logs?
Support
2014-08-15T07:29:12Z
Our developers with add samples to our sample project for doing this and notify you when they are ready.
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Beylie
2014-09-15T07:06:34Z
Any news on the samples yet?
Support
2014-09-15T12:06:11Z
It will be added for next build but it is very easy. If you look in the sample client right now you will see information how you connect. After this you just add this:

                foreach (LogJobHistoryClass jhc in s.Log.GetJobHistory("JobId", DateTime.Now.AddDays(7), DateTime.Now))
                {
                    if (jhc.ExitCode!=0)
                    {
                        // do something
                    }
                }

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Support
2014-09-15T12:09:43Z
If you want to check the Task execution history you have this:

                foreach (LogJobHistoryClass jhc in s.Log.GetJobHistory("JobId", DateTime.Now.AddDays(7), DateTime.Now))
                {
                    foreach (LogTaskHistoryClass thc in s.Log.GetTaskExecutionHistory(jhc.ExecutionId))
                    {

                    }
                }

Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top