解决logstash1.4.2在windows上文件源读会对文件进行锁定的问题
2015-02-15 14:53
225 查看
解决logstash1.4.2在windows上文件源读会对文件进行锁定的问题
从github上下载useJavatoOpenFile https://github.com/edwinf/ruby-filewatch/tree/useJavatoOpenFile
wget https://github.com/jordansissel/ruby-filewatch/archive/master.zip
以上二选一
1.找到JRubyFileExtension.jar 并把他复制到1.4.2 LOGSTASH_HOME/vendor/bundle/jruby/2.1/gems/filewatch-0.5.1/lib同级目录下
2.将filewatch 文件夹完全复制到1.4.2 LOGSTASH_HOME/vendor/bundle/jruby/2.1/gems/filewatch-0.5.1/lib,2.1为版本号,为了稳定,如有多个版本,都给他复制了.读取jar文件是在tail.rb的第10行
这时应该没问题了.
3.如果有问题可以尝试设置 set CloseAfterRead=true
reference:http://stackoverflow.com/questions/20592142/logstash-elasticsearch-reloads-the-same-data/28523646#28523646
reference2:http://blog.csdn.net/xiaohelong2005/article/details/43833939
从github上下载useJavatoOpenFile https://github.com/edwinf/ruby-filewatch/tree/useJavatoOpenFile
wget https://github.com/jordansissel/ruby-filewatch/archive/master.zip
以上二选一
1.找到JRubyFileExtension.jar 并把他复制到1.4.2 LOGSTASH_HOME/vendor/bundle/jruby/2.1/gems/filewatch-0.5.1/lib同级目录下
2.将filewatch 文件夹完全复制到1.4.2 LOGSTASH_HOME/vendor/bundle/jruby/2.1/gems/filewatch-0.5.1/lib,2.1为版本号,为了稳定,如有多个版本,都给他复制了.读取jar文件是在tail.rb的第10行
这时应该没问题了.
3.如果有问题可以尝试设置 set CloseAfterRead=true
reference:http://stackoverflow.com/questions/20592142/logstash-elasticsearch-reloads-the-same-data/28523646#28523646
reference2:http://blog.csdn.net/xiaohelong2005/article/details/43833939
相关文章推荐
- logstash在windows上fileinput会锁定文件的问题
- windows找不到文件cmd.exe,regedit.exe,msconfig.exe等问题的解决办法
- 解决 File GDB 文件锁定的问题
- Gedit编辑windows文件乱码问题解决
- windows与linux中文件路径分隔符问题解决
- 解决在windows目录下的文件到ubuntu系统下出现的中文乱码问题
- 解决windows下文件在unix系统下出现^M的问题 及 Vi高级命令
- UltraEdit不能对Matlab的M文件进行语法高亮显示问题的解决
- 解决Windows不能显示隐藏文件的问题
- 解决ubuntu打开windows下保存的txt文件中文乱码问题
- 解决在linux下用eclipse打开windows文本文件产生中文乱码的问题
- Jetty在windows下锁定js等静态文件的解决
- vmware里的ubuntu与宿主windows共享文件出现的问题及解决
- 安装office2007之windows installer 服务不能更新一个或多个受保护的windows文件问题解决
- 对于在windows中不能打开.chm文件问题的解决方法
- Windows Media Player播放文件时遇到问题的解决办法
- 解决linux下挂载windows的FAT32格式文件系统乱码问题
- 开机弹出Windows找不到文件C:WINDOWS/system32/tlntsvi或tlntsvi_xxxx.exe问题解决
- 解决Windows 2003 Sp2重装IIS无法复制文件问题
- 解决Windows自带NTFS加密(EFS)后打开文件乱码的问题