Comments (1)
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)
- Unable to write JSON schemaless events HOT 3
- NPE trying to determine field names with a blank file
- CSV connector's task hanged in infinite loop after meeting record it can't process HOT 1
- Incorrect skipping of records when reprocessing file HOT 2
- CsvSpoolDir error out HOT 1
- How to retrieve header infos in a Stream with KSQLDB? HOT 2
- CSV files' name problem
- java.lang.NoSuchMethodError: 'void com.google.common.base.Preconditions.checkStat
- While fetching JSON data , shows integer value to null HOT 2
- Question Is it possible to create an SMT that will indicate the number of records in the file
- Could not parse <field> to 'Date' HOT 4
- Continious logs coming in kafka connect logs HOT 3
- schema.generation.value.name - not taking effect in the schema registry
- NPE when specifying timestamp.field on a autogenerated schema
- InputFile split on non-regexable Windows File.Seperator
- Relative file path is not retrieved properly HOT 2
- Date Time Parse Error... HOT 1
- Format for defining arrays in schema
- SpoolDirLineDelimitedSourceConnector cleanup policy HOT 1
- Fix misleading messages logged by SpoolDirLineDelimitedSourceConnector HOT 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 kafka-connect-spooldir.