#4 Cannot figure out how to input my Pattern Layout

1.0.x
open
nobody
1
2014-03-07
2012-12-05
Anonymous
No

Hello,

Sorry if this is the wrong channel, but I couldn't find another way to reach out to you. I need to analyze some log files for a critical application I support, and your app seems to be just what I need. However, I am stuck at the "Conversion Pattern:" section of adding a log resource. I tried to input the conversion pattern in a few different ways, after reading your user manual, but the next button never becomes clickable, so I assume I am doing it wrong. Here is how the pattern layout is defined in our config file:

<layout type="FlexNet.SystemServices.Logging.Layout.PatternLayout">
        <param name="ConversionPattern" value="%date %level %thread %property{EmployeeNo} %property{ClientId} %property{ProcessingContext} %logger %n %message%n%n" />
      </layout>

Here is a sample of my log file:

2012-11-30 03:10:07,923 ERROR 23 System  (null)  JobId: 120912255    FlexNet.SystemServices.Xml.Configurations.RoutingConfigurationReader.CheckXPathExpression 
    Failed to Interpret XPath Expression /FlexNet.BusinessFacade.Inventory.InventoryAdjustController.Adjust/FlexNet.BusinessRules.Inventory.InventoryAdjuster.Adjust/Containers/Inventories/HostIndicator1 with value NOUPLOAD.

I'm sure I am just missing something. Please let me know what to do to get this to work. If this works for me it will save me hundreds of hours a month digging through log files manually.

Thanks!

-Josh-

Discussion

