Workflow Soluiton

 View Only
  • 1.  Filtering Event Log Data with W/F ?

    Posted Jul 04, 2011 10:27 PM

    G'day all, i am building a POC Server Monitoring workflow, and one of the features I want is to collect any System Log errors in the last day and add them to an Email - this is jus tthe first stage, alter I'll add some smarts, but for the moment its a POC

     

    I have found the 'Read Event Log' component (LogicBase.Components.Default.ReadEventLog) and used it successfully, it adds all the info for a certain date to the email.

     

    What I am struggling with, is filtering this information.

    The Component has a basic 'Source' Filter, but I want to filter on 'Entry Type'

    So i thought that i would need to have the array checked by a "Text Contains' loop, but the data Type is  [EventLogItem] and not recognised as text !

     

    Has anyone got any ideas or suggestions ?

    Cheers



  • 2.  RE: Filtering Event Log Data with W/F ?

    Posted Jul 05, 2011 12:24 PM

    Use a Convert To Text (ToString) component to convert that EventLogEntryType enumeration to Text... then you can use the Text Contains component.

     

    Another option is to use the Enum Rule using the EventLogEntryType enumeration...