Comments (7)
I solved this with a clue from the metricbeat.yml file in the project repo..
go get github.com/rs/xid
then run make
and add the partition_key_provider: xid to metricbeat.yml in output.streams
from awsbeats.
@rgsriram Thanks for reporting!
I think this happens whenever the underlying beat is unable to produce valid events for your logs. So, my best bet is you need to fix your log format somehow.
To see what's causing the issue, you can enable debug logs so awsbeat dumps relevant events and records that helps further investigating the cause.
Line 90 in 5b58657
from awsbeats.
You can add an command-line flag -d '*'
to the beat to enable debug logging.
from awsbeats.
from awsbeats.
Shouldn't it be agnostic on message format? Filebeat does not care what it is shipping if it is ascii files.
from awsbeats.
my debug log looks like this
2019-03-05T22:47:45.241Z DEBUG [kinesis] streams/client.go:87 received events: [{{2019-03-05 22:47:40.928463896 +0000 UTC m=+0.034389025 null {"beat":{"hostname":"ip-172-31-37-3","name":"ip-172-31-37-3","version":"6.6.1"},"host":{"name":"ip-172-31-37-3"},"log":{"file":{"path":"/home/ubuntu/beats.log"}},"message":"{'name':'helllo world'}","meta":{"cloud":{"availability_zone":"us-east-2c","instance_id":"i-06b8474a7736caa81","machine_type":"t2.micro","provider":"ec2","region":"us-east-2"}},"offset":0,"source":"/home/ubuntu/beats.log"} { false 0xc00018cdd0 /home/ubuntu/beats.log 24 2019-03-05 22:47:40.927222619 +0000 UTC m=+0.033147766 -1ns log map[] 256333-51713}} 1}]
2019-03-05T22:47:45.241Z DEBUG [kinesis] streams/client.go:114 failed to map event({{2019-03-05 22:47:40.928463896 +0000 UTC m=+0.034389025 null {"beat":{"hostname":"ip-172-31-37-3","name":"ip-172-31-37-3","version":"6.6.1"},"host":{"name":"ip-172-31-37-3"},"log":{"file":{"path":"/home/ubuntu/beats.log"}},"message":"{'name':'helllo world'}","meta":{"cloud":{"availability_zone":"us-east-2c","instance_id":"i-06b8474a7736caa81","machine_type":"t2.micro","provider":"ec2","region":"us-east-2"}},"offset":0,"source":"/home/ubuntu/beats.log"} { false 0xc00018cdd0 /home/ubuntu/beats.log 24 2019-03-05 22:47:40.927222619 +0000 UTC m=+0.033147766 -1ns log map[] 256333-51713}} 1}): failed to get parititon key: failed to get parition key: key not found
2019-03-05T22:47:45.241Z DEBUG [kinesis] streams/client.go:90 sent 0 records: []
2019-03-05T22:47:45.241Z DEBUG [kinesis] streams/client.go:94 mapped to records: []
2019-03-05T22:47:45.241Z INFO streams/client.go:101 retrying 1 events on error: failed to put records: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, PutRecordsInput.Records.
from awsbeats.
I seem to be getting the same error..
Aug 11 16:48:10 master metricbeat-v7.5.0-go1.11-linux-amd64: 2020-08-11T16:48:10.635Z#011INFO#011streams/client.go:104#011retrying 16 events on error: failed to put records: InvalidParameter: 1 validation error(s) found. Aug 11 16:48:10 master metricbeat-v7.5.0-go1.11-linux-amd64: - minimum field size of 1, PutRecordsInput.Records. Aug 11 16:48:10 master metricbeat-v7.5.0-go1.11-linux-amd64: 2020-08-11T16:48:10.635Z#011INFO#011[publisher]#011pipeline/retry.go:162#011Drop batch
from awsbeats.
Related Issues (20)
- streams: nil record returned by aws-sdk-go? HOT 1
- streams: Panic on retrying
- feat: Heartbeat + Awsbeats
- feat: APM Server + Awsbeats
- Feature the helm chart for the apm-server example
- Firehose events don't have separator HOT 1
- streams: Panic on collecting failed records
- Custom docker images containing unusable plugin so file HOT 1
- InvalidSignatureException: Signature not yet current
- Ansible role
- error in go build
- Windows support / Binaries
- Failed to get partition key HOT 2
- Deploy on kubernetes
- Upgrade beats versions in Dockerfile
- Access kinesis firehose using profile HOT 1
- Support for 7.3.0? HOT 1
- backoff/retry policy does not influence behavior for most kinesis errors
- Error while building plugin for Filebeat 7.8.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from awsbeats.