@@ -93,18 +93,36 @@ transform/ceph_prysm_sidecar:
9393 - resource.attributes [" k8s.container.name" ] == " prysm-sidecar"
9494 statements:
9595 - merge_maps(log.cache , ParseJSON(log.body ), " upsert" ) where IsMatch(log.body , " ^\\ {" )
96+ - set(log.attributes [" access_key_id" ], log.cache [" access_key_id" ])
97+ - set(log.attributes [" authentication_type" ], log.cache [" authentication_type" ])
9698 - set(log.attributes [" bucket" ], log.cache [" bucket" ])
97- - set(log.attributes [" remote_addr" ], log.cache [" remote_addr" ])
98- - set(log.attributes [" user" ], log.cache [" user" ])
99- - set(log.attributes [" operation" ], log.cache [" operation" ])
100- - set(log.attributes [" uri" ], log.cache [" uri" ])
101- - set(log.attributes [" http_status" ], log.cache [" http_status" ])
99+ - set(log.attributes [" bytes_received" ], log.cache [" bytes_received" ])
102100 - set(log.attributes [" bytes_sent" ], log.cache [" bytes_sent" ])
101+ - set(log.attributes [" error_code" ], log.cache [" error_code" ])
102+ - set(log.attributes [" http_status" ], log.cache [" http_status" ])
103+ - set(log.attributes [" object" ], log.cache [" object" ])
103104 - set(log.attributes [" object_size" ], log.cache [" object_size" ])
105+ - set(log.attributes [" operation" ], log.cache [" operation" ])
106+ - set(log.attributes [" referrer" ], log.cache [" referrer" ])
107+ - set(log.attributes [" remote_addr" ], log.cache [" remote_addr" ])
108+ - set(log.attributes [" transaction_id" ], log.cache [" trans_id" ])
109+ - set(log.attributes [" temp_url" ], log.cache [" temp_url" ])
110+ - set(log.attributes [" total_time" ], log.cache [" total_time" ])
111+ - set(log.attributes [" uri" ], log.cache [" uri" ])
112+ - set(log.attributes [" user" ], log.cache [" user" ])
104113 - set(log.attributes [" user_agent" ], log.cache [" user_agent" ])
105- - set(log.attributes [" trans_id" ], log.cache [" trans_id" ])
106- - set(log.attributes [" access_key_id" ], log.cache [" access_key_id" ])
107- - set(log.attributes [" authentication_type" ], log.cache [" authentication_type" ])
114+ - set(log.attributes [" keystone_scope.project.id" ], log.cache [" keystone_scope" ][" project" ][" id" ])
115+ - set(log.attributes [" keystone_scope.project.name" ], log.cache [" keystone_scope" ][" project" ][" name" ])
116+ - set(log.attributes [" keystone_scope.project.domain.id" ], log.cache [" keystone_scope" ][" project" ][" domain" ][" id" ])
117+ - set(log.attributes [" keystone_scope.project.domain.name" ], log.cache [" keystone_scope" ][" project" ][" domain" ][" name" ])
118+ - set(log.attributes [" keystone_scope.user.id" ], log.cache [" keystone_scope" ][" user" ][" id" ])
119+ - set(log.attributes [" keystone_scope.user.name" ], log.cache [" keystone_scope" ][" user" ][" name" ])
120+ - set(log.attributes [" keystone_scope.user.domain.id" ], log.cache [" keystone_scope" ][" user" ][" domain" ][" id" ])
121+ - set(log.attributes [" keystone_scope.user.domain.name" ], log.cache [" keystone_scope" ][" user" ][" domain" ][" name" ])
122+ - set(log.attributes [" keystone_scope.roles" ], log.cache [" keystone_scope" ][" roles" ])
123+ - set(log.attributes [" keystone_scope.application.credential.id" ], log.cache [" keystone_scope" ][" application_credential" ][" id" ])
124+ - set(log.attributes [" keystone_scope.application_credential.name" ], log.cache [" keystone_scope" ][" application_credential" ][" name" ])
125+ - set(log.attributes [" keystone_scope.application_credential.restricted" ], log.cache [" keystone_scope" ][" application_credential" ][" restricted" ])
108126{{- end }}
109127
110128{{- define " ceph.pipeline" }}
0 commit comments