We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is your feature request related to a problem? Please describe.
We want to be able to decode CloudWatch Logs subscription filters.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html
{ "owner": "111111111111", "logGroup": "CloudTrail/logs", "logStream": "111111111111_CloudTrail/logs_us-east-1", "subscriptionFilters": [ "Destination" ], "messageType": "DATA_MESSAGE", "logEvents": [ { "id": "31953106606966983378809025079804211143289615424298221568", "timestamp": 1432826855000, "message": "{\"eventVersion\":\"1.03\",\"userIdentity\":{\"type\":\"Root\"}" }, { "id": "31953106606966983378809025079804211143289615424298221569", "timestamp": 1432826855000, "message": "{\"eventVersion\":\"1.03\",\"userIdentity\":{\"type\":\"Root\"}" }, { "id": "31953106606966983378809025079804211143289615424298221570", "timestamp": 1432826855000, "message": "{\"eventVersion\":\"1.03\",\"userIdentity\":{\"type\":\"Root\"}" } ] }
There are a few things the existing json codec will have trouble with here.
json
subscriptionFilters
logEvents
logStream
Describe the solution you'd like
I'd like the existing json codec to support a few new features.
codec: json: key_name: logEvents
The key_name matches the json output codec's similar configuration.
key_name
data-prepper/data-prepper-plugins/parse-json-processor/src/main/java/org/opensearch/dataprepper/plugins/codec/json/JsonOutputCodecConfig.java
Lines 13 to 15 in 76d76fc
codec: json: include_keys: ['owner', logGroup', 'logStream' ]
This would output events like the following:
{ "id": "31953106606966983378809025079804211143289615424298221568", "timestamp": 1432826855000, "message": "{\"eventVersion\":\"1.03\",\"userIdentity\":{\"type\":\"Root\"}", "owner": "111111111111", "logGroup": "CloudTrail/logs", "logStream": "111111111111_CloudTrail/logs_us-east-1", }
codec: json: include_keys_metadata: ['owner', logGroup', 'logStream' ]
The text was updated successfully, but these errors were encountered:
I would like to work on this issue. Could you please assign this to me.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
We want to be able to decode CloudWatch Logs subscription filters.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html
There are a few things the existing
json
codec will have trouble with here.subscriptionFilters
rather thanlogEvents
.logStream
.Describe the solution you'd like
I'd like the existing
json
codec to support a few new features.The
key_name
matches thejson
output codec's similar configuration.data-prepper/data-prepper-plugins/parse-json-processor/src/main/java/org/opensearch/dataprepper/plugins/codec/json/JsonOutputCodecConfig.java
Lines 13 to 15 in 76d76fc
This would output events like the following:
The text was updated successfully, but these errors were encountered: