-
Notifications
You must be signed in to change notification settings - Fork 126
Closed
Labels
Description
When creating new expected.json files from raw log files, it seems that certain characters are HTML escaped, adding in unicode characters in the generated output.
I would like to know is this is the intended results, as it differs from how the output looked like in beat modules test file generation (which used python).
An example would be zeek logs, here characters like <>
is turned into \u003c
and \u003e
.
Which would turn this example raw event:
"zeek.session_id": "CPRLCB4eWHdjP852Bk",
"zeek.sip.call_id": "8694cd7e-976e4fc3-d76f6e38@172.16.133.19",
"zeek.sip.request.body_length": 0,
"zeek.sip.request.from": "\"AppNeta\" <sip:116954_Boston6@newyork.voip.ms>",
"zeek.sip.request.path": [
"SIP/2.0/UDP 172.16.133.19:5060"
],
"zeek.sip.request.to": "<sip:116954_Boston6@newyork.voip.ms>",
"zeek.sip.response.body_length": 0,
"zeek.sip.response.from": "\"AppNeta\" <sip:116954_Boston6@newyork.voip.ms>",
"zeek.sip.response.path": [
"SIP/2.0/UDP 172.16.133.19:5060"
],
"zeek.sip.response.to": "<sip:116954_Boston6@newyork.voip.ms>;tag=as023f66a5",
"zeek.sip.sequence.method": "REGISTER",
"zeek.sip.sequence.number": "4127",
"zeek.sip.status.code": 401,
"zeek.sip.status.msg": "Unauthorized",
"zeek.sip.transaction_depth": 0,
"zeek.sip.uri": "sip:newyork.voip.ms:5060",
"zeek.sip.user_agent": "PolycomSoundStationIP-SSIP_5000-UA/3.2.4.0267"
To this:
"zeek": {
"session_id": "CPRLCB4eWHdjP852Bk",
"sip": {
"request": {
"path": [
"SIP/2.0/UDP 172.16.133.19:5060"
],
"from": "\"AppNeta\" \u003csip:116954_Boston6@newyork.voip.ms\u003e",
"to": "\u003csip:116954_Boston6@newyork.voip.ms\u003e",
"body_length": 0
},
"sequence": {
"method": "REGISTER",
"number": "4127"
},
"response": {
"path": [
"SIP/2.0/UDP 172.16.133.19:5060"
],
"from": "\"AppNeta\" \u003csip:116954_Boston6@newyork.voip.ms\u003e",
"to": "\u003csip:116954_Boston6@newyork.voip.ms\u003e;tag=as023f66a5",
"body_length": 0
},
"id": {},
"uri": "sip:newyork.voip.ms:5060",
"transaction_depth": 0,
"user_agent": "PolycomSoundStationIP-SSIP_5000-UA/3.2.4.0267",
"call_id": "8694cd7e-976e4fc3-d76f6e38@172.16.133.19",
"status": {
"msg": "Unauthorized",
"code": 401
}
}
},