diff --git a/pkg/datadogunifi/events.go b/pkg/datadogunifi/events.go index 07200ad4..aa38de94 100644 --- a/pkg/datadogunifi/events.go +++ b/pkg/datadogunifi/events.go @@ -54,7 +54,7 @@ func (u *DatadogUnifi) batchIDS(r report, i *unifi.IDS) { // nolint:dupl "usg_ip": i.USGIP, "proto": i.Proto, "key": i.Key, - "catname": i.Catname, + "catname": i.Catname.String(), "app_proto": i.AppProto, "action": i.InnerAlertAction, } diff --git a/pkg/influxunifi/events.go b/pkg/influxunifi/events.go index 1d4476bf..1d791a5c 100644 --- a/pkg/influxunifi/events.go +++ b/pkg/influxunifi/events.go @@ -60,7 +60,7 @@ func (u *InfluxUnifi) batchIDS(r report, i *unifi.IDS) { // nolint:dupl "usgip": i.USGIP, "proto": i.Proto, "key": i.Key, - "catname": i.Catname, + "catname": i.Catname.String(), "app_proto": i.AppProto, "action": i.InnerAlertAction, }), diff --git a/pkg/lokiunifi/report_ids.go b/pkg/lokiunifi/report_ids.go index 3ad4fd80..53ee384e 100644 --- a/pkg/lokiunifi/report_ids.go +++ b/pkg/lokiunifi/report_ids.go @@ -24,7 +24,7 @@ func (r *Report) IDS(event *unifi.IDS, logs *Logs) { "host": event.Host, "site_name": event.SiteName, "subsystem": event.Subsystem, - "category": event.Catname, + "category": event.Catname.String(), "event_type": event.EventType, "key": event.Key, "app_protocol": event.AppProto,