We are running Elasticsearch on Kubernetes using the Elastic Cloud Operator.
We use the input sqs plugin to pull events for our SQS queues
Recently, we discovered the logs from one of our queues have the field aws.sqs.oldest_message_age.sec
missing. In some of the log messages, that field is supposed to be a number by it has text like "a few seconds".
Other queues do not seem to have this problem.
This is what the sqs manifest looks like:
input:
module: aws
metricset: cloudwatch
defaults:
metrics:
- namespace: AWS/SQS
resource_type: sqs
statistic: ["Average"]
name:
- ApproximateAgeOfOldestMessage
- ApproximateNumberOfMessagesDelayed
- ApproximateNumberOfMessagesNotVisible
- ApproximateNumberOfMessagesVisible
- NumberOfMessagesDeleted
- NumberOfMessagesReceived
- NumberOfMessagesSent
- NumberOfEmptyReceives
- SentMessageSize
processors:
- rename:
ignore_missing: true
fields:
- from: "aws.sqs.metrics.ApproximateAgeOfOldestMessage.avg"
to: "aws.sqs.oldest_message_age.sec"
- from: "aws.sqs.metrics.ApproximateNumberOfMessagesDelayed.avg"
to: "aws.sqs.messages.delayed"
- from: "aws.sqs.metrics.ApproximateNumberOfMessagesNotVisible.avg"
to: "aws.sqs.messages.not_visible"
- from: "aws.sqs.metrics.ApproximateNumberOfMessagesVisible.avg"
to: "aws.sqs.messages.visible"
- from: "aws.sqs.metrics.NumberOfMessagesDeleted.avg"
to: "aws.sqs.messages.deleted"
- from: "aws.sqs.metrics.NumberOfMessagesReceived.avg"
to: "aws.sqs.messages.received"
- from: "aws.sqs.metrics.NumberOfMessagesSent.avg"
to: "aws.sqs.messages.sent"
- from: "aws.sqs.metrics.NumberOfEmptyReceives.avg"
to: "aws.sqs.empty_receives"
- from: "aws.sqs.metrics.SentMessageSize.avg"
to: "aws.sqs.sent_message_size.bytes"
- drop_fields:
ignore_missing: true
fields:
- "aws.sqs.metrics"
Has anyone else faced this problem and are there any thoughts on what might be failing?