Filebeats - Sending JSON output to Compacted Kafka Topic

Solution:

You don't need json.message_key so commented it out.
Change the Key Name to name of the key you get in the event.

#json.message_key: message
json.keys_under_root: true

key: '%{[Computer Name]}'