1 2 > >> (Page 1 of 2)
  • Philipp Nanz
    Philipp Nanz
    2012-12-05

    Hi Josh! Right now, having one log entry that spans multiple lines is not supported. However, I will see what I can do for you. Please send me a sample with 10 to 20 events to philippn AT gmail DOT com or attach it to this issue (if you are allowed to).

    Thanks in advance!

     

  • Anonymous
    2012-12-07

    Here you go. Thanks so much for the help!

    2012-11-30 03:14:30,686 ERROR 5 System   (null)  OperationId: 100003399 | SubOperationId: 100003210  FlexNet.FunctionInterpreter.BusinessRules.Functions.BusinessComponent 
     Failed to execute BC method. Assembly: FlexNet.BusinessFacade.Manufacturing, Version=9.5.0.0, Culture=neutral, PublicKeyToken=33f692327842122b, Class: FlexNet.BusinessFacade.Manufacturing.OrderReporter, MethodName: ReportOrder_v92
    
    System.Runtime.Remoting.RemotingException: Server encountered an internal error. For more information, turn off customErrors in the server's .config file.
    
    Server stack trace: 
    
    Exception rethrown at [0]: 
       at FlexNet.SystemServices.ComponentFactory.BusinessComponentMethod.Invoke()
       at FlexNet.FunctionInterpreter.BusinessRules.Functions.BusinessComponent.Compute(PortValueCollection inputs, PortValueCollection outputs, Boolean& computed)
    2012-11-30 03:14:30,686 ERROR 9 System   (null)  OperationId: 100003399 | SubOperationId: 100003210  FlexNet.FunctionInterpreter.BusinessRules.Functions.BusinessComponent 
     Failed to execute BC method. Assembly: FlexNet.BusinessFacade.Manufacturing, Version=9.5.0.0, Culture=neutral, PublicKeyToken=33f692327842122b, Class: FlexNet.BusinessFacade.Manufacturing.OrderReporter, MethodName: ReportOrder_v92
    
    System.Runtime.Remoting.RemotingException: Server encountered an internal error. For more information, turn off customErrors in the server's .config file.
    
    Server stack trace: 
    
    Exception rethrown at [0]: 
       at FlexNet.SystemServices.ComponentFactory.BusinessComponentMethod.Invoke()
       at FlexNet.FunctionInterpreter.BusinessRules.Functions.BusinessComponent.Compute(PortValueCollection inputs, PortValueCollection outputs, Boolean& computed)
    2012-11-30 03:14:30,686 ERROR 5 System   (null)  OperationId: 100003399  FlexNet.FunctionInterpreter.BusinessFacade.OperationInterpreter 
     Failed to compute operation. OperationID: 100003399, Result: FlexNet.FunctionInterpreter.BusinessRules.Functions.BusinessComponentResult.UnexpectedErrorWhenTryingToExecuteMethod
    
    2012-11-30 03:14:30,686 ERROR 9 System   (null)  OperationId: 100003399  FlexNet.FunctionInterpreter.BusinessFacade.OperationInterpreter 
     Failed to compute operation. OperationID: 100003399, Result: FlexNet.FunctionInterpreter.BusinessRules.Functions.BusinessComponentResult.UnexpectedErrorWhenTryingToExecuteMethod
    
    2012-11-30 03:14:31,279 ERROR 25 System  (null)  OperationId: 100003076  FlexNet.BusinessRules.Printing.Labels.FileSpooler 
     Could not save label to file (c:\temp\MESDestOutput.log).
    
    2012-11-30 03:14:31,279 ERROR 26 System  (null)  OperationId: 100003076  FlexNet.BusinessRules.Printing.Labels.FileSpooler 
     Could not save label to file (c:\temp\MESDestOutput.log).
    
    2012-11-30 03:14:31,279 ERROR 26 System  (null)  OperationId: 100003076  FlexNet.BusinessRules.Printing.Labels.FileSpooler.SpoolLabel 
        Could not save label to file (c:\temp\MESDestOutput.log).
    
    2012-11-30 03:14:31,279 ERROR 25 System  (null)  OperationId: 100003076  FlexNet.BusinessRules.Printing.Labels.FileSpooler.SpoolLabel 
        Could not save label to file (c:\temp\MESDestOutput.log).
    
    2012-11-30 03:14:31,279 ERROR 26 System  (null)  OperationId: 100003076  FlexNet.BusinessRules.Printing.Labels.LabelManager 
     FileSpooler.SpoolLabel() failed.
    
    2012-11-30 03:14:31,279 ERROR 25 System  (null)  OperationId: 100003076  FlexNet.BusinessRules.Printing.Labels.LabelManager 
     FileSpooler.SpoolLabel() failed.
    
    2012-11-30 03:14:31,279 ERROR 26 System  (null)  OperationId: 100003076  FlexNet.FunctionInterpreter.BusinessFacade.OperationInterpreter 
     Failed to compute operation. OperationID: 100003076, Result: FlexNet.BusinessRules.Printing.Labels.LabelOperationResult.CouldNotSaveLabelToFile
    
    2012-11-30 03:14:31,279 ERROR 25 System  (null)  OperationId: 100003076  FlexNet.FunctionInterpreter.BusinessFacade.OperationInterpreter 
     Failed to compute operation. OperationID: 100003076, Result: FlexNet.BusinessRules.Printing.Labels.LabelOperationResult.CouldNotSaveLabelToFile
    
    2012-11-30 03:14:32,964 ERROR 26 System  (null)  OperationId: 100003399 | SubOperationId: 100003210  FlexNet.BusinessRules.Production.Navigation.Puller.BuildMergeTasks 
        WIP_CONTENT_DETAIL record references a non-push WIP_CONTENT. WipContentDetailID: 101069287 WipContentID: 100802343
    
    2012-11-30 03:14:34,306 ERROR 26 System  (null)  OperationId: 100003399 | SubOperationId: 100003210  FlexNet.BusinessRules.Production.Navigation.Puller.BuildMergeTasks 
        WIP_CONTENT_DETAIL record references a non-push WIP_CONTENT. WipContentDetailID: 101069287 WipContentID: 100802343
    
    2012-11-30 03:14:37,692 ERROR 26 System  (null)  OperationId: 100001797 | SubOperationId: 100000823  FlexNet.BusinessFacade.MachineTime.ResourceLaborController.ValidateCreateEvent 
        Open Span Found at time greater than input start time. Open ResourceLaborID : 101463604 StartTime: 11/30/2012 3:14:37 AM 
    
    2012-11-30 03:14:37,692 ERROR 26 System  (null)  OperationId: 100001797  FlexNet.FunctionInterpreter.BusinessFacade.OperationInterpreter 
     Failed to compute operation. OperationID: 100001797, Result: FlexNet.BusinessFacade.MachineTime.ResourceLaborControllerResult.OpenSpanFoundAtLaterTime
    
    2012-11-30 03:14:39,908 ERROR 16 System  (null)  JobId: 120912521    FlexNet.SystemServices.Xml.Configurations.RoutingConfigurationReader.CheckXPathExpression 
        Failed to Interpret XPath Expression /FlexNet.BusinessFacade.Inventory.InventoryMoveController.Move/FlexNet.BusinessRules.Inventory.InventoryMover.Move/Inventories/HostIndicator1 with value NOUPLOAD.
    
    2012-11-30 03:14:39,908 ERROR 16 System  (null)  JobId: 120912521    FlexNet.SystemServices.Xml.Configurations.RoutingConfigurationReader.CheckXPathExpression 
        Failed to Interpret XPath Expression /FlexNet.BusinessFacade.Inventory.InventoryMoveController.Move/FlexNet.BusinessRules.Inventory.InventoryMover.Move/Containers/Inventories/HostIndicator1 with value NOUPLOAD.
    
    2012-11-30 03:14:42,966 ERROR 16 System  (null)  JobId: 120912524    FlexNet.SystemServices.Xml.Configurations.RoutingConfigurationReader.CheckXPathExpression 
        Failed to Interpret XPath Expression /FlexNet.BusinessFacade.Inventory.InventoryAdjustController.Adjust/FlexNet.BusinessRules.Inventory.InventoryAdjuster.Adjust/Containers/Inventories/HostIndicator1 with value NOUPLOAD.
    
    2012-11-30 03:14:42,982 ERROR 11 System  (null)  JobId: 120912527    FlexNet.SystemServices.Xml.Configurations.RoutingConfigurationReader.CheckXPathExpression 
        Failed to Interpret XPath Expression /FlexNet.BusinessFacade.Inventory.InventoryAdjustController.Adjust/FlexNet.BusinessRules.Inventory.InventoryAdjuster.Adjust/Containers/Inventories/HostIndicator1 with value NOUPLOAD.
    
    2012-11-30 03:14:52,079 ERROR 24 System  (null)  JobId: 120912536    FlexNet.SystemServices.Xml.Configurations.RoutingConfigurationReader.CheckXPathExpression 
        Failed to Interpret XPath Expression /FlexNet.BusinessFacade.Inventory.InventoryMoveController.Move/FlexNet.BusinessRules.Inventory.InventoryMover.Move/Inventories/HostIndicator1 with value NOUPLOAD.
    
    2012-11-30 03:14:52,079 ERROR 24 System  (null)  JobId: 120912536    FlexNet.SystemServices.Xml.Configurations.RoutingConfigurationReader.CheckXPathExpression 
        Failed to Interpret XPath Expression /FlexNet.BusinessFacade.Inventory.InventoryMoveController.Move/FlexNet.BusinessRules.Inventory.InventoryMover.Move/Containers/Inventories/HostIndicator1 with value NOUPLOAD.
    
    2012-11-30 03:15:05,280 ERROR 22 System  (null)  JobId: 120912543    FlexNet.SystemServices.Xml.Configurations.RoutingConfigurationReader.CheckXPathExpression 
        Failed to Interpret XPath Expression /FlexNet.BusinessFacade.Inventory.InventoryMoveController.Move/FlexNet.BusinessRules.Inventory.InventoryMover.Move/Inventories/HostIndicator1 with value NOUPLOAD.
    
    2012-11-30 03:15:11,381 ERROR 24 System  (null)  JobId: 120912547    FlexNet.SystemServices.Xml.Configurations.RoutingConfigurationReader.CheckXPathExpression 
        Failed to Interpret XPath Expression /FlexNet.BusinessFacade.Inventory.InventoryMoveController.Move/FlexNet.BusinessRules.Inventory.InventoryMover.Move/Inventories/HostIndicator1 with value NOUPLOAD.
    
     
  • Philipp Nanz
    Philipp Nanz
    2012-12-09

    Hey Josh,
    I have got a partial solution up and running. Partial in that it can parse the log events correctly but the portion "System (null) OperationId: 100001797" is put into a single field, the NDC.
    I will fix this by implementing proper support for MDC, which was also requested some time ago. But I will need a bit more time for that.

    In the meantime, I could offer you a development version that should get you going. Please let me know which flavour you would like (win32 x64, macos, whatever) and then I will upload the bits somewhere.

     

  • Anonymous
    2012-12-10

    Mac OSX would be wonderful. Thanks again so much, you are saving me hours of work here.

    Once I download it, how do I enter the Pattern Layout?

     

  • Anonymous
    2012-12-11

    :-( This one won't even lauch. I am running Mountain Lion on a 15" MacBook Retina. Does that make a difference?

     

  • Anonymous
    2012-12-13

    Definitely running 64-bit:

    jdesh00000-MR:~ jdesherlia$ uname -a
    Darwin jdesh00000-MR.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

    I'm emailing you the .log file. Subject will be

    logsaw .log file from Josh

    Thanks again! Sorry to be such a pain.

    -Josh-

     

  • Anonymous
    2012-12-13

    Definitely running 64-bit:

    jdesh00000-MR:~ jdesherlia$ uname -a
    Darwin jdesh00000-MR.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

    I'm emailing you the .log file. Subject will be

    logsaw .log file from Josh

    Thanks again! Sorry to be such a pain.

    -Josh-

     
  • Philipp Nanz
    Philipp Nanz
    2012-12-16

    Hey Josh, sorry to hear that! I have recently switched the build system and probably the MacOS builds are broken since :-( I have no Mac available, so I can't test myself and the log file you sent seems ok.

    You could try copying over the .exe and .ini file from the 1.0.3 release, maybe that helps. I will check wether the Linux bits work. If Linux is also broken, maybe the root cause is the same as with MacOS (well, at least I hope so).

    Hope that helps!

     
1 2 > >> (Page 1 of 2)


Anonymous


Cancel   Add attachments