Sure, here’s one example result row, with desired log message being
2022/05/09 14:39:55 [debug] 28#28: *242912 proxy.lua:26: new(): connection to myadmin.3scale.net:443 established, reused times: 1
Sample result row from Elasticsearch:
{
"@timestamp": "2022-05-09T14:39:55.469Z",
"message": "2022/05/09 14:39:55 [debug] 28#28: *242912 proxy.lua:26: new(): connection to myadmin.3scale.net:443 established, reused times: 1",
"event.created": "2022-05-09T14:39:55.469Z",
"event.kind": "event",
"user.id": "0",
"user.group.id": "0",
"host.architecture": "x86_64",
"host.hostname": "xxx",
"host.id": "xxx",
"host.name": "xxx",
"host.os.name": "Red Hat Enterprise Linux Server",
"host.os.kernel": "3.10.0-1160.59.1.el7.x86_64",
"host.os.codename": "Maipo",
"host.os.type": "linux",
"host.os.platform": "rhel",
"host.os.version": "7.9 (Maipo)",
"host.os.family": "redhat",
"host.containerized": false,
"host.ip": [
xxx
],
"host.mac": [
xxx
],
"journald.gid": 0,
"journald.host.boot_id": "xxx",
"journald.pid": 1326,
"journald.process.capabilities": "1fffffffff",
"journald.process.executable": "/usr/bin/dockerd-current",
"journald.process.command_line": "/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --authorization-plugin=rhel-push-plugin --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json --selinux-enabled --log-driver=journald --signature-verification=false --storage-driver devicemapper --storage-opt dm.fs=xfs --storage-opt dm.thinpooldev=/dev/mapper/vg00-docker--pool --storage-opt dm.use_deferred_removal=true --add-registry registry.access.redhat.com --add-registry registry.redhat.io --add-registry docker.io",
"journald.process.name": "dockerd-current",
"journald.uid": 0,
"systemd.cgroup": "/system.slice/docker.service",
"systemd.slice": "system.slice",
"systemd.unit": "docker.service",
"systemd.transport": "journal",
"ecs.version": "8.0.0",
"log.syslog.priority": 3,
"container.id": "xxx",
"container.name": "apicast",
"container.log.tag": "xxx",
"container.id_truncated": "xxx",
"process.pid": xxx,
"process.command_line": "/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --authorization-plugin=rhel-push-plugin --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json --selinux-enabled --log-driver=journald --signature-verification=false --storage-driver devicemapper --storage-opt dm.fs=xfs --storage-opt dm.thinpooldev=/dev/mapper/vg00-docker--pool --storage-opt dm.use_deferred_removal=true --add-registry registry.access.redhat.com --add-registry registry.redhat.io --add-registry docker.io",
"process.args": [
"/usr/bin/dockerd-current",
"--add-runtime",
"docker-runc=/usr/libexec/docker/docker-runc-current",
"--default-runtime=docker-runc",
"--authorization-plugin=rhel-push-plugin",
"--exec-opt",
"native.cgroupdriver=systemd",
"--userland-proxy-path=/usr/libexec/docker/docker-proxy-current",
"--init-path=/usr/libexec/docker/docker-init-current",
"--seccomp-profile=/etc/docker/seccomp.json",
"--selinux-enabled",
"--log-driver=journald",
"--signature-verification=false",
"--storage-driver",
"devicemapper",
"--storage-opt",
"dm.fs=xfs",
"--storage-opt",
"dm.thinpooldev=/dev/mapper/vg00-docker--pool",
"--storage-opt",
"dm.use_deferred_removal=true",
"--add-registry",
"registry.access.redhat.com",
"--add-registry",
"registry.redhat.io",
"--add-registry",
"docker.io"
],
"process.args_count": 27,
"syslog.priority": 3,
"input.type": "journald",
"agent.type": "filebeat",
"agent.version": "8.1.3",
"agent.ephemeral_id": "xxx",
"agent.id": "xxx,
"agent.name": "xxx"
}