amazon-archives / kinesis-log4j-appender

ARCHIVED: Log4J Appender for writing data into a Kinesis Stream
Apache License 2.0
62 stars 42 forks source link

WARN No such property [endpoint] and [region] #19

Open oberserk opened 6 years ago

oberserk commented 6 years ago

Hi Experts,

I'm trying to use KinesisAppender. But I got some warn messages and errors.

I set endpoint and region properties at log4j.properties like below:

Amazon Kinesis endpoint in the configured ".region"

log4j.appender.KINESIS.endpoint=kinesis.eu-west-1.amazonaws.com

optional, defaults to us-east-1

log4j.appender.KINESIS.region=eu-west-1

But my sample application was only tried to connect us-east-1 like below:

C:\Test>java -cp .;log4j-1.2.17.jar;kinesis-log4j-appender-1.0.0.jar Kinesis_log4j_Appender log4j:WARN No such property [endpoint] in com.amazonaws.services.kinesis.log4j.KinesisAppender. log4j:WARN No such property [region] in com.amazonaws.services.kinesis.log4j.KinesisAppender. 2018-01-18 09:54:36 DEBUG InternalConfig:208 - Configuration override awssdk_config_override.json not found. 2018-01-18 09:54:36 DEBUG AWSCredentialsProviderChain:105 - Loading credentials from ClasspathPropertiesFileCredentialsProvider(/AwsCredentials.properties) 2018-01-18 09:54:36 DEBUG AWS4Signer:246 - AWS4 Canonical Request: '"POST /

content-length:44 content-type:application/x-amz-json-1.1 host:kinesis.us-east-1.amazonaws.com user-agent:kinesis-log4j-appender/1.0.0, aws-sdk-java/1.7.0 Windows_10/10.0 Java_HotSpot(TM)_64-Bit_Server_VM/25.65-b01/1.8.0_65 ... Java_HotSpot(TM)_64-Bit_Server_VM/25.65-b01/1.8.0_65, Host: kinesis.us-east-1.amazonaws.com, ... 2018-01-18 09:54:36 DEBUG DefaultClientConnectionOperator:177 - Connecting to kinesis.us-east-1.amazonaws.com:443 ... 2018-01-18 09:54:37 DEBUG wire:63 - >> "Host: kinesis.us-east-1.amazonaws.com[\r][\n]" ... 2018-01-18 09:54:37 ERROR KinesisAppender:69 - Stream IRE-KINESIS-DATA-STREAM-CYC doesn't exist for appender: KINESIS com.amazonaws.services.kinesis.model.ResourceNotFoundException: Status Code: 400, AWS Service: AmazonKinesis, AWS Request ID xxx-yyy-zzzz, AWS Error Code: ResourceNotFoundException, AWS Error Message: Stream IRE-KINESIS-DATA-STREAM-CYC under account 99999999999 not found.

Please let me know how to solve this, Best Regards, CY