Hi,
Im shipping aws logs to elastic with the use of functionbeat.
I have recently added the following processor to my configuration, so that im able decode the json that is usually in the message
field.
processors:
- decode_json_fields:
fields: ["message"]
process_array: false
max_depth: 1
target: ""
overwrite_keys: false ## also tested with true
add_error_key: true
However logs have stopped appearing since adding it.
example log:
{
"_index": "functionbeat-7.9.2-2020.10.01-000001",
"_type": "_doc",
"_id": "LFom-HQBtUOF3QRT8N9L",
"_version": 1,
"_score": null,
"_source": {
"@timestamp": "2020-10-05T09:45:29.765Z",
"owner": "<redacted>",
"log_group": "/aws/lambda/discovery-production-twitch",
"agent": {
"id": "94593fd1-28ef-4dec-b105-6d34277b5466",
"name": "169.254.173.37",
"type": "functionbeat",
"version": "7.9.2",
"hostname": "169.254.173.37",
"ephemeral_id": "926e9ba3-b05a-4015-9d70-1c746527505d"
},
"message": "{\"message\":{\"log_type\":\"ProcessTopStreamsByGame\",\"event\":\"ER_DUP_ENTRY\",\"payload\":{\"person_id\":\"588b38c3-bb8f-480f-927b-d39c351f3022\",\"game_id\":\"b1c0aa01-3420-4b63-b396-8f78dea14c96\"}},\"level\":\"info\",\"timestamp\":\"2020-10-05T09:45:29.765Z\"}\n",
"log_stream": "2020/10/05/[$LATEST]583fc23d95c64c198505873a81d37ff8",
"message_type": "DATA_MESSAGE",
"subscription_filters": [
"fnb-cloudwatch-stack-fnbcloudwatchSFawslambdadiscoveryproductiontwitch-OQDR276VW93N"
],
"event": {
"kind": "event"
},
"id": "35723365920675619124080672790578666189065578275236872390",
"cloud": {
"provider": "aws"
},
"ecs": {
"version": "1.5.0"
},
"host": {
"name": "169.254.173.37",
"ip": [
"169.254.76.1",
"169.254.79.1",
"169.254.80.2"
],
"mac": [
"7e:4d:06:88:d3:72",
"66:87:d3:39:68:d4",
"5a:86:f0:a2:54:61"
],
"hostname": "169.254.173.37",
"architecture": "x86_64",
"os": {
"version": "2018.03",
"family": "redhat",
"name": "Amazon Linux AMI",
"kernel": "4.14.177-104.253.amzn2.x86_64",
"platform": "amzn"
},
"containerized": true
}
},
"fields": {
"@timestamp": [
"2020-10-05T09:45:29.765Z"
]
},
"highlight": {
"log_group": [
"/@kibana-highlighted-field@aws@/kibana-highlighted-field@/@kibana-highlighted-field@lambda@/kibana-highlighted-field@/@kibana-highlighted-field@discovery@/kibana-highlighted-field@-@kibana-highlighted-field@production@/kibana-highlighted-field@-@kibana-highlighted-field@twitch@/kibana-highlighted-field@"
]
},
"sort": [
1601891129765
]
}