Skip to content
New issue

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

Some questions #16

Open
djeong113 opened this issue Mar 10, 2023 · 0 comments
Open

Some questions #16

djeong113 opened this issue Mar 10, 2023 · 0 comments

Comments

@djeong113
Copy link

djeong113 commented Mar 10, 2023

Hi.
I have some questions to use your library.

The type of kafka messages I'm getting is json string, (not Avro) and the format of the json is nested json. (The json message is at the below.)
I want to make an output in the following format :
appId=XXXX/date_id=YYYY-MM-dd/hour_id=HH

In summary, it's as follows,
*not avro type
*nested json
can I make it into that format?

{ "header": { "publishTime": 1678351663207, "topicId": "lv20LogbucketLogKafka", "code": "resource", "txNo": 0, "partitionKey": "990312129142715", "appId": "703692", "topicName": "703692-ResourceLog-qa", "qid": 4852333281835336565, "jsonObj": "map" }, "body": { "tag1": null, "repair": false, "publishTime": 1678351663206, "code": "resource", "src": "p1", "slot": 1678351500000, "tag2": null, "logBody": { "accountId": "00000000", "amount": 13628215, "appId": "703692", "channelId": "0_1", "character1Id": "00000000", "character1Nm": "00000000" }, "split": 1, "appId": "703692", "logId": "0e70d060-be57-11ed-b8db-179f3951784b", "marketOrderId": null, "maxSplit": 3, "playerId": "00000000" }, "uri": "log_playerLog" }

Thanks for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant