GithubHelp home page GithubHelp logo

remainsu / flume-files-source Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xvshu/flume-files-source

0.0 2.0 0.0 33 KB

Collect data from multiple files, and support for HTTP.(从多个文件收集数据,并支持断点续传。)

License: GNU Affero General Public License v3.0

Java 100.00%

flume-files-source's Introduction

flume-files-source

Collect data from multiple files, and support for HTTP.(从多个文件收集数据,并支持断点续传。)
blog url:http://blog.csdn.net/column/details/flume-haproxy.html

#step:

##1,config one path ##2,find all file with RegExp ##3,tail one children file ##4,batch to channal ##5,数据必须以'|'分割 属性contextIsFlumeLog 如果等于true,如要自定义数据格式,请在msgTypeConfig属性中添加 例如

agent1.sources.source1.msgTypeConfig=one_type:className|methodName|level|treeId|requestId|transactionId
If the contextIsFlumeLog attribute is equal to true,
the data must be | segmentation,
such as custom data format, please add in the msgTypeConfig attribute, for example:
agent1.sources.source1.msgTypeConfig=one_type:className|methodName|level|treeId|requestId|transactionId

##6,数据是json格式 请配置属性contextIsJson为true,则数据不会进行任何处理,直接传输到channel If the data is JSON format, please configure the property true for contextIsJson, then the data will not be processed directly to the channel

#demo:

File format special, '|' to split data:

agent1.sources.source1.filepath=/export/home/tomcat/logs/tender.soa.el.com/apilogs/
agent1.sources.source1.filenameRegExp=(.log{1})$
agent1.sources.source1.readinterval=300
agent1.sources.source1.startAtBeginning=false
agent1.sources.source1.restart=true
agent1.sources.source1.tailing=true
agent1.sources.source1.contextIsJson=false
agent1.sources.source1.contextIsFlumeLog=true
agent1.sources.source1.domain=tender.soa.el.com
agent1.sources.source1.fileWriteJson=/export/home/flume_elo/filelogs/fileJson_account.json

#作者说明

作者:xvshu
时间:2016-8-5
版本:1.3.0

flume-files-source's People

Contributors

xvshu avatar

Watchers

 avatar  avatar

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.