Giter Club home page Giter Club logo

jlogstash-filter-plugin's Introduction

Add:

fields: 必填 map结构({"host":"hostname","ip":"%{ip}%"})

hostname: 本生是event里的属性,则就会取event.hostname里的值,没有就是原声的字符串hostname,

%{ip}% 这样就表示调用内置函数获取本机ip

现在的内置函数有hostname,timestamp,ip

DateISO8601:

match: 必填 map结构({"timestamp":{"srcFormat":"dd/MMM/yyyy:HH:mm:ss Z","target":"timestamp","locale":"en"}})

Remove:

fields:必填 list结构

removeNULL:默认值false ,是否删除null或空字符串字段

Rename:

fields:必填 map结构{"oldname":"newname"}

IpIp:

source: 默认值 clientip 需要解析的ip

target: 默认值 ipip

size: 默认值 5000

UA:

source:必填 需要解析属性

JGrok:

srcs:必填 list 结构,需要通过jgrok解析的字段(["ip"])

patterns:必填 map结构,自定义的正则表达式,{"ip":"(?<fromApp>[0-9A-B])"} 如果:grok自带的已经有了,正则表达式不需要写,列如:{"%{COMBINEDAPACHELOG}":""}

Json:

fields: 必填 map 结构 example {"messgae":"messgae1"} 源属性是message 目标属性message1,没有目标属性可以为“”

Java:

code: 必填,String类型 。

示例:

filters:
   - Java:
       code: '
           Object name = event.get("NAME");
           event.put("XM", name);
       '

Performance:

interval: 数据刷入文件的间隔时间,默认30秒

timeZone: 时区 默认UTC

path: 文件路径(home/admin/jlogserver/logs/srsyslog-performance-%{+YYYY.MM.dd}.txt)必填

jlogstash-filter-plugin's People

Contributors

yangsishu avatar zhangxiongbiao avatar zoudaokoulife avatar lijiangbo 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.