-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[feature request] Parsing 1 JSON Blob per line (log analysis) #638
Copy link
Copy link
Closed
Description
I find myself looking at output like :
{"level":20,"time":1568138958880,"pid":41,"hostname":"metal-manager-6f8756975-l5kmf","reqId":75,"msg":"DEBUG: StateTransition: from=boot-1 to=boot-1 mac=08:00:27:57:3f:ac","v":1}
{"level":30,"time":1568138958884,"pid":41,"hostname":"metal-manager-6f8756975-l5kmf","reqId":75,"res":{"statusCode":200},"responseTime":8.08464601635933,"msg":"request completed","v":1}
{"level":30,"time":1568138959571,"pid":41,"hostname":"metal-manager-6f8756975-l5kmf","reqId":76,"req":{"method":"GET","url":"/api/v1/cluster/3/discovery/initrd/08:00:27:57:3f:ac","hostname":"api.app.rick0i.dev.superhub.io","remoteAd
dress":"10.2.0.27","remotePort":44214},"msg":"incoming request","v":1}
{"level":20,"time":1568138959574,"pid":41,"hostname":"metal-manager-6f8756975-l5kmf","reqId":76,"msg":"DEBUG: StateTransition: from=boot-1 to=discover mac=08:00:27:57:3f:ac","v":1}
{"level":30,"time":1568138959576,"pid":41,"hostname":"metal-manager-6f8756975-l5kmf","reqId":76,"res":{"statusCode":200},"responseTime":5.444788008928299,"msg":"request completed","v":1}
{"level":30,"time":1568138969953,"pid":41,"hostname":"metal-manager-6f8756975-l5kmf","reqId":77,"req":{"method":"POST","url":"/api/v1/cluster/3/discovery/facts/08:00:27:5d:fa:f8","hostname":"api.app.rick0i.dev.superhub.io","remoteAd
dress":"10.2.0.27","remotePort":44398},"msg":"incoming request","v":1}
I would like to filter/cut and sort it. It would be nice if there was a --lines switch for the from-json function.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels