Hi,
Can someone assist me with breaking the following log data into separate events in the props.conf?
Each event should start with:
{
"Timestamp": "xxxxxxxxxxxx"
And ends with:
}
See belo...
See more...
Hi,
Can someone assist me with breaking the following log data into separate events in the props.conf?
Each event should start with:
{
"Timestamp": "xxxxxxxxxxxx"
And ends with:
}
See below log detail which should be split into two events.
{
"Timestamp": "2024-03-18T07:25:32.208+00:00",
"Level": "ERR",
"Message": "Validation failed: \n -- ProductId: 'Product Id' must be greater than '0'. Severity: Error",
"Properties": {
"RequestId": "0HJYGFTHJK:00000003",
"RequestPath": "/apps/-7/details",
"CorrelationId": "87hjg76-gh678-77h7-ll98-pu7nsb67w567w",
"ConnectionId": "KJUY686GT",
"MachineName": "kic-aiy-tst-heaps-tst-6h6hfjk-980jk",
"SolutionName": "Kic AIY - Test",
"Environment": "test",
"LoggerName": "Kic AIY - Test",
"ApplicationName": "Kic AIY - Test",
"ThreadId": "1",
"ProcessId": "1",
"ProcessUserId": "root",
"SiteName": "Kic AIY - Test"
},
"Exception": {
"ExceptionSource": "Api.Utilities",
"ExceptionType": "FluentValidation.ValidationException",
"ExceptionMessage": "Validation failed: \n -- ProductId: 'Product Id' must be greater than '0'. Severity: Error",
"StackTrace": " at Api.Utilities.Behaviours.ValidationBehavior`2.Handle(TRequest request, RequestHandlerDelegate`1 next, CancellationToken cancellationToken),"
"FileName": null,
"MethodName": "Api.Utilities.Behaviours.ValidationBehavior`2+<Handle>d__2",
"Line": 0,
"Data": null
},
"RequestBody": null,
"Additional": null
}
{
"Timestamp": "2024-03-18T07:15:04.259+00:00",
"Level": "ERR",
"Message": "Validation failed: \n -- ProductId: 'Product Id' must be greater than '0'. Severity: Error",
"Properties": {
"RequestId": "0HJYGFTRJK:00000004",
"RequestPath": "/apps/-7/details",
"CorrelationId": "87hjg76-gh878-77h7-ll98-ku7nsb67w567w",
"ConnectionId": "KJUY686GT",
"MachineName": "kic-aiy-ts2t-heaps-tst2-6h6hfjk-980jk",
"SolutionName": "Kic AIY - Test2",
"Environment": "test",
"LoggerName": "Kic AIY - Test2",
"ApplicationName": "Kic AIY - Test2",
"ThreadId": "1",
"ProcessId": "1",
"ProcessUserId": "root",
"SiteName": "Kic AIY - Test"
},
"Exception": {
"ExceptionSource": "Api.Utilities",
"ExceptionType": "FluentValidation.ValidationException",
"ExceptionMessage": "Validation failed: \n -- ProductId: 'Product Id' must be greater than '0'. Severity: Error",
"StackTrace": " at Api.Utilities.Behaviours.ValidationBehavior`2.Handle(TRequest request, RequestHandlerDelegate`1 next, CancellationToken cancellationToken),"
"FileName": null,
"MethodName": "Api.Utilities.Behaviours.ValidationBehavior`2+<Handle>d__2",
"Line": 0,
"Data": null
},
"RequestBody": null,
"Additional": null
}