From b1aa5ff31307d11a3c9b4dd08c3cd6230d935ec5 Mon Sep 17 00:00:00 2001 From: Sjon Hortensius Date: Tue, 2 Jul 2019 10:46:12 +0200 Subject: [PATCH] Fix #6 - remove fields we don't use from struct definition while ute errors can be fixed - we don't use it anyway so removing them is easier --- SystemdJournal2Gelf.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/SystemdJournal2Gelf.go b/SystemdJournal2Gelf.go index edd6e36..061ea70 100644 --- a/SystemdJournal2Gelf.go +++ b/SystemdJournal2Gelf.go @@ -18,27 +18,14 @@ import ( https://github.com/Graylog2/graylog2-docs/wiki/GELF */ type SystemdJournalEntry struct { - Cursor string `json:"__CURSOR"` Realtime_timestamp int64 `json:"__REALTIME_TIMESTAMP,string"` - Monotonic_timestamp string `json:"__MONOTONIC_TIMESTAMP"` Boot_id string `json:"_BOOT_ID"` - Transport string `json:"_TRANSPORT"` Priority int32 `json:"PRIORITY,string"` - Syslog_facility string `json:"SYSLOG_FACILITY"` Syslog_identifier string `json:"SYSLOG_IDENTIFIER"` Message string `json:"MESSAGE"` Pid string `json:"_PID"` Uid string `json:"_UID"` - Gid string `json:"_GID"` - Comm string `json:"_COMM"` - Exe string `json:"_EXE"` - Cmdline string `json:"_CMDLINE"` - Systemd_cgroup string `json:"_SYSTEMD_CGROUP"` - Systemd_session string `json:"_SYSTEMD_SESSION"` - Systemd_owner_uid string `json:"_SYSTEMD_OWNER_UID"` Systemd_unit string `json:"_SYSTEMD_UNIT"` - Source_realtime_timestamp string `json:"_SOURCE_REALTIME_TIMESTAMP"` - Machine_id string `json:"_MACHINE_ID"` Hostname string `json:"_HOSTNAME"` FullMessage string `json:"-"` }