diff --git a/v2/pkg/reporting/exporters/es/elasticsearch.go b/v2/pkg/reporting/exporters/es/elasticsearch.go index 997e97b5..7b5d43a7 100644 --- a/v2/pkg/reporting/exporters/es/elasticsearch.go +++ b/v2/pkg/reporting/exporters/es/elasticsearch.go @@ -6,6 +6,7 @@ import ( "encoding/base64" "encoding/json" "fmt" + "github.com/corpix/uarand" "io" "net/http" "time" @@ -112,6 +113,7 @@ func (exporter *Exporter) Export(event *output.ResultEvent) error { if len(exporter.authentication) > 0 { req.Header.Add("Authorization", exporter.authentication) } + req.Header.Set("User-Agent", uarand.GetRandom()) req.Header.Add("Content-Type", "application/json") d := data{