From b22bbcc986dc6d425ed0007d16e12f6ca44318e2 Mon Sep 17 00:00:00 2001 From: Ivan Fernandez Calvo Date: Mon, 31 Aug 2020 13:39:37 +0200 Subject: [PATCH 1/2] fix: update docs --- auditbeat/helper/hasher/hasher.go | 3 +- auditbeat/module/auditd/audit_linux.go | 1 - auditbeat/module/auditd/audit_linux_test.go | 1 - auditbeat/module/auditd/mock_linux_test.go | 1 - auditbeat/module/auditd/show_linux.go | 1 - auditbeat/module/file_integrity/config.go | 1 - .../module/file_integrity/config_test.go | 1 - auditbeat/module/file_integrity/event.go | 2 +- .../module/file_integrity/metricset_test.go | 4 +- .../file_integrity/monitor/monitor_test.go | 2 +- filebeat/autodiscover/builder/hints/logs.go | 2 - filebeat/fileset/fileset.go | 2 - filebeat/input/kafka/input.go | 2 +- filebeat/input/log/config.go | 2 - filebeat/input/syslog/config.go | 2 - filebeat/input/syslog/parser.go | 100 +----------------- filebeat/input/tcp/config.go | 2 - filebeat/input/udp/config.go | 2 - filebeat/input/unix/config.go | 2 - filebeat/input/v2/compat/compat.go | 1 - filebeat/input/v2/input-cursor/store.go | 1 - filebeat/inputsource/tcp/server_test.go | 1 - filebeat/inputsource/udp/server.go | 2 - filebeat/inputsource/unix/server_test.go | 1 - filebeat/modules.d/iis.yml.disabled | 2 +- .../autodiscover/builder/hints/monitors.go | 2 - heartbeat/hbtest/hbtestutil.go | 1 - heartbeat/hbtestllext/validators.go | 4 - .../active/dialchain/tlsmeta/tlsmeta_test.go | 1 - heartbeat/monitors/active/http/http_test.go | 3 +- heartbeat/monitors/active/http/respbody.go | 2 - .../monitors/active/http/respbody_test.go | 1 - heartbeat/monitors/active/icmp/icmp_test.go | 1 - heartbeat/monitors/active/tcp/socks5_test.go | 2 - heartbeat/monitors/active/tcp/tcp_test.go | 1 - heartbeat/monitors/active/tcp/tls_test.go | 1 - heartbeat/monitors/jobs/job_test.go | 1 - heartbeat/monitors/mocks_test.go | 1 - heartbeat/monitors/task_test.go | 1 - heartbeat/monitors/wrappers/monitors_test.go | 1 - heartbeat/monitors/wrappers/util_test.go | 1 - journalbeat/checkpoint/file_windows.go | 4 +- libbeat/autodiscover/builder.go | 2 - libbeat/autodiscover/builder_test.go | 2 - .../providers/kubernetes/config_test.go | 2 - libbeat/autodiscover/template/config.go | 2 - libbeat/common/cfgtype/byte_size.go | 2 - libbeat/common/event_test.go | 2 +- .../kubernetes/metadata/resource_test.go | 2 - libbeat/common/seccomp/policy_linux_386.go | 4 - libbeat/common/seccomp/policy_linux_amd64.go | 4 - libbeat/common/seccomp/policy_linux_arm.go | 2 - libbeat/common/seccomp/seccomp.go | 1 - .../common/transport/transptest/testing.go | 2 +- libbeat/idxmgmt/std_test.go | 22 ++-- libbeat/keystore/keystore.go | 1 - libbeat/kibana/fields_transformer.go | 4 +- libbeat/logp/core.go | 2 - libbeat/outputs/codec/common.go | 1 - libbeat/processors/fingerprint/hash.go | 2 +- .../script/javascript/module/net/net_test.go | 4 +- libbeat/publisher/queue/spool/codec.go | 1 - libbeat/publisher/queue/spool/config.go | 1 - libbeat/publisher/queue/spool/module.go | 1 - libbeat/publisher/queue/spool/spool.go | 1 - libbeat/publisher/queue/spool/spool_test.go | 1 - .../autodiscover/builder/hints/metrics.go | 2 - metricbeat/helper/labelhash/hash.go | 2 +- .../elasticsearch_integration_test.go | 6 +- .../module/elasticsearch/enrich/data_xpack.go | 16 +-- metricbeat/module/envoyproxy/server/data.go | 32 +++--- .../module/kvm/dommemstat/dommemstat.go | 1 - metricbeat/module/kvm/status/status.go | 1 - metricbeat/module/mongodb/metricset.go | 2 +- .../module/mongodb/replstatus/replstatus.go | 2 - .../module/windows/perfmon/config_test.go | 1 - packetbeat/flows/worker_test.go | 2 - packetbeat/sniffer/afpacket_linux.go | 4 +- winlogbeat/checkpoint/file_windows.go | 4 +- winlogbeat/sys/wineventlog/renderer.go | 2 +- x-pack/auditbeat/cache/cache_test.go | 2 +- x-pack/auditbeat/module/system/host/host.go | 2 +- .../module/system/package/package.go | 2 +- .../module/system/process/process.go | 2 +- .../system/socket/dns/afpacket/afpacket.go | 1 - .../module/system/socket/socket_linux.go | 1 - x-pack/auditbeat/module/system/user/user.go | 2 +- x-pack/auditbeat/tracing/perfevent.go | 2 - x-pack/elastic-agent/magefile.go | 1 - .../pkg/agent/operation/monitoring.go | 2 - .../pkg/agent/storage/storage.go | 2 - .../artifact/download/composed/downloader.go | 2 - .../artifact/download/composed/verifier.go | 2 - .../pkg/artifact/install/zip/zip_installer.go | 2 - x-pack/elastic-agent/pkg/config/config.go | 1 - .../elastic-agent/pkg/fleetapi/enroll_cmd.go | 2 - x-pack/elastic-agent/pkg/reporter/reporter.go | 2 - x-pack/filebeat/input/httpjson/input.go | 1 - x-pack/filebeat/input/netflow/config.go | 2 - x-pack/filebeat/input/netflow/convert.go | 2 +- .../module/cisco/ios/pipeline_test.go | 1 - .../processors/decode_cef/cef/parser.go | 34 +----- .../manager/aws/template_builder.go | 4 +- .../functionbeat/provider/aws/aws/config.go | 2 - x-pack/libbeat/common/cloudfoundry/cache.go | 2 - .../cloudfoundry/cache_integration_test.go | 2 - .../libbeat/common/cloudfoundry/cache_test.go | 1 - .../common/cloudfoundry/config_test.go | 2 - .../common/cloudfoundry/dopplerconsumer.go | 1 - x-pack/libbeat/common/cloudfoundry/hub.go | 1 - .../add_cloudfoundry_metadata_test.go | 1 - .../module/azure/billing/data_test.go | 8 +- .../azure/compute_vm/client_helper_test.go | 6 +- .../compute_vm_scaleset/client_helper_test.go | 6 +- .../azure/monitor/client_helper_test.go | 6 +- .../azure/storage/client_helper_test.go | 4 +- .../googlecloud/metrics/compute/metadata.go | 1 - 117 files changed, 87 insertions(+), 344 deletions(-) diff --git a/auditbeat/helper/hasher/hasher.go b/auditbeat/helper/hasher/hasher.go index cc4c928867e..16c65cbe4f6 100644 --- a/auditbeat/helper/hasher/hasher.go +++ b/auditbeat/helper/hasher/hasher.go @@ -30,8 +30,7 @@ import ( "strings" "time" - "github.com/cespare/xxhash/v2" - "github.com/dustin/go-humanize" + "github.com/cespare/xxhash" "github.com/joeshaw/multierror" "github.com/pkg/errors" "golang.org/x/crypto/blake2b" diff --git a/auditbeat/module/auditd/audit_linux.go b/auditbeat/module/auditd/audit_linux.go index 1586eaeaffa..01d7280ed29 100644 --- a/auditbeat/module/auditd/audit_linux.go +++ b/auditbeat/module/auditd/audit_linux.go @@ -35,7 +35,6 @@ import ( "github.com/elastic/beats/v7/libbeat/monitoring" "github.com/elastic/beats/v7/metricbeat/mb" "github.com/elastic/beats/v7/metricbeat/mb/parse" - "github.com/elastic/go-libaudit/v2" "github.com/elastic/go-libaudit/v2/aucoalesce" "github.com/elastic/go-libaudit/v2/auparse" "github.com/elastic/go-libaudit/v2/rule" diff --git a/auditbeat/module/auditd/audit_linux_test.go b/auditbeat/module/auditd/audit_linux_test.go index ec0997ef340..f5e379d2333 100644 --- a/auditbeat/module/auditd/audit_linux_test.go +++ b/auditbeat/module/auditd/audit_linux_test.go @@ -40,7 +40,6 @@ import ( "github.com/elastic/beats/v7/libbeat/mapping" "github.com/elastic/beats/v7/metricbeat/mb" mbtest "github.com/elastic/beats/v7/metricbeat/mb/testing" - "github.com/elastic/go-libaudit/v2" "github.com/elastic/go-libaudit/v2/auparse" ) diff --git a/auditbeat/module/auditd/mock_linux_test.go b/auditbeat/module/auditd/mock_linux_test.go index 13239eb9455..cdcd3849326 100644 --- a/auditbeat/module/auditd/mock_linux_test.go +++ b/auditbeat/module/auditd/mock_linux_test.go @@ -23,7 +23,6 @@ import ( "errors" "syscall" - "github.com/elastic/go-libaudit/v2" "github.com/elastic/go-libaudit/v2/auparse" ) diff --git a/auditbeat/module/auditd/show_linux.go b/auditbeat/module/auditd/show_linux.go index 856697086ab..c9fa31b894b 100644 --- a/auditbeat/module/auditd/show_linux.go +++ b/auditbeat/module/auditd/show_linux.go @@ -24,7 +24,6 @@ import ( "github.com/pkg/errors" "github.com/spf13/cobra" - "github.com/elastic/go-libaudit/v2" "github.com/elastic/go-libaudit/v2/rule" "github.com/elastic/beats/v7/auditbeat/cmd" diff --git a/auditbeat/module/file_integrity/config.go b/auditbeat/module/file_integrity/config.go index c280fb52d0e..692dd8e2f95 100644 --- a/auditbeat/module/file_integrity/config.go +++ b/auditbeat/module/file_integrity/config.go @@ -22,7 +22,6 @@ import ( "sort" "strings" - "github.com/dustin/go-humanize" "github.com/joeshaw/multierror" "github.com/pkg/errors" diff --git a/auditbeat/module/file_integrity/config_test.go b/auditbeat/module/file_integrity/config_test.go index c0097fc086e..ffa00635c40 100644 --- a/auditbeat/module/file_integrity/config_test.go +++ b/auditbeat/module/file_integrity/config_test.go @@ -27,7 +27,6 @@ import ( "github.com/stretchr/testify/assert" "github.com/elastic/beats/v7/libbeat/common" - "github.com/elastic/go-ucfg" ) func TestConfig(t *testing.T) { diff --git a/auditbeat/module/file_integrity/event.go b/auditbeat/module/file_integrity/event.go index 41e4d5a3795..4b74f210a0c 100644 --- a/auditbeat/module/file_integrity/event.go +++ b/auditbeat/module/file_integrity/event.go @@ -34,7 +34,7 @@ import ( "strings" "time" - "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash" "github.com/pkg/errors" "golang.org/x/crypto/blake2b" "golang.org/x/crypto/sha3" diff --git a/auditbeat/module/file_integrity/metricset_test.go b/auditbeat/module/file_integrity/metricset_test.go index 43fa02d15f7..ceda6636393 100644 --- a/auditbeat/module/file_integrity/metricset_test.go +++ b/auditbeat/module/file_integrity/metricset_test.go @@ -206,7 +206,7 @@ func TestExcludedFiles(t *testing.T) { } wanted := map[string]bool{ - dir: true, + dir: true, filepath.Join(dir, "FILE.TXT"): true, filepath.Join(dir, ".gitignore"): true, } @@ -271,7 +271,7 @@ func TestIncludedExcludedFiles(t *testing.T) { } wanted := map[string]bool{ - dir: true, + dir: true, filepath.Join(dir, ".ssh"): true, filepath.Join(dir, ".ssh/known_hosts"): true, } diff --git a/auditbeat/module/file_integrity/monitor/monitor_test.go b/auditbeat/module/file_integrity/monitor/monitor_test.go index 9b028bae83a..8bac476ea02 100644 --- a/auditbeat/module/file_integrity/monitor/monitor_test.go +++ b/auditbeat/module/file_integrity/monitor/monitor_test.go @@ -248,7 +248,7 @@ func TestRecursiveSubdirPermissions(t *testing.T) { // File "b/b" is missing because a watch to b couldn't be installed expected := map[string]fsnotify.Op{ - dest: fsnotify.Create, + dest: fsnotify.Create, filepath.Join(dest, "a"): fsnotify.Create, filepath.Join(dest, "a/a"): fsnotify.Create, filepath.Join(dest, "b"): fsnotify.Create, diff --git a/filebeat/autodiscover/builder/hints/logs.go b/filebeat/autodiscover/builder/hints/logs.go index 05014134106..212fbba61b4 100644 --- a/filebeat/autodiscover/builder/hints/logs.go +++ b/filebeat/autodiscover/builder/hints/logs.go @@ -21,8 +21,6 @@ import ( "fmt" "regexp" - "github.com/elastic/go-ucfg" - "github.com/elastic/beats/v7/filebeat/fileset" "github.com/elastic/beats/v7/filebeat/harvester" "github.com/elastic/beats/v7/libbeat/autodiscover" diff --git a/filebeat/fileset/fileset.go b/filebeat/fileset/fileset.go index 5d77d234db0..1b7c8fc82a8 100644 --- a/filebeat/fileset/fileset.go +++ b/filebeat/fileset/fileset.go @@ -32,8 +32,6 @@ import ( "strings" "text/template" - "github.com/elastic/go-ucfg" - errw "github.com/pkg/errors" "gopkg.in/yaml.v2" diff --git a/filebeat/input/kafka/input.go b/filebeat/input/kafka/input.go index add3c664224..2e1d42aa707 100644 --- a/filebeat/input/kafka/input.go +++ b/filebeat/input/kafka/input.go @@ -110,7 +110,7 @@ func (input *kafkaInput) runConsumerGroup( outlet: input.outlet, // expandEventListFromField will be assigned the configuration option expand_event_list_from_field expandEventListFromField: input.config.ExpandEventListFromField, - log: input.log, + log: input.log, } input.saramaWaitGroup.Add(1) diff --git a/filebeat/input/log/config.go b/filebeat/input/log/config.go index c5f9f2049da..837aecb64d6 100644 --- a/filebeat/input/log/config.go +++ b/filebeat/input/log/config.go @@ -22,8 +22,6 @@ import ( "path/filepath" "time" - "github.com/dustin/go-humanize" - cfg "github.com/elastic/beats/v7/filebeat/config" "github.com/elastic/beats/v7/filebeat/harvester" "github.com/elastic/beats/v7/filebeat/input/file" diff --git a/filebeat/input/syslog/config.go b/filebeat/input/syslog/config.go index ff009bfb1dd..09eeec531cb 100644 --- a/filebeat/input/syslog/config.go +++ b/filebeat/input/syslog/config.go @@ -21,8 +21,6 @@ import ( "fmt" "time" - "github.com/dustin/go-humanize" - "github.com/elastic/beats/v7/filebeat/harvester" "github.com/elastic/beats/v7/filebeat/inputsource" netcommon "github.com/elastic/beats/v7/filebeat/inputsource/common" diff --git a/filebeat/input/syslog/parser.go b/filebeat/input/syslog/parser.go index f643bc7d7b3..16754a766f3 100644 --- a/filebeat/input/syslog/parser.go +++ b/filebeat/input/syslog/parser.go @@ -16,6 +16,7 @@ // under the License. //line parser.rl:1 + // Code generated by ragel DO NOT EDIT. package syslog @@ -28,7 +29,6 @@ const syslog_en_main int = 0 const syslog_en_catch_all int = 1 //line parser.rl:9 - var ( noDuplicates = []byte{'-', '.'} ) @@ -322,17 +322,14 @@ func Parse(data []byte, event *event) { goto tr0 tr0: //line parser.rl:22 - tok = p goto st2 tr75: //line parser.rl:97 - event.SetSequence(data[tok:p]) //line parser.rl:22 - tok = p goto st2 @@ -345,7 +342,6 @@ func Parse(data []byte, event *event) { goto st2 tr1: //line parser.rl:22 - tok = p goto st3 @@ -403,7 +399,6 @@ func Parse(data []byte, event *event) { goto st2 tr17: //line parser.rl:38 - event.SetYear(data[tok:p]) goto st7 @@ -419,7 +414,6 @@ func Parse(data []byte, event *event) { goto st2 tr19: //line parser.rl:22 - tok = p goto st8 @@ -444,7 +438,6 @@ func Parse(data []byte, event *event) { goto st2 tr21: //line parser.rl:42 - event.SetMonthNumeric(data[tok:p]) goto st10 @@ -460,7 +453,6 @@ func Parse(data []byte, event *event) { goto st2 tr22: //line parser.rl:22 - tok = p goto st11 @@ -493,7 +485,6 @@ func Parse(data []byte, event *event) { goto st2 tr24: //line parser.rl:46 - event.SetDay(data[tok:p]) goto st13 @@ -512,7 +503,6 @@ func Parse(data []byte, event *event) { goto st2 tr25: //line parser.rl:22 - tok = p goto st14 @@ -537,7 +527,6 @@ func Parse(data []byte, event *event) { goto st2 tr28: //line parser.rl:50 - event.SetHour(data[tok:p]) goto st16 @@ -553,7 +542,6 @@ func Parse(data []byte, event *event) { goto st2 tr29: //line parser.rl:22 - tok = p goto st17 @@ -578,7 +566,6 @@ func Parse(data []byte, event *event) { goto st2 tr31: //line parser.rl:54 - event.SetMinute(data[tok:p]) goto st19 @@ -594,7 +581,6 @@ func Parse(data []byte, event *event) { goto st2 tr32: //line parser.rl:22 - tok = p goto st20 @@ -635,19 +621,16 @@ func Parse(data []byte, event *event) { goto st2 tr34: //line parser.rl:58 - event.SetSecond(data[tok:p]) goto st22 tr61: //line parser.rl:93 - event.SetTimeZone(data[tok:p]) goto st22 tr68: //line parser.rl:62 - event.SetNanosecond(data[tok:p]) goto st22 @@ -683,11 +666,9 @@ func Parse(data []byte, event *event) { goto tr0 tr39: //line parser.rl:22 - tok = p //line parser.rl:70 - if p-1 > 0 { for _, b := range noDuplicates { if data[p] == b && data[p-1] == b { @@ -702,7 +683,6 @@ func Parse(data []byte, event *event) { goto st23 tr42: //line parser.rl:70 - if p-1 > 0 { for _, b := range noDuplicates { if data[p] == b && data[p-1] == b { @@ -747,11 +727,9 @@ func Parse(data []byte, event *event) { goto st2 tr40: //line parser.rl:22 - tok = p //line parser.rl:70 - if p-1 > 0 { for _, b := range noDuplicates { if data[p] == b && data[p-1] == b { @@ -766,7 +744,6 @@ func Parse(data []byte, event *event) { goto st24 tr43: //line parser.rl:70 - if p-1 > 0 { for _, b := range noDuplicates { if data[p] == b && data[p-1] == b { @@ -818,7 +795,6 @@ func Parse(data []byte, event *event) { goto st2 tr45: //line parser.rl:81 - event.SetHostname(data[tok:p]) goto st25 @@ -842,7 +818,6 @@ func Parse(data []byte, event *event) { goto tr47 tr47: //line parser.rl:22 - tok = p goto st26 @@ -868,7 +843,6 @@ func Parse(data []byte, event *event) { goto st26 tr49: //line parser.rl:85 - event.SetProgram(data[tok:p]) goto st27 @@ -900,7 +874,6 @@ func Parse(data []byte, event *event) { goto tr0 tr50: //line parser.rl:85 - event.SetProgram(data[tok:p]) goto st29 @@ -916,7 +889,6 @@ func Parse(data []byte, event *event) { goto st2 tr52: //line parser.rl:22 - tok = p goto st30 @@ -935,7 +907,6 @@ func Parse(data []byte, event *event) { goto st2 tr54: //line parser.rl:89 - event.SetPid(data[tok:p]) goto st31 @@ -963,7 +934,6 @@ func Parse(data []byte, event *event) { goto st2 tr46: //line parser.rl:70 - if p-1 > 0 { for _, b := range noDuplicates { if data[p] == b && data[p-1] == b { @@ -976,7 +946,6 @@ func Parse(data []byte, event *event) { } //line parser.rl:81 - event.SetHostname(data[tok:p]) goto st33 @@ -1019,7 +988,6 @@ func Parse(data []byte, event *event) { goto st2 tr57: //line parser.rl:70 - if p-1 > 0 { for _, b := range noDuplicates { if data[p] == b && data[p-1] == b { @@ -1034,7 +1002,6 @@ func Parse(data []byte, event *event) { goto st34 tr58: //line parser.rl:70 - if p-1 > 0 { for _, b := range noDuplicates { if data[p] == b && data[p-1] == b { @@ -1047,7 +1014,6 @@ func Parse(data []byte, event *event) { } //line parser.rl:81 - event.SetHostname(data[tok:p]) goto st34 @@ -1090,11 +1056,9 @@ func Parse(data []byte, event *event) { goto st2 tr41: //line parser.rl:22 - tok = p //line parser.rl:70 - if p-1 > 0 { for _, b := range noDuplicates { if data[p] == b && data[p-1] == b { @@ -1109,7 +1073,6 @@ func Parse(data []byte, event *event) { goto st35 tr44: //line parser.rl:70 - if p-1 > 0 { for _, b := range noDuplicates { if data[p] == b && data[p-1] == b { @@ -1154,21 +1117,17 @@ func Parse(data []byte, event *event) { goto st2 tr35: //line parser.rl:58 - event.SetSecond(data[tok:p]) //line parser.rl:22 - tok = p goto st36 tr69: //line parser.rl:62 - event.SetNanosecond(data[tok:p]) //line parser.rl:22 - tok = p goto st36 @@ -1237,19 +1196,16 @@ func Parse(data []byte, event *event) { goto st2 tr37: //line parser.rl:58 - event.SetSecond(data[tok:p]) goto st41 tr65: //line parser.rl:93 - event.SetTimeZone(data[tok:p]) goto st41 tr71: //line parser.rl:62 - event.SetNanosecond(data[tok:p]) goto st41 @@ -1268,7 +1224,6 @@ func Parse(data []byte, event *event) { goto st2 tr63: //line parser.rl:93 - event.SetTimeZone(data[tok:p]) goto st42 @@ -1292,7 +1247,6 @@ func Parse(data []byte, event *event) { goto st2 tr36: //line parser.rl:58 - event.SetSecond(data[tok:p]) goto st43 @@ -1308,7 +1262,6 @@ func Parse(data []byte, event *event) { goto st2 tr67: //line parser.rl:22 - tok = p goto st44 @@ -1343,21 +1296,17 @@ func Parse(data []byte, event *event) { goto st2 tr38: //line parser.rl:58 - event.SetSecond(data[tok:p]) //line parser.rl:22 - tok = p goto st45 tr72: //line parser.rl:62 - event.SetNanosecond(data[tok:p]) //line parser.rl:22 - tok = p goto st45 @@ -1383,7 +1332,6 @@ func Parse(data []byte, event *event) { goto st2 tr26: //line parser.rl:22 - tok = p goto st46 @@ -1423,7 +1371,6 @@ func Parse(data []byte, event *event) { goto st2 tr74: //line parser.rl:22 - tok = p goto st49 @@ -1457,11 +1404,9 @@ func Parse(data []byte, event *event) { goto tr75 tr76: //line parser.rl:97 - event.SetSequence(data[tok:p]) //line parser.rl:22 - tok = p goto st50 @@ -1504,17 +1449,14 @@ func Parse(data []byte, event *event) { goto st2 tr3: //line parser.rl:22 - tok = p goto st54 tr77: //line parser.rl:97 - event.SetSequence(data[tok:p]) //line parser.rl:22 - tok = p goto st54 @@ -1557,7 +1499,6 @@ func Parse(data []byte, event *event) { goto st2 tr91: //line parser.rl:34 - event.SetMonth(data[tok:p]) goto st57 @@ -1597,7 +1538,6 @@ func Parse(data []byte, event *event) { goto st2 tr96: //line parser.rl:22 - tok = p goto st59 @@ -1616,7 +1556,6 @@ func Parse(data []byte, event *event) { goto st2 tr97: //line parser.rl:46 - event.SetDay(data[tok:p]) goto st60 @@ -1635,7 +1574,6 @@ func Parse(data []byte, event *event) { goto st2 tr98: //line parser.rl:22 - tok = p goto st61 @@ -1660,7 +1598,6 @@ func Parse(data []byte, event *event) { goto st2 tr101: //line parser.rl:50 - event.SetHour(data[tok:p]) goto st63 @@ -1676,7 +1613,6 @@ func Parse(data []byte, event *event) { goto st2 tr102: //line parser.rl:22 - tok = p goto st64 @@ -1701,7 +1637,6 @@ func Parse(data []byte, event *event) { goto st2 tr104: //line parser.rl:54 - event.SetMinute(data[tok:p]) goto st66 @@ -1717,7 +1652,6 @@ func Parse(data []byte, event *event) { goto st2 tr105: //line parser.rl:22 - tok = p goto st67 @@ -1750,7 +1684,6 @@ func Parse(data []byte, event *event) { goto st2 tr107: //line parser.rl:58 - event.SetSecond(data[tok:p]) goto st69 @@ -1766,7 +1699,6 @@ func Parse(data []byte, event *event) { goto st2 tr108: //line parser.rl:22 - tok = p goto st70 @@ -1793,7 +1725,6 @@ func Parse(data []byte, event *event) { goto st2 tr99: //line parser.rl:22 - tok = p goto st71 @@ -1809,7 +1740,6 @@ func Parse(data []byte, event *event) { goto st2 tr94: //line parser.rl:22 - tok = p goto st72 @@ -1833,7 +1763,6 @@ func Parse(data []byte, event *event) { goto st2 tr95: //line parser.rl:22 - tok = p goto st73 @@ -1920,17 +1849,14 @@ func Parse(data []byte, event *event) { goto st2 tr4: //line parser.rl:22 - tok = p goto st80 tr78: //line parser.rl:97 - event.SetSequence(data[tok:p]) //line parser.rl:22 - tok = p goto st80 @@ -2006,17 +1932,14 @@ func Parse(data []byte, event *event) { goto st2 tr5: //line parser.rl:22 - tok = p goto st87 tr79: //line parser.rl:97 - event.SetSequence(data[tok:p]) //line parser.rl:22 - tok = p goto st87 @@ -2092,17 +2015,14 @@ func Parse(data []byte, event *event) { goto st2 tr6: //line parser.rl:22 - tok = p goto st94 tr80: //line parser.rl:97 - event.SetSequence(data[tok:p]) //line parser.rl:22 - tok = p goto st94 @@ -2187,17 +2107,14 @@ func Parse(data []byte, event *event) { goto st2 tr7: //line parser.rl:22 - tok = p goto st100 tr81: //line parser.rl:97 - event.SetSequence(data[tok:p]) //line parser.rl:22 - tok = p goto st100 @@ -2254,17 +2171,14 @@ func Parse(data []byte, event *event) { goto st2 tr8: //line parser.rl:22 - tok = p goto st104 tr82: //line parser.rl:97 - event.SetSequence(data[tok:p]) //line parser.rl:22 - tok = p goto st104 @@ -2289,17 +2203,14 @@ func Parse(data []byte, event *event) { goto st2 tr9: //line parser.rl:22 - tok = p goto st106 tr83: //line parser.rl:97 - event.SetSequence(data[tok:p]) //line parser.rl:22 - tok = p goto st106 @@ -2339,17 +2250,14 @@ func Parse(data []byte, event *event) { goto st2 tr10: //line parser.rl:22 - tok = p goto st109 tr84: //line parser.rl:97 - event.SetSequence(data[tok:p]) //line parser.rl:22 - tok = p goto st109 @@ -2398,7 +2306,6 @@ func Parse(data []byte, event *event) { goto st2 tr2: //line parser.rl:22 - tok = p goto st113 @@ -2414,7 +2321,6 @@ func Parse(data []byte, event *event) { goto st2 tr141: //line parser.rl:22 - tok = p goto st114 @@ -2478,7 +2384,6 @@ func Parse(data []byte, event *event) { goto st2 tr143: //line parser.rl:26 - event.SetPriority(data[tok:p]) goto st119 @@ -2518,7 +2423,6 @@ func Parse(data []byte, event *event) { goto tr11 tr11: //line parser.rl:22 - tok = p goto st120 @@ -2898,7 +2802,6 @@ func Parse(data []byte, event *event) { switch cs { case 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120: //line parser.rl:30 - event.SetMessage(data[tok:p]) //line parser.go:2632 @@ -2908,5 +2811,4 @@ func Parse(data []byte, event *event) { } //line parser.rl:105 - } diff --git a/filebeat/input/tcp/config.go b/filebeat/input/tcp/config.go index 3bc928ac8c0..9a3915a6e1d 100644 --- a/filebeat/input/tcp/config.go +++ b/filebeat/input/tcp/config.go @@ -20,8 +20,6 @@ package tcp import ( "time" - "github.com/dustin/go-humanize" - "github.com/elastic/beats/v7/filebeat/harvester" "github.com/elastic/beats/v7/filebeat/inputsource/tcp" ) diff --git a/filebeat/input/udp/config.go b/filebeat/input/udp/config.go index 33696dc69c7..3fbb75072f4 100644 --- a/filebeat/input/udp/config.go +++ b/filebeat/input/udp/config.go @@ -20,8 +20,6 @@ package udp import ( "time" - "github.com/dustin/go-humanize" - "github.com/elastic/beats/v7/filebeat/harvester" "github.com/elastic/beats/v7/filebeat/inputsource/udp" ) diff --git a/filebeat/input/unix/config.go b/filebeat/input/unix/config.go index 4d4400cb974..4f701e64cf0 100644 --- a/filebeat/input/unix/config.go +++ b/filebeat/input/unix/config.go @@ -20,8 +20,6 @@ package unix import ( "time" - "github.com/dustin/go-humanize" - "github.com/elastic/beats/v7/filebeat/inputsource/unix" ) diff --git a/filebeat/input/v2/compat/compat.go b/filebeat/input/v2/compat/compat.go index 67bc9c7ac13..22680fafb85 100644 --- a/filebeat/input/v2/compat/compat.go +++ b/filebeat/input/v2/compat/compat.go @@ -31,7 +31,6 @@ import ( "github.com/elastic/beats/v7/libbeat/cfgfile" "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/logp" - "github.com/elastic/go-concert" ) // factory implements the cfgfile.RunnerFactory interface and wraps the diff --git a/filebeat/input/v2/input-cursor/store.go b/filebeat/input/v2/input-cursor/store.go index 66d5b450936..0cd341ae08e 100644 --- a/filebeat/input/v2/input-cursor/store.go +++ b/filebeat/input/v2/input-cursor/store.go @@ -27,7 +27,6 @@ import ( "github.com/elastic/beats/v7/libbeat/common/transform/typeconv" "github.com/elastic/beats/v7/libbeat/logp" "github.com/elastic/beats/v7/libbeat/statestore" - "github.com/elastic/go-concert" "github.com/elastic/go-concert/unison" ) diff --git a/filebeat/inputsource/tcp/server_test.go b/filebeat/inputsource/tcp/server_test.go index 032f7d33e29..5a4441440d6 100644 --- a/filebeat/inputsource/tcp/server_test.go +++ b/filebeat/inputsource/tcp/server_test.go @@ -26,7 +26,6 @@ import ( "testing" "time" - "github.com/dustin/go-humanize" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/filebeat/inputsource/udp/server.go b/filebeat/inputsource/udp/server.go index 9df2e57904a..ca7ebf2b5bb 100644 --- a/filebeat/inputsource/udp/server.go +++ b/filebeat/inputsource/udp/server.go @@ -24,8 +24,6 @@ import ( "sync" "time" - "github.com/dustin/go-humanize" - "github.com/elastic/beats/v7/filebeat/inputsource" "github.com/elastic/beats/v7/libbeat/logp" ) diff --git a/filebeat/inputsource/unix/server_test.go b/filebeat/inputsource/unix/server_test.go index a9043d14a8e..8f21e892768 100644 --- a/filebeat/inputsource/unix/server_test.go +++ b/filebeat/inputsource/unix/server_test.go @@ -31,7 +31,6 @@ import ( "testing" "time" - "github.com/dustin/go-humanize" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/filebeat/modules.d/iis.yml.disabled b/filebeat/modules.d/iis.yml.disabled index d2d521c129e..3430e615847 100644 --- a/filebeat/modules.d/iis.yml.disabled +++ b/filebeat/modules.d/iis.yml.disabled @@ -17,4 +17,4 @@ # Set custom paths for the log files. If left empty, # Filebeat will choose the paths depending on your OS. #var.paths: - \ No newline at end of file + diff --git a/heartbeat/autodiscover/builder/hints/monitors.go b/heartbeat/autodiscover/builder/hints/monitors.go index ca182fe37f2..8ea1a19a3f1 100644 --- a/heartbeat/autodiscover/builder/hints/monitors.go +++ b/heartbeat/autodiscover/builder/hints/monitors.go @@ -21,8 +21,6 @@ import ( "fmt" "strings" - "github.com/elastic/go-ucfg" - "github.com/elastic/beats/v7/libbeat/autodiscover" "github.com/elastic/beats/v7/libbeat/autodiscover/builder" "github.com/elastic/beats/v7/libbeat/autodiscover/template" diff --git a/heartbeat/hbtest/hbtestutil.go b/heartbeat/hbtest/hbtestutil.go index 246104638e9..848fc2bca29 100644 --- a/heartbeat/hbtest/hbtestutil.go +++ b/heartbeat/hbtest/hbtestutil.go @@ -42,7 +42,6 @@ import ( "github.com/elastic/beats/v7/heartbeat/monitors/wrappers" "github.com/elastic/beats/v7/libbeat/common/x509util" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/isdef" "github.com/elastic/go-lookslike/validator" ) diff --git a/heartbeat/hbtestllext/validators.go b/heartbeat/hbtestllext/validators.go index 23a9df5d5cf..8e50e6615d6 100644 --- a/heartbeat/hbtestllext/validators.go +++ b/heartbeat/hbtestllext/validators.go @@ -17,10 +17,6 @@ package hbtestllext -import ( - "github.com/elastic/go-lookslike" -) - // MonitorTimespanValidator is tests for the `next_run` and `next_run_in.us` keys. var MonitorTimespanValidator = lookslike.MustCompile(map[string]interface{}{ "monitor": map[string]interface{}{ diff --git a/heartbeat/monitors/active/dialchain/tlsmeta/tlsmeta_test.go b/heartbeat/monitors/active/dialchain/tlsmeta/tlsmeta_test.go index 609fbbb413d..08e9560278b 100644 --- a/heartbeat/monitors/active/dialchain/tlsmeta/tlsmeta_test.go +++ b/heartbeat/monitors/active/dialchain/tlsmeta/tlsmeta_test.go @@ -26,7 +26,6 @@ import ( "testing" "time" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/testslike" "github.com/stretchr/testify/require" diff --git a/heartbeat/monitors/active/http/http_test.go b/heartbeat/monitors/active/http/http_test.go index c2a6b2c9318..b0f4425b3de 100644 --- a/heartbeat/monitors/active/http/http_test.go +++ b/heartbeat/monitors/active/http/http_test.go @@ -43,7 +43,6 @@ import ( "github.com/elastic/beats/v7/libbeat/common/transport" "github.com/elastic/beats/v7/libbeat/common/transport/tlscommon" btesting "github.com/elastic/beats/v7/libbeat/testing" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/isdef" "github.com/elastic/go-lookslike/testslike" "github.com/elastic/go-lookslike/validator" @@ -550,7 +549,7 @@ func TestNoHeaders(t *testing.T) { defer server.Close() configSrc := map[string]interface{}{ - "urls": server.URL, + "urls": server.URL, "response.include_headers": false, } diff --git a/heartbeat/monitors/active/http/respbody.go b/heartbeat/monitors/active/http/respbody.go index 6aee68417f4..5959ee1e14f 100644 --- a/heartbeat/monitors/active/http/respbody.go +++ b/heartbeat/monitors/active/http/respbody.go @@ -24,8 +24,6 @@ import ( "net/http" "strings" - "github.com/docker/go-units" - "github.com/elastic/beats/v7/heartbeat/reason" "github.com/elastic/beats/v7/libbeat/common" ) diff --git a/heartbeat/monitors/active/http/respbody_test.go b/heartbeat/monitors/active/http/respbody_test.go index 071f4e27a47..111ba440c2a 100644 --- a/heartbeat/monitors/active/http/respbody_test.go +++ b/heartbeat/monitors/active/http/respbody_test.go @@ -31,7 +31,6 @@ import ( "github.com/stretchr/testify/require" "github.com/elastic/beats/v7/libbeat/common/match" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/testslike" ) diff --git a/heartbeat/monitors/active/icmp/icmp_test.go b/heartbeat/monitors/active/icmp/icmp_test.go index 11e7dae5380..d41a1a9f82e 100644 --- a/heartbeat/monitors/active/icmp/icmp_test.go +++ b/heartbeat/monitors/active/icmp/icmp_test.go @@ -31,7 +31,6 @@ import ( "github.com/elastic/beats/v7/heartbeat/monitors/wrappers" "github.com/elastic/beats/v7/heartbeat/scheduler/schedule" "github.com/elastic/beats/v7/libbeat/beat" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/testslike" ) diff --git a/heartbeat/monitors/active/tcp/socks5_test.go b/heartbeat/monitors/active/tcp/socks5_test.go index 47c691dbdea..3a3c3a39b5c 100644 --- a/heartbeat/monitors/active/tcp/socks5_test.go +++ b/heartbeat/monitors/active/tcp/socks5_test.go @@ -25,12 +25,10 @@ import ( "sync" "testing" - "github.com/armon/go-socks5" "github.com/stretchr/testify/require" "github.com/elastic/beats/v7/heartbeat/hbtest" "github.com/elastic/beats/v7/libbeat/common" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/isdef" "github.com/elastic/go-lookslike/testslike" ) diff --git a/heartbeat/monitors/active/tcp/tcp_test.go b/heartbeat/monitors/active/tcp/tcp_test.go index ef4746c5e3e..474f997943e 100644 --- a/heartbeat/monitors/active/tcp/tcp_test.go +++ b/heartbeat/monitors/active/tcp/tcp_test.go @@ -32,7 +32,6 @@ import ( "github.com/elastic/beats/v7/libbeat/beat" "github.com/elastic/beats/v7/libbeat/common" btesting "github.com/elastic/beats/v7/libbeat/testing" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/isdef" "github.com/elastic/go-lookslike/testslike" "github.com/elastic/go-lookslike/validator" diff --git a/heartbeat/monitors/active/tcp/tls_test.go b/heartbeat/monitors/active/tcp/tls_test.go index ff4cd569db5..a55efd300de 100644 --- a/heartbeat/monitors/active/tcp/tls_test.go +++ b/heartbeat/monitors/active/tcp/tls_test.go @@ -38,7 +38,6 @@ import ( "github.com/elastic/beats/v7/heartbeat/hbtest" "github.com/elastic/beats/v7/heartbeat/monitors" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/testslike" ) diff --git a/heartbeat/monitors/jobs/job_test.go b/heartbeat/monitors/jobs/job_test.go index dbb84c32453..212958ca4c7 100644 --- a/heartbeat/monitors/jobs/job_test.go +++ b/heartbeat/monitors/jobs/job_test.go @@ -25,7 +25,6 @@ import ( "github.com/elastic/beats/v7/heartbeat/eventext" "github.com/elastic/beats/v7/libbeat/beat" "github.com/elastic/beats/v7/libbeat/common" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/testslike" ) diff --git a/heartbeat/monitors/mocks_test.go b/heartbeat/monitors/mocks_test.go index 629eeb43a43..bc2478587a5 100644 --- a/heartbeat/monitors/mocks_test.go +++ b/heartbeat/monitors/mocks_test.go @@ -32,7 +32,6 @@ import ( "github.com/elastic/beats/v7/libbeat/beat" "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/monitoring" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/isdef" "github.com/elastic/go-lookslike/validator" ) diff --git a/heartbeat/monitors/task_test.go b/heartbeat/monitors/task_test.go index dc0aa7ab23c..7d24f5476bb 100644 --- a/heartbeat/monitors/task_test.go +++ b/heartbeat/monitors/task_test.go @@ -25,7 +25,6 @@ import ( "github.com/stretchr/testify/require" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/testslike" "github.com/elastic/beats/v7/heartbeat/eventext" diff --git a/heartbeat/monitors/wrappers/monitors_test.go b/heartbeat/monitors/wrappers/monitors_test.go index 5cbcb43ebd5..b7ef796dfb4 100644 --- a/heartbeat/monitors/wrappers/monitors_test.go +++ b/heartbeat/monitors/wrappers/monitors_test.go @@ -33,7 +33,6 @@ import ( "github.com/elastic/beats/v7/heartbeat/scheduler/schedule" "github.com/elastic/beats/v7/libbeat/beat" "github.com/elastic/beats/v7/libbeat/common" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/isdef" "github.com/elastic/go-lookslike/testslike" "github.com/elastic/go-lookslike/validator" diff --git a/heartbeat/monitors/wrappers/util_test.go b/heartbeat/monitors/wrappers/util_test.go index a681d4cedad..da096584409 100644 --- a/heartbeat/monitors/wrappers/util_test.go +++ b/heartbeat/monitors/wrappers/util_test.go @@ -23,7 +23,6 @@ import ( "github.com/stretchr/testify/require" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/testslike" "github.com/elastic/beats/v7/libbeat/common" diff --git a/journalbeat/checkpoint/file_windows.go b/journalbeat/checkpoint/file_windows.go index 267086398f3..6644d751096 100644 --- a/journalbeat/checkpoint/file_windows.go +++ b/journalbeat/checkpoint/file_windows.go @@ -45,8 +45,8 @@ func createWriteThroughFile(path string) (*os.File, error) { pathp, // Path syscall.GENERIC_READ|syscall.GENERIC_WRITE, // Access Mode uint32(syscall.FILE_SHARE_READ|syscall.FILE_SHARE_WRITE), // Share Mode - nil, // Security Attributes - syscall.CREATE_ALWAYS, // Create Mode + nil, // Security Attributes + syscall.CREATE_ALWAYS, // Create Mode uint32(syscall.FILE_ATTRIBUTE_NORMAL|_FILE_FLAG_WRITE_THROUGH), // Flags and Attributes 0) // Template File diff --git a/libbeat/autodiscover/builder.go b/libbeat/autodiscover/builder.go index ba091b46c4e..985949fa0c1 100644 --- a/libbeat/autodiscover/builder.go +++ b/libbeat/autodiscover/builder.go @@ -22,8 +22,6 @@ import ( "fmt" "strings" - "github.com/elastic/go-ucfg" - "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/common/bus" "github.com/elastic/beats/v7/libbeat/keystore" diff --git a/libbeat/autodiscover/builder_test.go b/libbeat/autodiscover/builder_test.go index c5e08a77e39..b2720aed30b 100644 --- a/libbeat/autodiscover/builder_test.go +++ b/libbeat/autodiscover/builder_test.go @@ -22,8 +22,6 @@ import ( "github.com/stretchr/testify/assert" - "github.com/elastic/go-ucfg" - "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/common/bus" ) diff --git a/libbeat/autodiscover/providers/kubernetes/config_test.go b/libbeat/autodiscover/providers/kubernetes/config_test.go index 0cbe2d14ef2..d5529a45c21 100644 --- a/libbeat/autodiscover/providers/kubernetes/config_test.go +++ b/libbeat/autodiscover/providers/kubernetes/config_test.go @@ -22,8 +22,6 @@ import ( "github.com/stretchr/testify/assert" - "github.com/elastic/go-ucfg" - "github.com/elastic/beats/v7/libbeat/autodiscover" "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/common/bus" diff --git a/libbeat/autodiscover/template/config.go b/libbeat/autodiscover/template/config.go index a34cec10444..b089163bf3e 100644 --- a/libbeat/autodiscover/template/config.go +++ b/libbeat/autodiscover/template/config.go @@ -18,8 +18,6 @@ package template import ( - "github.com/elastic/go-ucfg" - "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/common/bus" "github.com/elastic/beats/v7/libbeat/conditions" diff --git a/libbeat/common/cfgtype/byte_size.go b/libbeat/common/cfgtype/byte_size.go index a692cad586d..14bc6f4e0a6 100644 --- a/libbeat/common/cfgtype/byte_size.go +++ b/libbeat/common/cfgtype/byte_size.go @@ -20,8 +20,6 @@ package cfgtype import ( "unicode" - "github.com/dustin/go-humanize" - "github.com/elastic/beats/v7/libbeat/common/cfgwarn" ) diff --git a/libbeat/common/event_test.go b/libbeat/common/event_test.go index c9d3a36e0c9..47608fa6afc 100644 --- a/libbeat/common/event_test.go +++ b/libbeat/common/event_test.go @@ -284,7 +284,7 @@ func TestNormalizeValue(t *testing.T) { type myuint64 uint64 runTests(checkEq, map[string]testCase{ - "nil": {nil, nil}, + "nil": {nil, nil}, "pointers are dereferenced": {&someString, someString}, "drop nil string pointer": {nilStringPtr, nil}, "drop nil time pointer": {nilTimePtr, nil}, diff --git a/libbeat/common/kubernetes/metadata/resource_test.go b/libbeat/common/kubernetes/metadata/resource_test.go index f4c25ecbad5..718ab17a570 100644 --- a/libbeat/common/kubernetes/metadata/resource_test.go +++ b/libbeat/common/kubernetes/metadata/resource_test.go @@ -25,8 +25,6 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" - "github.com/elastic/go-ucfg" - "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/common/kubernetes" ) diff --git a/libbeat/common/seccomp/policy_linux_386.go b/libbeat/common/seccomp/policy_linux_386.go index 796b071a104..373da41f8c5 100644 --- a/libbeat/common/seccomp/policy_linux_386.go +++ b/libbeat/common/seccomp/policy_linux_386.go @@ -17,10 +17,6 @@ package seccomp -import ( - "github.com/elastic/go-seccomp-bpf" -) - func init() { defaultPolicy = &seccomp.Policy{ DefaultAction: seccomp.ActionErrno, diff --git a/libbeat/common/seccomp/policy_linux_amd64.go b/libbeat/common/seccomp/policy_linux_amd64.go index 4246e6a1a51..33bb1533def 100644 --- a/libbeat/common/seccomp/policy_linux_amd64.go +++ b/libbeat/common/seccomp/policy_linux_amd64.go @@ -17,10 +17,6 @@ package seccomp -import ( - "github.com/elastic/go-seccomp-bpf" -) - func init() { defaultPolicy = &seccomp.Policy{ DefaultAction: seccomp.ActionErrno, diff --git a/libbeat/common/seccomp/policy_linux_arm.go b/libbeat/common/seccomp/policy_linux_arm.go index 78a8f68bb71..117a5bcdfcd 100644 --- a/libbeat/common/seccomp/policy_linux_arm.go +++ b/libbeat/common/seccomp/policy_linux_arm.go @@ -17,8 +17,6 @@ package seccomp -import "github.com/elastic/go-seccomp-bpf" - func init() { defaultPolicy = &seccomp.Policy{ DefaultAction: seccomp.ActionAllow, diff --git a/libbeat/common/seccomp/seccomp.go b/libbeat/common/seccomp/seccomp.go index e877fcbeab1..fa106b29585 100644 --- a/libbeat/common/seccomp/seccomp.go +++ b/libbeat/common/seccomp/seccomp.go @@ -24,7 +24,6 @@ import ( "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/logp" - "github.com/elastic/go-seccomp-bpf" ) // PolicyChangeType specifies the type of change to make to a seccomp policy. diff --git a/libbeat/common/transport/transptest/testing.go b/libbeat/common/transport/transptest/testing.go index 64763ba9b71..f7e3dcc81cd 100644 --- a/libbeat/common/transport/transptest/testing.go +++ b/libbeat/common/transport/transptest/testing.go @@ -236,7 +236,7 @@ func GenCertForTestingPurpose(t *testing.T, fileName, keyPassword string, hosts NotAfter: time.Now().AddDate(10, 0, 0), SubjectKeyId: []byte("12345"), BasicConstraintsValid: true, - IsCA: true, + IsCA: true, ExtKeyUsage: []x509.ExtKeyUsage{ x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth}, diff --git a/libbeat/idxmgmt/std_test.go b/libbeat/idxmgmt/std_test.go index 3e934d78d58..2eb8ace505e 100644 --- a/libbeat/idxmgmt/std_test.go +++ b/libbeat/idxmgmt/std_test.go @@ -367,10 +367,10 @@ func TestIndexManager_Setup(t *testing.T) { }{ "template default ilm default": { tmplCfg: cfgWith(template.DefaultConfig(), map[string]interface{}{ - "overwrite": "true", - "name": "test-9.9.9", - "pattern": "test-9.9.9-*", - "settings.index.lifecycle.name": "test", + "overwrite": "true", + "name": "test-9.9.9", + "pattern": "test-9.9.9-*", + "settings.index.lifecycle.name": "test", "settings.index.lifecycle.rollover_alias": "test-9.9.9", }), alias: "test-9.9.9", @@ -382,10 +382,10 @@ func TestIndexManager_Setup(t *testing.T) { "setup.ilm.policy_name": "policy-keep", }, tmplCfg: cfgWith(template.DefaultConfig(), map[string]interface{}{ - "overwrite": "true", - "name": "mocktest", - "pattern": "mocktest-*", - "settings.index.lifecycle.name": "policy-keep", + "overwrite": "true", + "name": "mocktest", + "pattern": "mocktest-*", + "settings.index.lifecycle.name": "policy-keep", "settings.index.lifecycle.rollover_alias": "mocktest", }), alias: "mocktest", @@ -454,9 +454,9 @@ func TestIndexManager_Setup(t *testing.T) { "template default ilm loadMode disabled": { loadILM: LoadModeDisabled, tmplCfg: cfgWith(template.DefaultConfig(), map[string]interface{}{ - "name": "test-9.9.9", - "pattern": "test-9.9.9-*", - "settings.index.lifecycle.name": "test", + "name": "test-9.9.9", + "pattern": "test-9.9.9-*", + "settings.index.lifecycle.name": "test", "settings.index.lifecycle.rollover_alias": "test-9.9.9", }), }, diff --git a/libbeat/keystore/keystore.go b/libbeat/keystore/keystore.go index 2dbf7ff144f..bdb2cb857a6 100644 --- a/libbeat/keystore/keystore.go +++ b/libbeat/keystore/keystore.go @@ -22,7 +22,6 @@ import ( "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/common/bus" - "github.com/elastic/go-ucfg" "github.com/elastic/go-ucfg/parse" ) diff --git a/libbeat/kibana/fields_transformer.go b/libbeat/kibana/fields_transformer.go index 7009484e573..8e7050243ba 100644 --- a/libbeat/kibana/fields_transformer.go +++ b/libbeat/kibana/fields_transformer.go @@ -45,8 +45,8 @@ func newFieldsTransformer(version *common.Version, fields mapping.Fields, migrat version: version, transformedFields: []common.MapStr{}, transformedFieldFormatMap: common.MapStr{}, - keys: map[string]int{}, - migration: migration, + keys: map[string]int{}, + migration: migration, }, nil } diff --git a/libbeat/logp/core.go b/libbeat/logp/core.go index afb4f57378d..adc0b7b2112 100644 --- a/libbeat/logp/core.go +++ b/libbeat/logp/core.go @@ -27,8 +27,6 @@ import ( "sync/atomic" "unsafe" - "github.com/hashicorp/go-multierror" - "github.com/pkg/errors" "go.uber.org/zap" "go.uber.org/zap/zapcore" diff --git a/libbeat/outputs/codec/common.go b/libbeat/outputs/codec/common.go index 296e0aff389..6bb3141d6f4 100644 --- a/libbeat/outputs/codec/common.go +++ b/libbeat/outputs/codec/common.go @@ -22,7 +22,6 @@ import ( "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/common/dtfmt" - "github.com/elastic/go-structform" ) // MakeTimestampEncoder creates encoder function that formats time diff --git a/libbeat/processors/fingerprint/hash.go b/libbeat/processors/fingerprint/hash.go index 1c4af0d0161..cc957d03258 100644 --- a/libbeat/processors/fingerprint/hash.go +++ b/libbeat/processors/fingerprint/hash.go @@ -25,7 +25,7 @@ import ( "hash" "strings" - "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash" ) type hashMethod func() hash.Hash diff --git a/libbeat/processors/script/javascript/module/net/net_test.go b/libbeat/processors/script/javascript/module/net/net_test.go index 559fff00d50..31aba0b82d4 100644 --- a/libbeat/processors/script/javascript/module/net/net_test.go +++ b/libbeat/processors/script/javascript/module/net/net_test.go @@ -54,8 +54,8 @@ function process(evt) { } for ip, typ := range map[string]interface{}{ - "192.168.0.1": "ipv4", - "::ffff:192.168.0.1": "ipv4", + "192.168.0.1": "ipv4", + "::ffff:192.168.0.1": "ipv4", "2001:0db8:0000:0000:0000:ff00:0042:8329": "ipv6", "2001:db8:0:0:0:ff00:42:8329": "ipv6", "2001:db8::ff00:42:8329": "ipv6", diff --git a/libbeat/publisher/queue/spool/codec.go b/libbeat/publisher/queue/spool/codec.go index 69f693a4817..36db39d4045 100644 --- a/libbeat/publisher/queue/spool/codec.go +++ b/libbeat/publisher/queue/spool/codec.go @@ -26,7 +26,6 @@ import ( "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/outputs/codec" "github.com/elastic/beats/v7/libbeat/publisher" - "github.com/elastic/go-structform" "github.com/elastic/go-structform/cborl" "github.com/elastic/go-structform/gotype" "github.com/elastic/go-structform/json" diff --git a/libbeat/publisher/queue/spool/config.go b/libbeat/publisher/queue/spool/config.go index 1d9d9a3299d..07a298e1f65 100644 --- a/libbeat/publisher/queue/spool/config.go +++ b/libbeat/publisher/queue/spool/config.go @@ -24,7 +24,6 @@ import ( "strings" "time" - "github.com/dustin/go-humanize" "github.com/joeshaw/multierror" "github.com/elastic/beats/v7/libbeat/common/cfgtype" diff --git a/libbeat/publisher/queue/spool/module.go b/libbeat/publisher/queue/spool/module.go index afa86298b65..cdad16d0472 100644 --- a/libbeat/publisher/queue/spool/module.go +++ b/libbeat/publisher/queue/spool/module.go @@ -24,7 +24,6 @@ import ( "github.com/elastic/beats/v7/libbeat/logp" "github.com/elastic/beats/v7/libbeat/paths" "github.com/elastic/beats/v7/libbeat/publisher/queue" - "github.com/elastic/go-txfile" ) func init() { diff --git a/libbeat/publisher/queue/spool/spool.go b/libbeat/publisher/queue/spool/spool.go index c796170fdc7..476085bb144 100644 --- a/libbeat/publisher/queue/spool/spool.go +++ b/libbeat/publisher/queue/spool/spool.go @@ -28,7 +28,6 @@ import ( "github.com/elastic/beats/v7/libbeat/common/atomic" "github.com/elastic/beats/v7/libbeat/publisher/queue" - "github.com/elastic/go-txfile" "github.com/elastic/go-txfile/pq" ) diff --git a/libbeat/publisher/queue/spool/spool_test.go b/libbeat/publisher/queue/spool/spool_test.go index b5947152d9a..6054e9cda32 100644 --- a/libbeat/publisher/queue/spool/spool_test.go +++ b/libbeat/publisher/queue/spool/spool_test.go @@ -28,7 +28,6 @@ import ( "github.com/elastic/beats/v7/libbeat/publisher/queue" "github.com/elastic/beats/v7/libbeat/publisher/queue/queuetest" - "github.com/elastic/go-txfile" "github.com/elastic/go-txfile/txfiletest" ) diff --git a/metricbeat/autodiscover/builder/hints/metrics.go b/metricbeat/autodiscover/builder/hints/metrics.go index 29c6eece67d..5addbe4342c 100644 --- a/metricbeat/autodiscover/builder/hints/metrics.go +++ b/metricbeat/autodiscover/builder/hints/metrics.go @@ -22,8 +22,6 @@ import ( "strconv" "strings" - "github.com/elastic/go-ucfg" - "github.com/elastic/beats/v7/libbeat/autodiscover" "github.com/elastic/beats/v7/libbeat/autodiscover/builder" "github.com/elastic/beats/v7/libbeat/autodiscover/template" diff --git a/metricbeat/helper/labelhash/hash.go b/metricbeat/helper/labelhash/hash.go index c26665fbdba..b3d02a497e7 100644 --- a/metricbeat/helper/labelhash/hash.go +++ b/metricbeat/helper/labelhash/hash.go @@ -23,7 +23,7 @@ import ( "strconv" "sync" - "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash" "github.com/elastic/beats/v7/libbeat/common" ) diff --git a/metricbeat/module/elasticsearch/elasticsearch_integration_test.go b/metricbeat/module/elasticsearch/elasticsearch_integration_test.go index 57a0e294773..93856bc899c 100644 --- a/metricbeat/module/elasticsearch/elasticsearch_integration_test.go +++ b/metricbeat/module/elasticsearch/elasticsearch_integration_test.go @@ -241,9 +241,9 @@ func TestGetAllIndices(t *testing.T) { // GetConfig returns config for elasticsearch module func getConfig(metricset string, host string) map[string]interface{} { return map[string]interface{}{ - "module": elasticsearch.ModuleName, - "metricsets": []string{metricset}, - "hosts": []string{host}, + "module": elasticsearch.ModuleName, + "metricsets": []string{metricset}, + "hosts": []string{host}, "index_recovery.active_only": false, } } diff --git a/metricbeat/module/elasticsearch/enrich/data_xpack.go b/metricbeat/module/elasticsearch/enrich/data_xpack.go index 39309fd79fc..2c9eb9b99a7 100644 --- a/metricbeat/module/elasticsearch/enrich/data_xpack.go +++ b/metricbeat/module/elasticsearch/enrich/data_xpack.go @@ -49,10 +49,10 @@ func indexExecutingPolicies(r mb.ReporterV2, enrichData response, esInfo elastic for _, stat := range enrichData.ExecutingPolicies { event := mb.Event{} event.RootFields = common.MapStr{ - "cluster_uuid": esInfo.ClusterID, - "timestamp": now, - "interval_ms": intervalMS, - "type": "enrich_executing_policy_stats", + "cluster_uuid": esInfo.ClusterID, + "timestamp": now, + "interval_ms": intervalMS, + "type": "enrich_executing_policy_stats", "enrich_executing_policy_stats": stat, } event.Index = indexName @@ -64,10 +64,10 @@ func indexCoordinatorStats(r mb.ReporterV2, enrichData response, esInfo elastics for _, stat := range enrichData.CoordinatorStats { event := mb.Event{} event.RootFields = common.MapStr{ - "cluster_uuid": esInfo.ClusterID, - "timestamp": now, - "interval_ms": intervalMS, - "type": "enrich_coordinator_stats", + "cluster_uuid": esInfo.ClusterID, + "timestamp": now, + "interval_ms": intervalMS, + "type": "enrich_coordinator_stats", "enrich_coordinator_stats": stat, } event.Index = indexName diff --git a/metricbeat/module/envoyproxy/server/data.go b/metricbeat/module/envoyproxy/server/data.go index 850d8c53914..5048a36f1da 100644 --- a/metricbeat/module/envoyproxy/server/data.go +++ b/metricbeat/module/envoyproxy/server/data.go @@ -73,22 +73,22 @@ var ( }, "server": s.Object{ "days_until_first_cert_expiring": c.Int("days_until_first_cert_expiring"), - "live": c.Int("live"), - "memory_allocated": c.Int("memory_allocated"), - "memory_heap_size": c.Int("memory_heap_size"), - "parent_connections": c.Int("parent_connections"), - "total_connections": c.Int("total_connections"), - "uptime": c.Int("uptime"), - "version": c.Int("version"), - "watchdog_mega_miss": c.Int("watchdog_mega_miss", s.Optional), - "watchdog_miss": c.Int("watchdog_miss", s.Optional), - "hot_restart_epoch": c.Int("hot_restart_epoch", s.Optional), - "concurrency": c.Int("concurrency", s.Optional), - "debug_assertion_failures": c.Int("debug_assertion_failures", s.Optional), - "dynamic_unknown_fields": c.Int("dynamic_unknown_fields", s.Optional), - "state": c.Int("state", s.Optional), - "static_unknown_fields": c.Int("static_unknown_fields", s.Optional), - "stats_recent_lookups": c.Int("stats_recent_lookups", s.Optional), + "live": c.Int("live"), + "memory_allocated": c.Int("memory_allocated"), + "memory_heap_size": c.Int("memory_heap_size"), + "parent_connections": c.Int("parent_connections"), + "total_connections": c.Int("total_connections"), + "uptime": c.Int("uptime"), + "version": c.Int("version"), + "watchdog_mega_miss": c.Int("watchdog_mega_miss", s.Optional), + "watchdog_miss": c.Int("watchdog_miss", s.Optional), + "hot_restart_epoch": c.Int("hot_restart_epoch", s.Optional), + "concurrency": c.Int("concurrency", s.Optional), + "debug_assertion_failures": c.Int("debug_assertion_failures", s.Optional), + "dynamic_unknown_fields": c.Int("dynamic_unknown_fields", s.Optional), + "state": c.Int("state", s.Optional), + "static_unknown_fields": c.Int("static_unknown_fields", s.Optional), + "stats_recent_lookups": c.Int("stats_recent_lookups", s.Optional), }, "http2": s.Object{ "header_overflow": c.Int("header_overflow", s.Optional), diff --git a/metricbeat/module/kvm/dommemstat/dommemstat.go b/metricbeat/module/kvm/dommemstat/dommemstat.go index 8beb22d433c..f00a91be862 100644 --- a/metricbeat/module/kvm/dommemstat/dommemstat.go +++ b/metricbeat/module/kvm/dommemstat/dommemstat.go @@ -26,7 +26,6 @@ import ( "github.com/pkg/errors" - "github.com/digitalocean/go-libvirt" "github.com/digitalocean/go-libvirt/libvirttest" "github.com/elastic/beats/v7/libbeat/common" diff --git a/metricbeat/module/kvm/status/status.go b/metricbeat/module/kvm/status/status.go index ddff67f91ba..2f5274fb1fb 100644 --- a/metricbeat/module/kvm/status/status.go +++ b/metricbeat/module/kvm/status/status.go @@ -24,7 +24,6 @@ import ( "github.com/pkg/errors" - "github.com/digitalocean/go-libvirt" "github.com/digitalocean/go-libvirt/libvirttest" "github.com/elastic/beats/v7/libbeat/common" diff --git a/metricbeat/module/mongodb/metricset.go b/metricbeat/module/mongodb/metricset.go index b1b09a7ac4d..c61e645b1b0 100644 --- a/metricbeat/module/mongodb/metricset.go +++ b/metricbeat/module/mongodb/metricset.go @@ -21,7 +21,7 @@ import ( "crypto/tls" "net" - "gopkg.in/mgo.v2" + mgo "gopkg.in/mgo.v2" "github.com/elastic/beats/v7/libbeat/common/transport/tlscommon" "github.com/elastic/beats/v7/libbeat/logp" diff --git a/metricbeat/module/mongodb/replstatus/replstatus.go b/metricbeat/module/mongodb/replstatus/replstatus.go index fd734823490..c50bb405c86 100644 --- a/metricbeat/module/mongodb/replstatus/replstatus.go +++ b/metricbeat/module/mongodb/replstatus/replstatus.go @@ -18,8 +18,6 @@ package replstatus import ( - "gopkg.in/mgo.v2" - "github.com/pkg/errors" "github.com/elastic/beats/v7/metricbeat/mb" diff --git a/metricbeat/module/windows/perfmon/config_test.go b/metricbeat/module/windows/perfmon/config_test.go index 8f96a9ca1ed..00af648daf3 100644 --- a/metricbeat/module/windows/perfmon/config_test.go +++ b/metricbeat/module/windows/perfmon/config_test.go @@ -23,7 +23,6 @@ import ( "testing" "github.com/elastic/beats/v7/libbeat/common" - "github.com/elastic/go-ucfg" "github.com/stretchr/testify/assert" ) diff --git a/packetbeat/flows/worker_test.go b/packetbeat/flows/worker_test.go index dab0d11eb14..5a046c70168 100644 --- a/packetbeat/flows/worker_test.go +++ b/packetbeat/flows/worker_test.go @@ -26,8 +26,6 @@ import ( "github.com/elastic/go-lookslike/isdef" - "github.com/elastic/go-lookslike" - "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/logp" ) diff --git a/packetbeat/sniffer/afpacket_linux.go b/packetbeat/sniffer/afpacket_linux.go index c95e7a37797..2e9b3a8ca00 100644 --- a/packetbeat/sniffer/afpacket_linux.go +++ b/packetbeat/sniffer/afpacket_linux.go @@ -59,8 +59,8 @@ func newAfpacketHandle(device string, snaplen int, block_size int, num_blocks in } h := &afpacketHandle{ - promiscPreviousState: promiscEnabled, - device: device, + promiscPreviousState: promiscEnabled, + device: device, promiscPreviousStateDetected: autoPromiscMode && err == nil, } diff --git a/winlogbeat/checkpoint/file_windows.go b/winlogbeat/checkpoint/file_windows.go index 267086398f3..6644d751096 100644 --- a/winlogbeat/checkpoint/file_windows.go +++ b/winlogbeat/checkpoint/file_windows.go @@ -45,8 +45,8 @@ func createWriteThroughFile(path string) (*os.File, error) { pathp, // Path syscall.GENERIC_READ|syscall.GENERIC_WRITE, // Access Mode uint32(syscall.FILE_SHARE_READ|syscall.FILE_SHARE_WRITE), // Share Mode - nil, // Security Attributes - syscall.CREATE_ALWAYS, // Create Mode + nil, // Security Attributes + syscall.CREATE_ALWAYS, // Create Mode uint32(syscall.FILE_ATTRIBUTE_NORMAL|_FILE_FLAG_WRITE_THROUGH), // Flags and Attributes 0) // Template File diff --git a/winlogbeat/sys/wineventlog/renderer.go b/winlogbeat/sys/wineventlog/renderer.go index 4a6fcc2fef1..5ecb1ce9ba6 100644 --- a/winlogbeat/sys/wineventlog/renderer.go +++ b/winlogbeat/sys/wineventlog/renderer.go @@ -28,7 +28,7 @@ import ( "time" "unsafe" - "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash" "github.com/pkg/errors" "go.uber.org/multierr" "golang.org/x/sys/windows" diff --git a/x-pack/auditbeat/cache/cache_test.go b/x-pack/auditbeat/cache/cache_test.go index faf2c1d7c6a..0ade380ed25 100644 --- a/x-pack/auditbeat/cache/cache_test.go +++ b/x-pack/auditbeat/cache/cache_test.go @@ -7,7 +7,7 @@ package cache import ( "testing" - "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash" "github.com/stretchr/testify/assert" ) diff --git a/x-pack/auditbeat/module/system/host/host.go b/x-pack/auditbeat/module/system/host/host.go index 9aa0f7fb2e7..8e0333a7c3f 100644 --- a/x-pack/auditbeat/module/system/host/host.go +++ b/x-pack/auditbeat/module/system/host/host.go @@ -15,7 +15,7 @@ import ( "strconv" "time" - "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash" "github.com/joeshaw/multierror" "github.com/pkg/errors" diff --git a/x-pack/auditbeat/module/system/package/package.go b/x-pack/auditbeat/module/system/package/package.go index f988030b8d0..fadb8212ef4 100644 --- a/x-pack/auditbeat/module/system/package/package.go +++ b/x-pack/auditbeat/module/system/package/package.go @@ -19,7 +19,7 @@ import ( "strings" "time" - "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash" "github.com/gofrs/uuid" "github.com/joeshaw/multierror" "github.com/pkg/errors" diff --git a/x-pack/auditbeat/module/system/process/process.go b/x-pack/auditbeat/module/system/process/process.go index 6c9e5a7db6a..34ca191f002 100644 --- a/x-pack/auditbeat/module/system/process/process.go +++ b/x-pack/auditbeat/module/system/process/process.go @@ -13,7 +13,7 @@ import ( "strconv" "time" - "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash" "github.com/gofrs/uuid" "github.com/pkg/errors" diff --git a/x-pack/auditbeat/module/system/socket/dns/afpacket/afpacket.go b/x-pack/auditbeat/module/system/socket/dns/afpacket/afpacket.go index 98cce6fbdf0..8176836f6d8 100644 --- a/x-pack/auditbeat/module/system/socket/dns/afpacket/afpacket.go +++ b/x-pack/auditbeat/module/system/socket/dns/afpacket/afpacket.go @@ -12,7 +12,6 @@ import ( "os" "time" - "github.com/dustin/go-humanize" "github.com/miekg/dns" "github.com/pkg/errors" "golang.org/x/net/bpf" diff --git a/x-pack/auditbeat/module/system/socket/socket_linux.go b/x-pack/auditbeat/module/system/socket/socket_linux.go index 78fdd8ae4ca..6bf2334e2a9 100644 --- a/x-pack/auditbeat/module/system/socket/socket_linux.go +++ b/x-pack/auditbeat/module/system/socket/socket_linux.go @@ -29,7 +29,6 @@ import ( "github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/guess" "github.com/elastic/beats/v7/x-pack/auditbeat/module/system/socket/helper" "github.com/elastic/beats/v7/x-pack/auditbeat/tracing" - "github.com/elastic/go-perf" "github.com/elastic/go-sysinfo" "github.com/elastic/go-sysinfo/providers/linux" diff --git a/x-pack/auditbeat/module/system/user/user.go b/x-pack/auditbeat/module/system/user/user.go index 59f23e566e8..13060da2e66 100644 --- a/x-pack/auditbeat/module/system/user/user.go +++ b/x-pack/auditbeat/module/system/user/user.go @@ -18,7 +18,7 @@ import ( "syscall" "time" - "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash" "github.com/gofrs/uuid" "github.com/joeshaw/multierror" "github.com/pkg/errors" diff --git a/x-pack/auditbeat/tracing/perfevent.go b/x-pack/auditbeat/tracing/perfevent.go index 83f40260286..acddf4abb14 100644 --- a/x-pack/auditbeat/tracing/perfevent.go +++ b/x-pack/auditbeat/tracing/perfevent.go @@ -19,8 +19,6 @@ import ( "github.com/joeshaw/multierror" "github.com/pkg/errors" "golang.org/x/sys/unix" - - "github.com/elastic/go-perf" ) var ( diff --git a/x-pack/elastic-agent/magefile.go b/x-pack/elastic-agent/magefile.go index e72b32df9eb..1861ef00e08 100644 --- a/x-pack/elastic-agent/magefile.go +++ b/x-pack/elastic-agent/magefile.go @@ -17,7 +17,6 @@ import ( "strings" "time" - "github.com/hashicorp/go-multierror" "github.com/magefile/mage/mg" "github.com/magefile/mage/sh" diff --git a/x-pack/elastic-agent/pkg/agent/operation/monitoring.go b/x-pack/elastic-agent/pkg/agent/operation/monitoring.go index cd9d3d95a2c..335dd8a6e51 100644 --- a/x-pack/elastic-agent/pkg/agent/operation/monitoring.go +++ b/x-pack/elastic-agent/pkg/agent/operation/monitoring.go @@ -8,8 +8,6 @@ import ( "fmt" "path/filepath" - "github.com/hashicorp/go-multierror" - "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application/paths" "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/configrequest" "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/errors" diff --git a/x-pack/elastic-agent/pkg/agent/storage/storage.go b/x-pack/elastic-agent/pkg/agent/storage/storage.go index b37c6e06ab3..698e08c2fbe 100644 --- a/x-pack/elastic-agent/pkg/agent/storage/storage.go +++ b/x-pack/elastic-agent/pkg/agent/storage/storage.go @@ -12,8 +12,6 @@ import ( "os" "time" - "github.com/hectane/go-acl" - "github.com/elastic/beats/v7/libbeat/common/file" "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/errors" ) diff --git a/x-pack/elastic-agent/pkg/artifact/download/composed/downloader.go b/x-pack/elastic-agent/pkg/artifact/download/composed/downloader.go index 9209c8e84c1..81a1db2cfec 100644 --- a/x-pack/elastic-agent/pkg/artifact/download/composed/downloader.go +++ b/x-pack/elastic-agent/pkg/artifact/download/composed/downloader.go @@ -7,8 +7,6 @@ package composed import ( "context" - "github.com/hashicorp/go-multierror" - "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/artifact/download" ) diff --git a/x-pack/elastic-agent/pkg/artifact/download/composed/verifier.go b/x-pack/elastic-agent/pkg/artifact/download/composed/verifier.go index 33397a87e1e..831e4bc42ad 100644 --- a/x-pack/elastic-agent/pkg/artifact/download/composed/verifier.go +++ b/x-pack/elastic-agent/pkg/artifact/download/composed/verifier.go @@ -5,8 +5,6 @@ package composed import ( - "github.com/hashicorp/go-multierror" - "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/artifact/download" ) diff --git a/x-pack/elastic-agent/pkg/artifact/install/zip/zip_installer.go b/x-pack/elastic-agent/pkg/artifact/install/zip/zip_installer.go index ffc90f2dce8..cf5f7298321 100644 --- a/x-pack/elastic-agent/pkg/artifact/install/zip/zip_installer.go +++ b/x-pack/elastic-agent/pkg/artifact/install/zip/zip_installer.go @@ -11,8 +11,6 @@ import ( "os" "path/filepath" - "github.com/hashicorp/go-multierror" - "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/errors" "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/artifact" ) diff --git a/x-pack/elastic-agent/pkg/config/config.go b/x-pack/elastic-agent/pkg/config/config.go index a7620a7f630..22783233c73 100644 --- a/x-pack/elastic-agent/pkg/config/config.go +++ b/x-pack/elastic-agent/pkg/config/config.go @@ -9,7 +9,6 @@ import ( "io" "io/ioutil" - "github.com/elastic/go-ucfg" "github.com/elastic/go-ucfg/cfgutil" "github.com/elastic/go-ucfg/yaml" ) diff --git a/x-pack/elastic-agent/pkg/fleetapi/enroll_cmd.go b/x-pack/elastic-agent/pkg/fleetapi/enroll_cmd.go index 55955f3edd5..a18066c9b0b 100644 --- a/x-pack/elastic-agent/pkg/fleetapi/enroll_cmd.go +++ b/x-pack/elastic-agent/pkg/fleetapi/enroll_cmd.go @@ -12,8 +12,6 @@ import ( "net/http" "time" - "github.com/hashicorp/go-multierror" - "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/application/info" "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/errors" ) diff --git a/x-pack/elastic-agent/pkg/reporter/reporter.go b/x-pack/elastic-agent/pkg/reporter/reporter.go index c36708a837f..1ae3c7c901f 100644 --- a/x-pack/elastic-agent/pkg/reporter/reporter.go +++ b/x-pack/elastic-agent/pkg/reporter/reporter.go @@ -9,8 +9,6 @@ import ( "fmt" "time" - "github.com/hashicorp/go-multierror" - "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/agent/errors" "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/core/logger" "github.com/elastic/beats/v7/x-pack/elastic-agent/pkg/core/state" diff --git a/x-pack/filebeat/input/httpjson/input.go b/x-pack/filebeat/input/httpjson/input.go index 7f87ba5ca0c..b5557e56398 100644 --- a/x-pack/filebeat/input/httpjson/input.go +++ b/x-pack/filebeat/input/httpjson/input.go @@ -29,7 +29,6 @@ import ( "github.com/elastic/beats/v7/libbeat/common/useragent" "github.com/elastic/beats/v7/libbeat/logp" - "github.com/hashicorp/go-retryablehttp" "go.uber.org/zap" ) diff --git a/x-pack/filebeat/input/netflow/config.go b/x-pack/filebeat/input/netflow/config.go index cc0094f4ed8..85cda8d3456 100644 --- a/x-pack/filebeat/input/netflow/config.go +++ b/x-pack/filebeat/input/netflow/config.go @@ -7,8 +7,6 @@ package netflow import ( "time" - "github.com/dustin/go-humanize" - "github.com/elastic/beats/v7/filebeat/harvester" "github.com/elastic/beats/v7/filebeat/inputsource/udp" ) diff --git a/x-pack/filebeat/input/netflow/convert.go b/x-pack/filebeat/input/netflow/convert.go index 69d7a2ea6cd..fa962eee4d8 100644 --- a/x-pack/filebeat/input/netflow/convert.go +++ b/x-pack/filebeat/input/netflow/convert.go @@ -12,7 +12,7 @@ import ( "strings" "time" - "github.com/cespare/xxhash/v2" + "github.com/cespare/xxhash" "github.com/elastic/beats/v7/libbeat/beat" "github.com/elastic/beats/v7/libbeat/common" diff --git a/x-pack/filebeat/module/cisco/ios/pipeline_test.go b/x-pack/filebeat/module/cisco/ios/pipeline_test.go index 6104c25a306..94bfd655882 100644 --- a/x-pack/filebeat/module/cisco/ios/pipeline_test.go +++ b/x-pack/filebeat/module/cisco/ios/pipeline_test.go @@ -14,7 +14,6 @@ import ( "github.com/elastic/beats/v7/libbeat/logp" "github.com/elastic/beats/v7/libbeat/processors" "github.com/elastic/beats/v7/libbeat/processors/script/javascript" - "github.com/elastic/go-lookslike" "github.com/elastic/go-lookslike/isdef" "github.com/elastic/go-lookslike/validator" diff --git a/x-pack/filebeat/processors/decode_cef/cef/parser.go b/x-pack/filebeat/processors/decode_cef/cef/parser.go index cd765873527..04837852e3b 100644 --- a/x-pack/filebeat/processors/decode_cef/cef/parser.go +++ b/x-pack/filebeat/processors/decode_cef/cef/parser.go @@ -3,6 +3,7 @@ // you may not use this file except in compliance with the Elastic License. //line cef.rl:1 + // Code generated by ragel DO NOT EDIT. package cef @@ -797,55 +798,46 @@ func (e *Event) unpack(data string) error { f0: //line cef.rl:37 - mark = p goto _again f1: //line cef.rl:40 - e.Version, _ = strconv.Atoi(data[mark:p]) goto _again f3: //line cef.rl:43 - e.DeviceVendor = replaceHeaderEscapes(data[mark:p]) goto _again f5: //line cef.rl:46 - e.DeviceProduct = replaceHeaderEscapes(data[mark:p]) goto _again f7: //line cef.rl:49 - e.DeviceVersion = replaceHeaderEscapes(data[mark:p]) goto _again f9: //line cef.rl:52 - e.DeviceEventClassID = replaceHeaderEscapes(data[mark:p]) goto _again f11: //line cef.rl:55 - e.Name = replaceHeaderEscapes(data[mark:p]) goto _again f13: //line cef.rl:58 - e.Severity = data[mark:p] goto _again f14: //line cef.rl:61 - // A new extension key marks the end of the last extension value. if len(extKey) > 0 && extValueStart <= mark-1 { e.pushExtension(extKey, replaceExtensionEscapes(data[extValueStart:mark-1])) @@ -856,27 +848,23 @@ func (e *Event) unpack(data string) error { goto _again f20: //line cef.rl:69 - extValueStart = p extValueEnd = p goto _again f16: //line cef.rl:73 - extValueEnd = p + 1 goto _again f15: //line cef.rl:83 - recoveredErrs = append(recoveredErrs, fmt.Errorf("malformed value for %s at pos %d", extKey, p+1)) (p)-- cs = 28 goto _again f17: //line cef.rl:87 - extKey, extValueStart, extValueEnd = "", 0, 0 // Resume processing at p, the start of the next extension key. p = mark @@ -884,92 +872,74 @@ func (e *Event) unpack(data string) error { goto _again f2: //line cef.rl:37 - mark = p //line cef.rl:43 - e.DeviceVendor = replaceHeaderEscapes(data[mark:p]) goto _again f4: //line cef.rl:37 - mark = p //line cef.rl:46 - e.DeviceProduct = replaceHeaderEscapes(data[mark:p]) goto _again f6: //line cef.rl:37 - mark = p //line cef.rl:49 - e.DeviceVersion = replaceHeaderEscapes(data[mark:p]) goto _again f8: //line cef.rl:37 - mark = p //line cef.rl:52 - e.DeviceEventClassID = replaceHeaderEscapes(data[mark:p]) goto _again f10: //line cef.rl:37 - mark = p //line cef.rl:55 - e.Name = replaceHeaderEscapes(data[mark:p]) goto _again f12: //line cef.rl:37 - mark = p //line cef.rl:58 - e.Severity = data[mark:p] goto _again f23: //line cef.rl:37 - mark = p //line cef.rl:73 - extValueEnd = p + 1 goto _again f19: //line cef.rl:69 - extValueStart = p extValueEnd = p //line cef.rl:73 - extValueEnd = p + 1 goto _again f22: //line cef.rl:73 - extValueEnd = p + 1 //line cef.rl:37 - mark = p goto _again @@ -997,7 +967,6 @@ func (e *Event) unpack(data string) error { case 16: //line cef.rl:83 - recoveredErrs = append(recoveredErrs, fmt.Errorf("malformed value for %s at pos %d", extKey, p+1)) (p)-- cs = 28 @@ -1005,7 +974,6 @@ func (e *Event) unpack(data string) error { case 19: //line cef.rl:69 - extValueStart = p extValueEnd = p diff --git a/x-pack/functionbeat/manager/aws/template_builder.go b/x-pack/functionbeat/manager/aws/template_builder.go index d28a75b3794..ad9f034d940 100644 --- a/x-pack/functionbeat/manager/aws/template_builder.go +++ b/x-pack/functionbeat/manager/aws/template_builder.go @@ -210,8 +210,8 @@ func (d *defaultTemplateBuilder) template(function installer, name, codeLoc stri Handler: handlerName, MemorySize: lambdaConfig.MemorySize.Megabytes(), ReservedConcurrentExecutions: lambdaConfig.Concurrency, - Timeout: int(lambdaConfig.Timeout.Seconds()), - Tags: ts, + Timeout: int(lambdaConfig.Timeout.Seconds()), + Tags: ts, }, DependsOn: dependsOn, } diff --git a/x-pack/functionbeat/provider/aws/aws/config.go b/x-pack/functionbeat/provider/aws/aws/config.go index 604035522b5..c673214d525 100644 --- a/x-pack/functionbeat/provider/aws/aws/config.go +++ b/x-pack/functionbeat/provider/aws/aws/config.go @@ -12,8 +12,6 @@ import ( "unicode" "unicode/utf8" - "github.com/dustin/go-humanize" - "github.com/elastic/beats/v7/libbeat/common/cfgwarn" ) diff --git a/x-pack/libbeat/common/cloudfoundry/cache.go b/x-pack/libbeat/common/cloudfoundry/cache.go index 22f41f3b23c..21f62f2ffc9 100644 --- a/x-pack/libbeat/common/cloudfoundry/cache.go +++ b/x-pack/libbeat/common/cloudfoundry/cache.go @@ -8,8 +8,6 @@ import ( "fmt" "time" - "github.com/cloudfoundry-community/go-cfclient" - "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/logp" ) diff --git a/x-pack/libbeat/common/cloudfoundry/cache_integration_test.go b/x-pack/libbeat/common/cloudfoundry/cache_integration_test.go index f6af11787c9..2ad54b6017d 100644 --- a/x-pack/libbeat/common/cloudfoundry/cache_integration_test.go +++ b/x-pack/libbeat/common/cloudfoundry/cache_integration_test.go @@ -14,8 +14,6 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/cloudfoundry-community/go-cfclient" - "github.com/elastic/beats/v7/libbeat/common" "github.com/elastic/beats/v7/libbeat/logp" cftest "github.com/elastic/beats/v7/x-pack/libbeat/common/cloudfoundry/test" diff --git a/x-pack/libbeat/common/cloudfoundry/cache_test.go b/x-pack/libbeat/common/cloudfoundry/cache_test.go index 9e18a5ac86e..3965efaf3e7 100644 --- a/x-pack/libbeat/common/cloudfoundry/cache_test.go +++ b/x-pack/libbeat/common/cloudfoundry/cache_test.go @@ -10,7 +10,6 @@ import ( "testing" "time" - "github.com/cloudfoundry-community/go-cfclient" "github.com/gofrs/uuid" "github.com/stretchr/testify/assert" diff --git a/x-pack/libbeat/common/cloudfoundry/config_test.go b/x-pack/libbeat/common/cloudfoundry/config_test.go index bce98a0b642..2e082558b6a 100644 --- a/x-pack/libbeat/common/cloudfoundry/config_test.go +++ b/x-pack/libbeat/common/cloudfoundry/config_test.go @@ -11,8 +11,6 @@ import ( "github.com/stretchr/testify/assert" - "github.com/elastic/go-ucfg" - "github.com/elastic/beats/v7/libbeat/common" ) diff --git a/x-pack/libbeat/common/cloudfoundry/dopplerconsumer.go b/x-pack/libbeat/common/cloudfoundry/dopplerconsumer.go index 10ea50dd928..0908df0ee0b 100644 --- a/x-pack/libbeat/common/cloudfoundry/dopplerconsumer.go +++ b/x-pack/libbeat/common/cloudfoundry/dopplerconsumer.go @@ -10,7 +10,6 @@ import ( "regexp" "sync" - "github.com/cloudfoundry-community/go-cfclient" "github.com/cloudfoundry/noaa/consumer" "github.com/cloudfoundry/sonde-go/events" diff --git a/x-pack/libbeat/common/cloudfoundry/hub.go b/x-pack/libbeat/common/cloudfoundry/hub.go index 4bb7fce1eec..c466580bdd5 100644 --- a/x-pack/libbeat/common/cloudfoundry/hub.go +++ b/x-pack/libbeat/common/cloudfoundry/hub.go @@ -10,7 +10,6 @@ import ( "strings" "time" - "github.com/cloudfoundry-community/go-cfclient" "github.com/pkg/errors" "github.com/elastic/beats/v7/libbeat/logp" diff --git a/x-pack/libbeat/processors/add_cloudfoundry_metadata/add_cloudfoundry_metadata_test.go b/x-pack/libbeat/processors/add_cloudfoundry_metadata/add_cloudfoundry_metadata_test.go index 1aff4cb2df8..b3caaf3ec56 100644 --- a/x-pack/libbeat/processors/add_cloudfoundry_metadata/add_cloudfoundry_metadata_test.go +++ b/x-pack/libbeat/processors/add_cloudfoundry_metadata/add_cloudfoundry_metadata_test.go @@ -8,7 +8,6 @@ import ( "testing" "time" - "github.com/cloudfoundry-community/go-cfclient" "github.com/gofrs/uuid" "github.com/stretchr/testify/assert" diff --git a/x-pack/metricbeat/module/azure/billing/data_test.go b/x-pack/metricbeat/module/azure/billing/data_test.go index 7e605a12663..8ac78130038 100644 --- a/x-pack/metricbeat/module/azure/billing/data_test.go +++ b/x-pack/metricbeat/module/azure/billing/data_test.go @@ -50,10 +50,10 @@ func TestEventMapping(t *testing.T) { UsageDetails: []consumption.UsageDetail{ { UsageDetailProperties: &prop1, - ID: nil, - Name: nil, - Type: nil, - Tags: nil, + ID: nil, + Name: nil, + Type: nil, + Tags: nil, }, }, ActualCosts: []consumption.Forecast{ diff --git a/x-pack/metricbeat/module/azure/compute_vm/client_helper_test.go b/x-pack/metricbeat/module/azure/compute_vm/client_helper_test.go index 39ffbbc5091..5bfc1837f06 100644 --- a/x-pack/metricbeat/module/azure/compute_vm/client_helper_test.go +++ b/x-pack/metricbeat/module/azure/compute_vm/client_helper_test.go @@ -50,17 +50,17 @@ func MockMetricDefinitions() *[]insights.MetricDefinition { metric3 := "BytesRead" defs := []insights.MetricDefinition{ { - Name: &insights.LocalizableString{Value: &metric1}, + Name: &insights.LocalizableString{Value: &metric1}, PrimaryAggregationType: insights.Average, SupportedAggregationTypes: &[]insights.AggregationType{insights.Maximum, insights.Count, insights.Total, insights.Average}, }, { - Name: &insights.LocalizableString{Value: &metric2}, + Name: &insights.LocalizableString{Value: &metric2}, PrimaryAggregationType: insights.Average, SupportedAggregationTypes: &[]insights.AggregationType{insights.Average, insights.Count, insights.Minimum}, }, { - Name: &insights.LocalizableString{Value: &metric3}, + Name: &insights.LocalizableString{Value: &metric3}, PrimaryAggregationType: insights.Minimum, SupportedAggregationTypes: &[]insights.AggregationType{insights.Average, insights.Count, insights.Minimum}, }, diff --git a/x-pack/metricbeat/module/azure/compute_vm_scaleset/client_helper_test.go b/x-pack/metricbeat/module/azure/compute_vm_scaleset/client_helper_test.go index 6fba1dab50f..efa1ba22f3c 100644 --- a/x-pack/metricbeat/module/azure/compute_vm_scaleset/client_helper_test.go +++ b/x-pack/metricbeat/module/azure/compute_vm_scaleset/client_helper_test.go @@ -40,17 +40,17 @@ func MockMetricDefinitions() *[]insights.MetricDefinition { metric3 := "BytesRead" defs := []insights.MetricDefinition{ { - Name: &insights.LocalizableString{Value: &metric1}, + Name: &insights.LocalizableString{Value: &metric1}, PrimaryAggregationType: insights.Average, SupportedAggregationTypes: &[]insights.AggregationType{insights.Maximum, insights.Count, insights.Total, insights.Average}, }, { - Name: &insights.LocalizableString{Value: &metric2}, + Name: &insights.LocalizableString{Value: &metric2}, PrimaryAggregationType: insights.Average, SupportedAggregationTypes: &[]insights.AggregationType{insights.Average, insights.Count, insights.Minimum}, }, { - Name: &insights.LocalizableString{Value: &metric3}, + Name: &insights.LocalizableString{Value: &metric3}, PrimaryAggregationType: insights.Minimum, SupportedAggregationTypes: &[]insights.AggregationType{insights.Average, insights.Count, insights.Minimum}, }, diff --git a/x-pack/metricbeat/module/azure/monitor/client_helper_test.go b/x-pack/metricbeat/module/azure/monitor/client_helper_test.go index 8765d589e84..982d7548575 100644 --- a/x-pack/metricbeat/module/azure/monitor/client_helper_test.go +++ b/x-pack/metricbeat/module/azure/monitor/client_helper_test.go @@ -36,17 +36,17 @@ func MockMetricDefinitions() *[]insights.MetricDefinition { metric3 := "BytesRead" defs := []insights.MetricDefinition{ { - Name: &insights.LocalizableString{Value: &metric1}, + Name: &insights.LocalizableString{Value: &metric1}, PrimaryAggregationType: insights.Average, SupportedAggregationTypes: &[]insights.AggregationType{insights.Maximum, insights.Count, insights.Total, insights.Average}, }, { - Name: &insights.LocalizableString{Value: &metric2}, + Name: &insights.LocalizableString{Value: &metric2}, PrimaryAggregationType: insights.Average, SupportedAggregationTypes: &[]insights.AggregationType{insights.Average, insights.Count, insights.Minimum}, }, { - Name: &insights.LocalizableString{Value: &metric3}, + Name: &insights.LocalizableString{Value: &metric3}, PrimaryAggregationType: insights.Average, SupportedAggregationTypes: &[]insights.AggregationType{insights.Average, insights.Count, insights.Minimum}, }, diff --git a/x-pack/metricbeat/module/azure/storage/client_helper_test.go b/x-pack/metricbeat/module/azure/storage/client_helper_test.go index 24fea2facf6..0d74957a4e6 100644 --- a/x-pack/metricbeat/module/azure/storage/client_helper_test.go +++ b/x-pack/metricbeat/module/azure/storage/client_helper_test.go @@ -66,13 +66,13 @@ func MockMetricDefinitions() *[]insights.MetricDefinition { metric2 := "Capacity" defs := []insights.MetricDefinition{ { - Name: &insights.LocalizableString{Value: &metric1}, + Name: &insights.LocalizableString{Value: &metric1}, PrimaryAggregationType: insights.Average, MetricAvailabilities: &availability1, SupportedAggregationTypes: &[]insights.AggregationType{insights.Maximum, insights.Count, insights.Total, insights.Average}, }, { - Name: &insights.LocalizableString{Value: &metric2}, + Name: &insights.LocalizableString{Value: &metric2}, PrimaryAggregationType: insights.Average, MetricAvailabilities: &availability2, SupportedAggregationTypes: &[]insights.AggregationType{insights.Average, insights.Count, insights.Minimum}, diff --git a/x-pack/metricbeat/module/googlecloud/metrics/compute/metadata.go b/x-pack/metricbeat/module/googlecloud/metrics/compute/metadata.go index 67584bc002c..f21980a66cc 100644 --- a/x-pack/metricbeat/module/googlecloud/metrics/compute/metadata.go +++ b/x-pack/metricbeat/module/googlecloud/metrics/compute/metadata.go @@ -10,7 +10,6 @@ import ( "time" "github.com/pkg/errors" - "google.golang.org/api/compute/v1" "google.golang.org/api/option" monitoringpb "google.golang.org/genproto/googleapis/monitoring/v3" From 84481ba8fffc8d5fc97dca6811a18a4c465c0fa4 Mon Sep 17 00:00:00 2001 From: Ivan Fernandez Calvo Date: Mon, 31 Aug 2020 19:27:23 +0200 Subject: [PATCH 2/2] docs: update version --- libbeat/docs/version.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libbeat/docs/version.asciidoc b/libbeat/docs/version.asciidoc index d13656d04b6..ee50cf4ec0c 100644 --- a/libbeat/docs/version.asciidoc +++ b/libbeat/docs/version.asciidoc @@ -1,4 +1,4 @@ -:stack-version: 7.9.0 +:stack-version: 7.9.1 :doc-branch: 7.9 :go-version: 1.14.7 :release-state: released