GithubHelp home page GithubHelp logo

Comments (1)

jcustenborder avatar jcustenborder commented on June 11, 2024

You need something that tails the log file and notices when the log has
been rotated. The scenarios I envisioned for this plugin was to handle flat
files that are typically transmitted between companies. This handles
delimited files really well. The processing file extension is to allow
multiple tasks in the same folder.

There are a couple ways we could tackle this.

1.) Set log4j to roll quicker. Maybe every n events or every x minutes.
Then set the pattern for file pickup to .*log.\d+$. I'm on mobile so
you'll need to double check that pattern. Then the current log file will be
left alone and the connector will read the rolled ones.

2.) Use https://github.com/jcustenborder/kafka-connect-syslog and send the
messages in real-time over syslog.

On Tue, Aug 23, 2016, 12:41 PM ajayinfoworks [email protected]
wrote:

Every time I push a file into the directory pointed to by 'input.path', it
gets processed & gets moved to 'finished'. The file is renamed from
'test.log' to 'test.log.PROCESSING'. Why does it say 'PROCESSING' when
processing is done?

Ideally, I am looking for a connector that will watch the 'log' directory
used by log4j. As you know, log4j will start writing lines to a file in a
directory. Once it's time to rotate, it will rename the log file from
'test.log' to 'test.log.1' & then will continue writing to test.log.

This connector works well for the files that are rotated but won't work
for the main 'test.log' file, correct?

I mean, is there any way we can send a message to Kafka topic as soon as a
new line gets written to the main 'test.log' file (and not push the file to
the 'finished.path')?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#2, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAMzgN7vKbkwO7WeFlRJQDQZm_xkRMbwks5qi0zfgaJpZM4JrTvG
.

from kafka-connect-spooldir.

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.