-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
filetail, log file move to history dir ,how to configure file generation and archive strategies #52
Comments
I'm not clear on what you want SDC to do. Do you want it to read the xyz.log.tar.gz file each day? |
no,i only need to collect current xyz.log |
I think LiveFile.java -> refresh() should change to this if (changed) {
|
if use filetail to collect logs ,then at the same log dir,not permit subdir exist, otherwise livefile refresh will throw exception, but in real product env , logs aways compress and mv to subdirs, |
@Sumpan Have you tried the above fix? Is it working for you? |
yes , I change some code ,and i works fine ,here's the pull request https://github.com/streamsets/datacollector/pull/27 |
I have nginx log file to collect in "/data/logs/nginx/xyz.log"
every day ,mv the log and compress to /data/logs/nginx/2017/05/xyz.log.tar.gz
and recreate new log file /data/logs/nginx/xyz.log
how to configure file generation and archive strategies ?
i try use default "Active File with Reverse Counter " naming type ,but i found streamsets try to collect /data/logs/nginx/2017 ,but that is a dir
The text was updated successfully, but these errors were encountered: