diff --git a/logshipper/papertrail.go b/logshipper/papertrail.go index 7326e5ec..3a81a708 100644 --- a/logshipper/papertrail.go +++ b/logshipper/papertrail.go @@ -35,8 +35,8 @@ func CreatePapertrailShipper(ctx context.Context, paperTrailProtocol, paperTrail func (l *PapertrailShipper) Log(ev kail.Event) error { if l.papertrailShipperInst != nil && ev != nil && len(ev.Log()) > 0 { payload := &papertrailgo.Payload{ - Hostname: ev.Source().Name(), - Tag: fmt.Sprintf("node(%s)/namespace(%s)/container(%s)", ev.Source().Node(), ev.Source().Namespace(), ev.Source().Container()), + Hostname: fmt.Sprintf("%s/%s", ev.Source().Namespace(), ev.Source().Container()), + Tag: fmt.Sprintf("rkubelog/node(%s)/pod(%s)", ev.Source().Node(), ev.Source().Name()), Log: string(ev.Log()), } return l.papertrailShipperInst.Log(payload)