I need to be able to control the comparison of two log4j files that should be identical except for their initial timestamp and some memory reference values. An example would be
Left file:
2018-10-25 15:05:42,858 TRACE QuartzScheduler_Worker-1 sailpoint.api.Workflower:113 - Entering <init>(con = [email protected])
Right file:
2018-10-25 15:45:00,272 TRACE QuartzScheduler_Worker-1 sailpoint.api.Workflower:113 - Entering <init>(con = [email protected])
So I need to be able to control this. These two lines should be identical, but they differ in the timestamp and the memory reference value associated with the class sailpoint.server.InternalContext
The reference I saw for developing conversion scripts seemed to be for a specific type of file with a custom script which I don't want to hack. Is there a reference where I can just get a do this do that in order to write a conversion script? I will probably just write a C program to do this. I would love to be able to actually send the log4j ConversionPattern and have some arguments to pull or not pull the data.
My ConversionPattern is %d{ISO8601} %5p %t %c{4}:%L - %m%n
Has anyone done this, or can I just do this with grammar?
Keith Smith
Left file:
2018-10-25 15:05:42,858 TRACE QuartzScheduler_Worker-1 sailpoint.api.Workflower:113 - Entering <init>(con = [email protected])
Right file:
2018-10-25 15:45:00,272 TRACE QuartzScheduler_Worker-1 sailpoint.api.Workflower:113 - Entering <init>(con = [email protected])
So I need to be able to control this. These two lines should be identical, but they differ in the timestamp and the memory reference value associated with the class sailpoint.server.InternalContext
The reference I saw for developing conversion scripts seemed to be for a specific type of file with a custom script which I don't want to hack. Is there a reference where I can just get a do this do that in order to write a conversion script? I will probably just write a C program to do this. I would love to be able to actually send the log4j ConversionPattern and have some arguments to pull or not pull the data.
My ConversionPattern is %d{ISO8601} %5p %t %c{4}:%L - %m%n
Has anyone done this, or can I just do this with grammar?
Keith Smith
Comment