Newbie in logstash, 24 hours, so you might find the problem is trivial.
input is multiple records in json format. PFB.
Below is log stash config file. while executing, getting _jsonparsefailure.
input {
stdin{}
}
filter {
json {
source => "message"
}
aggregate {
task_id => "%{[correlationID]}"
code => '
e = "%{[freeText]}"
map["time#e"] = "%{[timestamp]}"
event.cancel
'
push_map_as_event_on_timeout => true
timeout => 120
timeout_code => '
event.set("duration", map("timeProcess Completed").to_f - map("timeProcess Started").to_f)
'
}
}
output {
file {
path => "C:/ELK/inputs/output.log"
}
}
Input :-
*{"auditID":"168975.STO.CDT.16107247327378975","auditType":"INFO","correlationID":"STO.CDT.16107247327378975","jobID":"168975","message":"BusinessServices/SW/SWW/GetCustomerDetails/V001/Logic/getCustomerDetails.process STARTED","freeText":"Process Started","country":"SW","moduleName":"STO","serviceName":"STO","serviceVersion":"5.x","operationName":"getCustomerDetails","operationID":"HYBRIS-getCustomerDetails","operationVersion":"1.0","processName":"BusinessServices/SW/SWW/GetCustomerDetails/V001/Logic/getCustomerDetails.process","status":"IMPLEMENTATION_START","statusCode":20,"sourceSystem":"HYBRIS","targetSystem":"ERP","category":"WSSync","subCategory":"SW","hostName":"localhost","timestamp":"2021-01-15T16:32:12.737+01:00","appNode":"BW5","appSpace":"BW5","domain":"EU_UAT_514"}*
*{"auditID":"168975.STO.CDT.16107247327378975","auditType":"INFO","correlationID":"STO.CDT.16107247327378975","jobID":"168975","message":"BusinessServices/Common/Services/V001/Logic/getCustomerDetails.process STARTED","freeText":"Request Received from Hybris","country":"SW","moduleName":"STO","serviceName":"STO","serviceVersion":"5.x","operationName":"getCustomerDetails","operationID":"HYBRIS-getCustomerDetails","operationVersion":"1.0","processName":"BusinessServices/Common/Services/V001/Logic/getCustomerDetails.process","status":"INTERFACE_START","statusCode":15,"sourceIP":"10.155.42.20","sourceSystem":"HYBRIS","targetSystem":"ERP","category":"WSSync","subCategory":"SW","hostName":"localhost","timestamp":"2021-01-15T16:32:12.737+01:00","appNode":"BW5","appSpace":"BW5","domain":"EU_UAT_514"}*
*{"auditID":"168975.STO.CDT.16107247327378975","auditType":"INFO","correlationID":"STO.CDT.16107247327378975","jobID":"168975","message":"BusinessServices/SW/SWW/GetCustomerDetails/V001/Logic/getCustomerDetails.process COMPLETED","freeText":"Process Completed","country":"SW","moduleName":"STO","serviceName":"STO","serviceVersion":"5.x","operationName":"getCustomerDetails","operationID":"HYBRIS-getCustomerDetails","operationVersion":"1.0","processName":"BusinessServices/SW/SWW/GetCustomerDetails/V001/Logic/getCustomerDetails.process","status":"INTERFACE_END","statusCode":40,"sourceSystem":"HYBRIS","targetSystem":"ERP","category":"WSSync","subCategory":"SW","hostName":"localhost","timestamp":"2021-01-15T16:32:12.75+01:00","appNode":"BW5","appSpace":"BW5","domain":"EU_UAT_514"}*
*{"auditID":"168975.STO.CDT.16107247327378975","auditType":"INFO","correlationID":"STO.CDT.16107247327378975","jobID":"168975","message":"BusinessServices/Common/Services/V001/Logic/getCustomerDetails.process COMPLETED","freeText":"Response Sent to Hybris","country":"SW","moduleName":"STO","serviceName":"STO","serviceVersion":"5.x","operationName":"getCustomerDetails","operationID":"HYBRIS-getCustomerDetails","operationVersion":"1.0","processName":"BusinessServices/Common/Services/V001/Logic/getCustomerDetails.process","status":"INTERFACE_END","statusCode":40,"sourceSystem":"HYBRIS","targetSystem":"ERP","category":"WSSync","subCategory":"SW","hostName":"localhost","timestamp":"2021-01-15T16:32:12.751+01:00","appNode":"BW5","appSpace":"BW5","domain":"EU_UAT_514"}*