From elastic server side's journald log, you can see filebeat process handles the input raw material of journald log without "_HOSTNAME" field.
Nov 12 09:34:05 elk filebeat[9866]: {"log.level":"debug","@timestamp":"2024-11-12T09:34:05.071+0800","log.logger":"processors","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/publisher/processing.debugPrintProcessor.func1","file.name":"processing/processors.go","file.line":213},"message":"Publish event: {\n \"@timestamp\": \"2024-11-12T01:11:43.406Z\",\n \"@metadata\": {\n \"beat\": \"filebeat\",\n \"type\": \"_doc\",\n \"version\": \"8.13.4\"\n },\n \"message\": \"autoyast -- 432\",\n \"input\": {\n \"type\": \"journald\"\n },\n \"user\": {\n \"id\": \"0\",\n \"group\": {\n \"id\": \"0\"\n }\n },\n \"syslog\": {\n \"priority\": 5,\n \"facility\": 1,\n \"identifier\": \"test\"\n },\n \"event\": {\n \"kind\": \"event\",\n \"created\": \"2024-11-12T01:34:05.071Z\"\n },\n \"systemd\": {\n \"transport\": \"syslog\"\n },\n \"agent\": {\n \"type\": \"filebeat\",\n \"version\": \"8.13.4\",\n \"ephemeral_id\": \"07c4d050-3271-45f6-99c8-f6c63a450919\",\n \"id\": \"df87fd63-3f5a-40d7-b76a-f6cae44d7d49\",\n \"name\": \"elk\"\n },\n \"ecs\": {\n \"version\": \"8.0.0\"\n },\n \"journald\": {\n \"host\": {\n \"boot_id\": \"9d993af9d8344305b7b1ea365d8aef7c\"\n },\n \"pid\": 1413,\n \"custom\": {\n \"runtime_scope\": \"system\",\n \"syslog_timestamp\": \"Nov 12 09:11:43 \"\n },\n \"uid\": 0,\n \"gid\": 0\n },\n \"log\": {\n \"syslog\": {\n \"facility\": {\n \"code\": 1\n },\n \"priority\": 5\n }\n },\n \"fields\": {\n \"env\": \"HuangHaiqing\"\n },\n \"host\": {\n \"id\": \"02102896377942289eff1e65ceb1fdff\",\n \"name\": \"elk\",\n \"architecture\": \"x86_64\",\n \"os\": {\n \"type\": \"linux\",\n \"platform\": \"rocky\",\n \"version\": \"8.9 (Green Obsidian)\",\n \"family\": \"redhat\",\n \"name\": \"Rocky Linux\",\n \"kernel\": \"4.18.0-513.24.1.el8_9.x86_64\",\n \"codename\": \"Green Obsidian\"\n },\n \"containerized\": false,\n \"ip\": [\n \"192.168.8.104\",\n \"192.168.31.104\"\n ],\n \"mac\": [\n \"00-50-56-27-27-48\",\n \"00-50-56-2E-6D-8C\"\n ],\n \"hostname\": \"elk\"\n },\n \"process\": {\n \"pid\": 1413\n }\n}","service.name":"filebeat","ecs.version":"1.6.0"}