Comments (3)
你把的你的fliter的jgrok的配置发下
from jlogstash.
配置:
inputs:
- File:
path:
- /Users/zxm/IdeaProjects/jlogstash-6.0.1/test/airport2.2019-09-12.8.log
outputs: - Kafka:
topic: test_jlogstash
compressionCodec: none
brokerList: localhost:9092
filters: - JGrok:
srcs: ["ip"]
patterns: {"ip":"(?[0-9A-B])"}
测试json:
[192.168.0.1] [ERROR c.c.s.port.passenger.FlowServiceImpl - 删除人流统计失败]
from jlogstash.
{"ip":"(?[0-9A-B.])"},都是标准的正则语法,grok也只是基于正则做了层封装;这个你到网上搜下找个demo
from jlogstash.
Related Issues (20)
- Cannot run program "gpg.exe": CreateProcess error=2, The system cannot find the file specified HOT 5
- 找不到或无法加载主类 com.dtstack.jlogstash.JlogstashMain HOT 2
- 使用说明 HOT 10
- jdbc配置多表
- jdbc的input插件中怎样配置增量读取?
- fileter的grok正则解析如何配置 HOT 1
- 启动脚本无法加载到log,不知道是哪里的错误,请帮忙看下 HOT 12
- 能否像logstash一样,多个配置文件自动合并,并在一个进程下启动 HOT 2
- 配置文件里边能写if判断语句么? HOT 1
- 高可用实现了吗?,数据分布式增量读取 HOT 2
- 反射input插件 kafka10时,报错 HOT 1
- 老哥 kafka10的pom里面jlogstash是不是打包时也去掉 HOT 1
- 关于日志滚动 HOT 1
- 老哥 代码是删除了吗? HOT 1
- 连接kafka10报错 jlogstash start error:null,启动不了 HOT 2
- jlogstash可以在k8s容器中运行吗?尝试过做成镜像在k8s上运行,遇到报Java heap space,但非容器正常。如果容器化部署,有相关的部署说明吗?谢谢 HOT 2
- 对elasticsearch支持
- 配置文件的读取是需要解压处理吗
- outputs为es的时候,丢数据问题
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 jlogstash.