Hi Team,
I am trying to parse the mule application logs logstash, tried different options but unable to achieve it.
My sample logs:
2020-12-18 10:27:10,666 [[hl7v2-ORU-message-processor-api].hl7v2-fhir-api-flowsFlow.stage1.01] ERROR com.refarch.logging.dip.ExceptionLoggingInterceptor - {"environment":"devrcf_us-env","applicationName":"hl7v2-ORU-message-processor-api","correlationId":"0-962a5052-411b-11eb-bb83-0623f984381d","apiProcessingTime":245,"totalProcessingTime":64579,"tracePoint":"EXCEPTION","logMessage":"{\n "status": "ERROR",\n "bundleId": "6fd1b970-411b-11eb-bb83-0623f984381d",\n "serviceName": "hl7v2-message-processor Service",\n "errorMessage": "Technical error occurred.",\n "errorDesc": "Exception while executing flowRef common-mapping-custom-flow (java.lang.RuntimeException)."\n}","txnMetadata":{"bundleId":"6fd1b970-411b-11eb-bb83-0623f984381d","messageType":"HL7V2","facilityAlias":"ROCHE","systemName":"REFARCH_V2","messageSubType":"ORU R01","transactionStartTime":1608287166087,"relatesToPatientMerge":false}}
2020-12-21 12:47:38,907 [[hl7v2-message-processor-api].hl7v2-fhir-api-flowsFlow.stage1.01] INFO com.refarch.dip.logging.CustomLoggingInterceptor - {"environment":"devrcf_us-env","applicationName":"hl7v2-message-processor-api","correlationId":"0-b15f1b02-438a-11eb-8eaf-0623f984381d","apiProcessingTime":6376,"totalProcessingTime":8635,"tracePoint":"END","logMessage":null,"txnMetadata":{"bundleId":"b006de03-438a-11eb-8eaf-0623f984381d","messageType":"HL7V2","facilityAlias":"ROCHE","systemName":"REFARCH_V2","messageSubType":"ORM O01","transactionStartTime":1608554850272,"relatesToPatientMerge":false}}
2020-12-21 12:47:30,790 [[object-store-api].object-store-api-httpListenerConfig.worker.652] INFO com.refarch.dip.logging.CustomLoggingInterceptor - {"environment":"devrcf_us-env","applicationName":"object-store-api","correlationId":"0-b0552512-438a-11eb-8eaf-0623f984381d","apiProcessingTime":0,"totalProcessingTime":0,"tracePoint":"START","logMessage":"START Logger","txnMetadata":{"bundleId":"b006de03-438a-11eb-8eaf-0623f984381d","messageType":"HL7V2","facilityAlias":"ROCHE","systemName":"REFARCH_V2","messageSubType":"ORM O01","transactionStartTime":1608554850272,"relatesToPatientMerge":false}}
like this i have different patterns, i want to generalize parsing of the logs and also want view custom fields in kibana like "transaction metada,bundleId,facilityAlias,etc.."
could you please help me to achieve this