image:grafana/loki:2.6.1
my loki.yaml:
schema_config:
configs:
- from: 2020-05-15
store: aws
object_store: s3
schema: v11
index:
prefix: loki_
storage_config:
aws:
s3: s3://access_key:secret_access_key@region/bucket_name
dynamodb:
dynamodb_url: dynamodb://access_key:secret_access_key@region
my DynamoDB partition key is h(string) and sort key r(string)
loki error log:
level=warn ts=2022-10-17T09:22:34.686730018Z caller=dynamodb_storage_client.go:220 msg=“Data lost while flushing to DynamoDB” err=“ValidationException: The provided key element does not match the schema\n\tstatus code: 400, request id: IR1O2JMNHBQVV7PPONCC8PMHTRVV4KQNSO5AEMVJXXXXXX”
the error is The provided key element does not match the schema
I think the loki miss the key h in the item,but I don’t know how to solve it
thank you