Coder Social home page Coder Social logo

Comments (7)

kramalin avatar kramalin commented on May 20, 2024 1

I am just 2 months in to software and the mistake i was doing was the size of the fake log generated by apache was less than buffer size so records were not send to S3 bucket and as soon as i ran infinite fake log generation , i can see that data being transferred by the agent

from amazon-kinesis-agent.

chaochenq avatar chaochenq commented on May 20, 2024

Sorry for the inconvenience. You can enable the debug logging by adding

"log.level": "DEBUG"

or

"log.level": "TRACE"

to agent config file.

But I'll try to switch some of the messages over to ERROR level instead of DEBUG level. The reason why we don't throw these errors by default was that we don't want your log to be screwed (the error could be with each parse and send, thus could be quite frequently)

from amazon-kinesis-agent.

maimonoded avatar maimonoded commented on May 20, 2024

using debug is a pain, once open in debug we start getting 10 of this logs every SECOND:

[DEBUG] FileTailer[fh:pop-bi-data:/home/logs/test.log]: We reached end of file TrackedFile(id=(dev=ca01,ino=401409), path=/home/logs/test.log, lastModifiedTime=1459950502000, size=1070)

from amazon-kinesis-agent.

chaochenq avatar chaochenq commented on May 20, 2024

Switching the error message over to ERROR rather than trace/debug may not make it better. The error code is per record. And there could be up to 500 records per single batch.

You can decide if you want to change it: https://github.com/awslabs/amazon-kinesis-agent/blob/master/src/com/amazon/kinesis/streaming/agent/tailing/KinesisSender.java#L128

from amazon-kinesis-agent.

chaochenq avatar chaochenq commented on May 20, 2024

At the same time, could you also try changing this message from "debug" to "error" to see if it helps?

https://github.com/awslabs/amazon-kinesis-agent/blob/master/src/com/amazon/kinesis/streaming/agent/tailing/SimplePublisher.java#L206

I'm patching another release to fix the error message too.

from amazon-kinesis-agent.

chaochenq avatar chaochenq commented on May 20, 2024

I've pushed a patch to switch some of the error messages from DEBUG to ERROR.

from amazon-kinesis-agent.

thesmart avatar thesmart commented on May 20, 2024

Hey sorry for the delay in responding. Thanks for looking into this an providing a solution.

from amazon-kinesis-agent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.