events: ElasticSearch doesnt support objects with '/' in them. (#2747)

Fix this by using a unique sha256 generated for each unique key.
This commit is contained in:
Harshavardhana
2016-09-20 16:36:18 -07:00
committed by GitHub
parent a5066e8f76
commit 018c90dae7
2 changed files with 17 additions and 6 deletions

View File

@@ -204,7 +204,7 @@ func eventNotify(event eventData) {
targetLog := globalEventNotifier.GetQueueTarget(qConfig.QueueARN)
if targetLog != nil {
targetLog.WithFields(logrus.Fields{
"Key": objectName,
"Key": path.Join(event.Bucket, objectName),
"EventType": eventType,
"Records": notificationEvent,
}).Info()